|
|
Re: Connect to Specific instance [message #437662 is a reply to message #437591] |
Tue, 05 January 2010 07:35 |
|
LKBrwn_DBA
Messages: 487 Registered: July 2003 Location: WPB, FL
|
Senior Member |
|
|
1) You need to know the instance name (ORACLE_SID), to find out the names on Unix servers look at file /etc/oratab (or /var/opt/oracle/oratab).
2) Set the environment:
$ export ORACLE_SID=MYDB #<= This is the instance name
$ ORAENV_ASK=NO
$ . /usr/local/bin/oraenv
3) Connect to the database:
$ sqlplus username/passwd
[Updated on: Tue, 05 January 2010 08:15] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Connect to Specific instance [message #437901 is a reply to message #437734] |
Wed, 06 January 2010 08:19 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
rahulvb wrote on Tue, 05 January 2010 22:47
Why I am asking this question is :- I want to create separate instance for different deptpartments and pin separate set of tables ( as per department ) in respective instance memory.
I think this is a bad design. What I would do is have a different schema for each department in a single database. You may come from a Microsoft world where what we call schemas are separate databases.
|
|
|
|
|
|