代码改变世界

Windows平台监听服务无法启动报报TNS-12560 TNS-00530案例

2018-03-01 13:38  潇湘隐者  阅读(5920)  评论(0编辑  收藏  举报

 

在Windows Server 2012平台使用命令启动监听服务时遇到了TNS-12560 & TNS-00530错误。

 

C:\Users>lsnrctl start GEW_LISTENER

 

LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-MAR-2018 12:05

:10

 

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

 

Starting tnslsnr: please wait...

 

TNS-12560: TNS:protocol adapter error

 TNS-00530: Protocol adapter error

 

 

clip_image001

 

 

在这个场景下,遇到这个错误是因为权限问题,Command Prompt必须以管理员权限运行,才能启动监听服务。当然引起TNS-12560或ORA-12560错误还有一些其他原因,此处只是记录这样一个案例。

 

 

clip_image002

 

 

clip_image003