logging to multiple DB on same server [message #601362] |
Wed, 20 November 2013 01:41 |
|
zeeshan007
Messages: 20 Registered: July 2012 Location: Pakistan
|
Junior Member |
|
|
Sir,
I deployed 2 oracle 11gR2 databases through DBCA on same(single) linux (RHEL 5.4) machine.
Instance 1: PrimaryDB
Instance 2: PrimaryDB1
How i connect to PrimaryDB1?
I passed these parameters
option-1
sqlplus>sys@primarydb1 as sysdba
ORA-01031: insufficiant privileges
option-2
sqlplus>sys/sysdba@primarydb1
ORA-01017: invalid username/password; logon denied
Regards,
Zeeshan DBA
|
|
|
|
|
|
|
Re: logging to multiple DB on same server [message #601423 is a reply to message #601422] |
Wed, 20 November 2013 15:39 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
alan.kendall@nfl.com wrote on Wed, 20 November 2013 15:42You left out the work "connect " before the "sys@primarydb1 as sysdba"
Well...not totally accurate. John pointed out that the whole picture was not there as the error messages could not have been produced by the input. We really don't know if OP typed connect or was just paraphrasing what they think they did.
[Updated on: Wed, 20 November 2013 15:39] Report message to a moderator
|
|
|
Re: logging to multiple DB on same server [message #601713 is a reply to message #601423] |
Sun, 24 November 2013 14:29 |
|
Jack14
Messages: 497 Registered: December 2011 Location: INDIA
|
Senior Member |
|
|
Quote:Sir,
I deployed 2 oracle 11gR2 databases through DBCA on same(single) linux (RHEL 5.4) machine.
Instance 1: PrimaryDB
Instance 2: PrimaryDB1
How i connect to PrimaryDB1?
Use . oraenv utility to login to desired database in same machine.
$ . oraenv
ORACLE_SID = [] ? orcl
[Updated on: Sun, 24 November 2013 14:30] Report message to a moderator
|
|
|
|
Re: logging to multiple DB on same server [message #601716 is a reply to message #601715] |
Sun, 24 November 2013 15:17 |
|
Jack14
Messages: 497 Registered: December 2011 Location: INDIA
|
Senior Member |
|
|
Blackswan,
You are one of the expert in oracle technology in orafaq forum.That everyone in orafaq is pretty aware of it.
I answered Zeeshan question thinking instead of setting export ORACLE_SID and export ORACLE_HOME every time login with different DB, it would be easy for everyone to use . oraenv utility to login to desired DB in same machine.
Now let Zeeshan decides which one he prefers to login to database.I used the term 'oraenv' since Zeeshan is using multiple databases in same machine.
I hope i am not wrong
Thanks
[Updated on: Sun, 24 November 2013 15:17] Report message to a moderator
|
|
|