我有oracle11g desktop
。对于我的项目,我通过配置助手工具创建3个数据库。然后我删除其中一个
在此之后我有错误:ora-12560
。
错误地我的两个数据库都有相同的密码,
例如:当我想连接其中一个数据库与系统用户时,我有一个密码,也许数据库不知道连接哪一个。
我开始所有服务
设置oracle_sid=orcl
。
我跑lsnrctl
tnsping
检查tansname.ora
& my listener.ora
然后我使用sysdba@oracle_sid
但我又有了这个错误
请求帮助我 TNX答案 0 :(得分: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>
答案 1 :(得分:0)
删除数据库后(在窗口环境中),我遇到了相同的错误,并且我解决了以下问题
第一种方式:
C:> SET 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