ORA-12560: TNS:protocol adaptor error

2019-01-02 23:16发布

enter image description here

I Google[d] for this error ORA-12560: TNS:protocol adaptor error but not able to find the actual reason and how to solve this error ?

Can anyone tell me a perfect solution to solve login problem.

17条回答
做个烂人
2楼-- · 2019-01-02 23:53

Add to the enviroment vars the following varibale and value to identify the place of the tnsnames.ora file:

TNS_ADMIN

C:\oracle\product\10.2.0\client_1\network\admin

查看更多
劫难
3楼-- · 2019-01-02 23:54

You need to tell SQLPlus which database you want to log on to. Host String needs to be either a connection string or an alias configured in your TNSNames.ora file.

查看更多
够拽才男人
4楼-- · 2019-01-02 23:59

Quite often this means that the listener hasn't started. Check the Services panel.

On Windows (as you are) another common cause is that the ORACLE_SID is not defined in the registry. Either edit the registry or set the ORACLE_SID in a CMD box. (Because you want to run sqlplusw.exe I suggest you edit the registry.)

查看更多
We Are One
5楼-- · 2019-01-02 23:59

I had "ORA-12560: TNS:protocol adaptor error" problem, and I googled it for 2 hours for not paying attention to details. I opened command prompt and then I had this:

C:\Users\Frodo>set oracle_sid=<DB name>

... while it should be lie this:

C:\>set oracle_sid=<DB name>

C:> should be instead of C:\Users\Frodo> - that was my problem; so this worked:

C:\Users\Frodo> cd c:
C:\>set oracle_sid=<DB name>
C:\>exp ........
查看更多
等我变得足够好
6楼-- · 2019-01-03 00:00

In my case, (ORA-12560: TNS protocol adapter error)Issue cause of database connection issue like database, user name and password.

Once you got the issue. Initially you have to check connection details, after check the oracle service and further more.

I missed some connection details, So only i got TNS protocol adapter error, I will changed the connection details, It would be working fine.

查看更多
登录 后发表回答