Oracle11g ORA-12560:TNS:删除一个数据库后出现协议适配器错误

Oracle11g ORA-12560:TNS:删除一个数据库后出现协议适配器错误,oracle11g,protocols,tns,ora-12560,Oracle11g,Protocols,Tns,Ora 12560,我有oracle11g桌面。对于我的项目,我通过configuration assistant工具创建了3个数据库。然后我删除其中一个 在这之后我有一个错误:ora-12560。 我的两个数据库都有相同的密码, 例如:当我想将其中一个数据库与system user连接时,我有一个pasword,可能数据库不知道连接哪一个 我启动所有服务 设置oracle\u sid=orcl。 我运行lsnrctl tnsping检查tansname.ora&my listener.ora 我用sysdba@o

我有
oracle11g桌面
。对于我的项目,我通过configuration assistant工具创建了3个数据库。然后我删除其中一个 在这之后我有一个错误:
ora-12560
。 我的两个数据库都有相同的密码, 例如:当我想将其中一个数据库与system user连接时,我有一个pasword,可能数据库不知道连接哪一个

我启动所有服务 设置oracle\u sid=orcl。 我运行
lsnrctl
tnsping
检查
tansname.ora
&
my listener.ora
我用
sysdba@oracle_sid

但我又犯了这个错误

请帮帮我
tnx听起来好像数据库没有打开。您可能重新启动了计算机,但实例未设置为autostart

C:\Documents and Settings\tkyte>sqlplus scott/tiger

SQL*Plus: Release 10.1.0.4.0 - Production on Thu Sep 6 15:43:55 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options

scott%ORA10GR1> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options

C:\Documents and Settings\tkyte>net stop oracleserviceora10gr1
The OracleServiceORA10GR1 service is stopping.........
The OracleServiceORA10GR1 service was stopped successfully.


C:\Documents and Settings\tkyte>sqlplus scott/tiger

SQL*Plus: Release 10.1.0.4.0 - Production on Thu Sep 6 15:44:35 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

ERROR:
ORA-12560: TNS:protocol adapter error


Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error


Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error


SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

C:\Documents and Settings\tkyte>net start oracleserviceora10gr1
The OracleServiceORA10GR1 service is starting..........
The OracleServiceORA10GR1 service was started successfully.


C:\Documents and Settings\tkyte>sqlplus scott/tiger

SQL*Plus: Release 10.1.0.4.0 - Production on Thu Sep 6 15:45:12 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options

scott%ORA10GR1>

在删除数据库(在窗口环境中)后,我遇到了相同的错误,我解决了如下问题

第一种方式:

C:>设置ORACLE_SID=SID名称

第二种方式:

使用regedit定位路径:HKEY\U LOCAL\U MACHINE\SOFTWARE\ORACLE\KEY\U HOME\U NAME 更新ORACLE_SID=


请参阅:

密码与这些有什么关系?那不是你的问题。您的tnsnames.ora文件中有错误。尝试在命令行上使用整个TNS条目运行sqlplus,如下所示:sqlplus/@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=))(CONNECT_DATA=(SERVER=专用)(SERVICE_NAME=))根据需要替换参数Anx for ur answer我在sqlplus中尝试此操作,但遇到错误=ora-12154:tns:无法解析指定的连接标识符,并且在使用主机名而不是IP时遇到错误=ora-12545:连接失败,因为目标主机或对象不存在。请帮忙照顾一下