0

我有oracle11g desktop。对于我的项目,我通过配置助手工具创建了 3 个数据库。然后我删除其中一个,之后出现错误:ora-12560. 错误地我的两个数据库都具有相同的密码,例如:当我想将这些数据库之一与系统用户连接时,我有一个密码,也许数据库不知道连接哪一个。

我启动所有服务集oracle_sid=orcl。我运行lsnrctl tnspingcheck tansname.ora& my listener.ora 并登录sysdba@oracle_sid

但我又遇到了这个错误

请帮助我tnx

4

2 回答 2

1

听起来数据库没有启动。您可能重新启动了机器并且实例未设置为自动启动

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>
于 2013-10-19T03:51:43.683 回答
0

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

第一种方式:

C:> 设置 ORACLE_SID = SID 名称

第二种方式:

使用 regedit 定位到路径:HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_HOME_NAME 更新 ORACLE_SID =

参考:https ://docs.oracle.com/database/121/ADMQS/GUID-EC18C4A6-3BA5-4C14-9D76-B0DD62FEFFF2.htm#ADMQS12369

于 2018-07-26T07:41:00.033 回答