Link to home
Start Free TrialLog in
Avatar of Flex Tron
Flex TronFlag for United States of America

asked on

how to reset the password in Oracle 11g Express Edition

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

ASKER CERTIFIED SOLUTION
Avatar of Alex [***Alex140181***]
Alex [***Alex140181***]
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

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
Avatar of Flex Tron

ASKER

Works like a charm. Danke !
You're welcome ;-)