官網(wǎng)中關(guān)于ORA-12560的解釋:
ORA-12560: TNS:protocol adapter error
Cause: A generic protocol adapter error occurred.
Action: Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and reexecute the operation. Turn off tracing when the operation is complete.
首先檢查windows服務(wù)中Oracle實(shí)例相關(guān)服務(wù)是否運(yùn)行:
WIN(圖標(biāo)鍵)+R👇


檢查Oracle配置文件
進(jìn)入Oracle安裝主目錄\product\12.2.0\dbhome_1\network\admin
打開tnsnames.ora配置文件:

打開listener.ora配置文件:

檢查對(duì)應(yīng)數(shù)據(jù)庫的HOST配置是否正確?此處HOST=PC主機(jī)名>
如何查看主機(jī)名?👇

重啟監(jiān)聽:
打開命令行輸入:lsnrctl restart

重啟服務(wù):


總結(jié)
到此這篇關(guān)于Oracle數(shù)據(jù)庫ORA-12560錯(cuò)誤解決辦法的文章就介紹到這了,更多相關(guān)oracle 12560解決辦法內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
您可能感興趣的文章:- Shell腳本連接oracle數(shù)據(jù)庫的實(shí)現(xiàn)代碼
- Oracle數(shù)據(jù)庫服務(wù)器修改操作系統(tǒng)時(shí)間的注意事項(xiàng)詳解
- PL/SQL登錄Oracle數(shù)據(jù)庫報(bào)錯(cuò)ORA-12154:TNS:無法解析指定的連接標(biāo)識(shí)符已解決(本地未安裝Oracle需要連接服務(wù)器上的)
- PLSQL Developer連接oracle數(shù)據(jù)庫配置教程
- plsql 連接oracle數(shù)據(jù)庫詳細(xì)配置的方法步驟
- PLSQL Developer連接Oracle11g 64位數(shù)據(jù)庫配置詳解(圖文)
- oracle取數(shù)據(jù)庫中最新的一條數(shù)據(jù)可能會(huì)遇到的bug(兩種情況)