无法连接到oracle数据库11g R2

时间:2017-07-13 12:49:58

标签: oracle11gr2

直到昨天一切都运转良好。有一个自动Windows更新,之后我尝试从sqlplus连接到我的数据库时收到错误:

ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0

我尝试使用EM,我得到了这个:

Database Instance
Host        
abc-PC
Port        
1521
SID     
mydb
Oracle Home     
D:\app\abc\product\11.2.0\dbhome_1
Listener
Status      
Down
Host        
abc-PC
Port        
1521
Name        
LISTENER
Oracle Home     
D:\app\abc\product\11.2.0\dbhome_1
Location        
D:\app\kaos\product\11.2.0\dbhome_1\NETWORK\ADMIN
Details     Although a Listener with name "LISTENER", is running on this host at port: "1521", it was not started using this target's "LISTENER.ORA" file. 
CORRECTIVE ACTION: To monitor this "EM Listener Target" with its present configuration, you must stop the currently running listener process, and start it again using the Listener Parameter file: D:\app\kaos\product\11.2.0\dbhome_1\NETWORK\ADMIN/listener.ora . 
Alternatively, you can update this target's "LISTENER.ORA Location" parameter with the location of the currently running Listener, which was started using: D:\app\abc\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:0)

也许以某种方式更新删除ORACLE_SID环境变量。检查My Computer -> Properties -> Environment variables -> ORACLE_SID