Unable to connect to an idle instance [message #200331] |
Mon, 30 October 2006 06:48  |
asherisfine
Messages: 63 Registered: June 2006 Location: India
|
Member |
|
|
I have two databses PRACTICE AND TRIAL running on my windows machine and i wanted to connect to an idle instance.
I have the oracle service up for both PRACTICE AND TRIaL database. So I stopped the service, then I edited the SQLNET.ora file to make sqlnet.authentication_services=(NTS). Since I have the databases on my own windows machine, I am a user of the ora_dba group.
Now when I connect to oracle as sysdba and do not provide a password ( since I belong to ora_dba group) , I get an error
SQL> conn sys as sysdba
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
I assume when we want to connect to an idle instance we need not give a service name right!!!
Then why does this error occur . In fact this should actually get me to an IDLE instance right!!! I am not able to understand the reason for such a message being displayed.
Please let me know if iam wrong in my approach.
|
|
|
|
Re: Unable to connect to an idle instance [message #200342 is a reply to message #200335] |
Mon, 30 October 2006 07:18   |
asherisfine
Messages: 63 Registered: June 2006 Location: India
|
Member |
|
|
Thanks for the reply
I followed the steps you suggested.
1) Restarted my oracle services. Then i shutdown my database PRACTICE.
then i set oracle_sid='Practice'
SQL> conn sys@practice as sys
Enter password:
Connected.
SQL> shutdown normal;
Database closed.
Database dismounted.
ORACLE instance shut down.
Again i logged in as sys
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> conn sys@practice as sysdba
Enter password:
Connected to an idle instance.
but when i try
SQL> disconnect
Disconnected
[B]SQL> conn sys as sysdba[/B]
Enter password:
ERROR:
ORA-12154: TNS:could not resolve service name
same error occurs when i give
SQL> conn sys/ as sysdba
Enter password:
ERROR:
ORA-12154: TNS:could not resolve service name
that is whenever i try to login without servicename i get this error.However if i have specified a service name, it doesn't matter if i don't give password.
[Updated on: Mon, 30 October 2006 07:21] Report message to a moderator
|
|
|
Re: Unable to connect to an idle instance [message #200344 is a reply to message #200342] |
Mon, 30 October 2006 07:23  |
Mohammad Taj
Messages: 2412 Registered: September 2006 Location: Dubai, UAE
|
Senior Member |

|
|
SQL> disconnect
Disconnected
SQL> conn sys as sysdba
Enter password:
ERROR:
ORA-12154: TNS:could not resolve service name
Try this
sql>conn sys@practice as sysdba
Enter password:******
or
first set oracle_sid variable
cmd>set oracle_sid=<practice or trial> whatever.
cmd>sqlplus/nolog
sql>conn / as sysdba
If You still getting some error then post tnsnames.ora file.
found in "oraclehome-->network-->admin" folder.
hope this clear.
|
|
|