Solved

Forgot System Password for Oracle XE

Posted on 2009-06-26
3
3,104 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

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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 set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

708 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

15 Experts available now in Live!

Get 1:1 Help Now