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图片

相关文章
相关标签/搜索