ORA-12560ORA-12560TNS:protocol adapter errorCause:A generic protocol adapter error occurred. Action:Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and re-execute the operation. Turn off tracing when the operation is complete.

解决方案 »

  1.   

    问题解决:
    我之前有两个数据库实例,打开注册表找到HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0入口,发现ORACLE_SID项的值是最新创建的数据库实例,而不是我要连接的较早的数据库,于是我把其值改为想要连接的数据库实例就成功了,由此得到的启发是ORACLE_SID缺省为最新创建的数据库实例(即使该实例已被删除,我的就是用dbca删除该实例后注册表里的值仍未恢复到早先的那个数据库)。另外:
    C:\oracle\ora81\bin(前面的C:\oracle\ora81根据oracle安装路径和版本作相应修改)下有个工具叫做LSNRCTL.EXE,可以查看你目前所有服务的详细资料,是个好东东!谢谢各位!