Solved

Forgot System Password for Oracle XE

Posted on 2009-06-26
3
3,114 Views
Last Modified: 2012-05-07
Good morning,

I forgot the system password for my Oracle XE installation to my Ubuntu Server computer.  Is there any way I can rest that password?

Thanks so much,


Jazon
0
Comment
Question by:piratepatrol
3 Comments
 
LVL 6

Accepted Solution

by:
tangchunfeng earned 250 total points
ID: 24727668
sqlplus / as sysdba
alter user system identified by newpassword;
0
 
LVL 6

Assisted Solution

by:Greg Clough
Greg Clough earned 250 total points
ID: 24728987
tangchunfeng is correct, but make sure that your ORACLE_SID variable is set first:

su - oracle (or just login as the "oracle" unix user)
echo $ORACLE_SID (If this is already set to the name of your database, then stop here)
cat /etc/oratab (or maybe /var/opt/oracle/oratab. This lists all databases on the server)
ps -ef | grep smon (This will list the names of all databases that are up-and-running on the server)
. oraenv
(Enter the name of your database when prompted, in UPPER case)

This will setup your environment to point to the correct database, otherwise your "sqlplus" won't know which database to connect to.
0
 
LVL 3

Author Comment

by:piratepatrol
ID: 24761671
Thanks so much.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to return an OUT parameter from and ORACLE 3 66
Repeat query 13 46
How to Gracefuly recover in Racle stored procedure 1 29
grant user/role question 11 28
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…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to recover a database from a user managed backup
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

785 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