Solved

how to reset the password in Oracle 11g Express Edition

Posted on 2016-10-05
4
51 Views
Last Modified: 2016-10-10
Have Oracle 11g Express Edition installed on my private laptop  machine. The password has expired. I use SQL developer to connect ...but don't find any way of resetting the password. I am unable to start sqlplus as the machine says('sqlplus' unknown command. and am not sure how to start database from 'run Sql Command line '. Please tell me how to reset the password.

TNS Entry is :
XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Tritonia)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )
Code snippet from
SQL*Plus: Release 11.2.0.2.0 Production on Thu Oct 6 01:50:39 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

SQL> system
SP2-0042: unknown command "system" - rest of line ignored.
SQL> select * from dual;
SP2-0640: Not connected
SQL> select * from dual;
SP2-0640: Not connected
SQL> startup
ORA-01031: insufficient privileges
SQL>

Open in new window

0
Comment
Question by:flextron
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Alexander Eßer [Alex140181] earned 500 total points
ID: 41831246
- connect to DB via
 sqlplus / as sysdba

Open in new window

- then change password with
alter user <username> identified by <new password>;

Open in new window

0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 41831676
Alex provided the syntax on how to reset a password.

>>SP2-0042: unknown command "system" - rest of line ignored.

I wanted to comment on this line.  Once you are in sqlplus, to connect as a different user you need the connect command:
SQL> connect system

Note:  sqlplus commands can be shortened to their first 4 characters so this is also valid:
SQL> conn system
1
 

Author Closing Comment

by:flextron
ID: 41835911
Works like a charm. Danke !
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 41836426
You're welcome ;-)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now