解決oracle11g的ORA 12505問題

2021-08-17 16:10:10 字數 1557 閱讀 2072

[plain]view plain

copy

檢查服務名,是oracleserviceorcl,那sid應當就是orcl,但是使用該sid仍然無法連線。

查閱資料後解決方法如下:

找到listener.ora檔案(listener***程序的配置檔案),使用文字編輯器開啟。

內容如下:

[plain]view plain

copy

# generated by oracle configuration tools.  

sid_list_listener =  

(sid_list =  

(sid_desc =  

(sid_name = clrextproc)  

(program = extproc)  

)  )  

listener =  

(description_list =  

(description =  

(address = (protocol = ipc)(key = extproc1521))  

(address = (protocol = tcp)(host = localhost)(port = 1521))  

)  )  

2.  新增sid資訊(紅色字型部分)

[plain]view plain

copy

# generated by oracle configuration tools.  

sid_list_listener =  

(sid_list =  

(sid_desc =  

(sid_name = clrextproc)  

(program = extproc)  

)  (sid_desc =  

(global_dbname = orcl)  

(sid_name = orcl)  

)    ) 

listener =  

(description_list =  

(description =  

(address = (protocol = ipc)(key = extproc1521))  

(address = (protocol = tcp)(host = localhost)(port = 1521))  

)  )  

3.  重新啟動 oracleserviceorcl 和 oracleoradb11g_home1tnslistener 服務。最後試一試,連線成功!

附:pl/sql developer 和 sqlplus 採用 service_name 進行連線

而應用程式是按照 sid_name 進行連線,所以出現 pl/sql developer和sqlplus 能夠連線而應用程式卻無法連線的問題。

使用 select instance_name from v$instance 語句,就可以檢視當前資料庫例項的sid_name了。

2.  新增sid資訊

Oracle11G密碼到期ORA 28002

問題 系統啟動失敗,報錯ora 28002 oracle 密碼過期 問題形成 oracle 11g 安裝後,會有乙個預設密碼期限 180天 如果規定時間未更改密碼,密碼將會過期,導致系統無法使用。解決方式 1.登陸oracle sqlplus as sysdba 2.修改密碼過期為永不過期 alte...

Oracle11g口令過期的解決

用oracle使用者登入,sqlplus as sysdba 先把密碼生命週期時間限制去掉 alter profile default limit password life time unlimited 然後重置一下軟體內部使用賬戶的密碼 alter user admin1 identified ...

oracle 11g不能連線報ORA 12537

乙個windows上安裝oracle 11g資料庫,執行一段時間後,突然出現ora 12537錯誤,應用不能連線了。檢查了alert.log日誌檔案,發現錯誤資訊如下 fatal ni connect error 12537,connecting to local no version inform...