這篇文章主要為大家展示了如何解決Oracle數(shù)據(jù)庫ORA-12560錯(cuò)誤問題,內(nèi)容簡(jiǎn)而易懂,希望大家可以學(xué)習(xí)一下,學(xué)習(xí)完之后肯定會(huì)有收獲的,下面讓小編帶大家一起來看看吧。
官網(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=
如何查看主機(jī)名?👇
重啟監(jiān)聽:
打開命令行輸入:lsnrctl restart
重啟服務(wù):
以上就是關(guān)于如何解決Oracle數(shù)據(jù)庫ORA-12560錯(cuò)誤問題的內(nèi)容,如果你們有學(xué)習(xí)到知識(shí)或者技能,可以把它分享出去讓更多的人看到。