Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switching to different Oracle instances (Unix)

Status
Not open for further replies.

nontrad

MIS
Jan 10, 2001
83
US
I am working in Oracle via Unix.

There are several DBs on the server with unique names and separate instances. However, I cannot seem to acess them.

In Unix, I would have ORACLE_SID=<database name> and export this (script in .profile). Then I would enter $ SQLPLUS to gain access to the DB.

However even when I change the ORACLE_SID to a different database (and export, of course), I am still logged on to the SAME Oracle instance/DB as before!

What am I doing wrong?
 
NEVERMIND!

At Unix, I entered ORACLE_SID=<dbname> and then exported it. I then logged in under a valid dba username and found out that my username did not exist for that DB. So I added it and then checked that I could get back there. SUCCESS!!!

Now I just hope I can duplicate it tomorrow. =;-)
 
Usually I will export the SID of the instance that I want to work on using this command:

export ORACLE_SID=<SID>

then I re-confirm that the instance is exported by:

echo $ORACLE_SID

you should now be able to access that instance thru SVRMGRL or SQLPLUS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top