Oracle數據庫ORA-12560錯誤解決辦法

官網中關於ORA-12560的解釋:

ORA-12560: TNS:protocol adapter error數據庫

Cause: A generic protocol adapter error occurred.windows

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.this

首先檢查windows服務中Oracle實例相關服務是否運行:

WIN(圖標鍵)+R👇
圖片.pngspa

圖片.png

檢查Oracle配置文件

進入Oracle安裝主目錄\product\12.2.0\dbhome_1\network\admin
打開tnsnames.ora配置文件:
圖片.png命令行

打開listener.ora配置文件:
圖片.png3d

檢查對應數據庫的HOST配置是否正確?此處HOST=<PC主機名>
如何查看主機名?👇
圖片.pngrest

重啓監聽:

打開命令行輸入:lsnrctl restart
圖片.pngblog

重啓服務:

圖片.png


文章中若出現錯誤,請在評論中指出或聯繫我👇
QQ:354008947
Email:354008947@qq.com
幸福至上.png圖片

相關文章
相關標籤/搜索