==============================================================

ORA-12560: TNS: 协议适配器错误的解决方法

造成ORA-12560: TNS: 协议适配器错误的问题的原因有 个:

1.监听服务没有起起来。windows平台个一如下操作:开始---程序---管理工具---服务,打开服务面板,启动oraclehome92TNSlistener服务。

2.database instance没有起起来。windows平台如下操作:开始---程序---管理工具---服务,打开服务面板,启动oracleserviceXXXX,XXXX就是你的database SID.

3.注册表问题。regedit,然后进入HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOME0将该环境变量ORACLE_SID设置为XXXX,XXXX就是你的database SID.或者右几我的电脑,属性--高级--环境变量---系统变量--新建,变量名=oracle_sid,变量值=XXXX,XXXX就是你的database SID.或者进入sqlplus前,在command line下输set oracle_sid=XXXX,XXXX就是你的database SID.

经过以上步骤,就可以解决问题。

=======================================
TNS: 协议适配器错误的问题的原因有三个:
1.监听服务没有起起来。windows平台个一如下操作:开始---程序---管理工具---服务,打开服务面板,启动oraclehome92TNSlistener服务。
2.database instance没有起起来。windows平台如下操作:开始---程序---管理工具---服务,打开服务面板,启动oracleserviceXXXX,XXXX就是你的database SID.
3.注册表问题。regedit,然后进入HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOME0将该环境变量ORACLE_SID设置为XXXX,XXXX就是你的database SID.或者右几我的电脑,属性--高级--环境变量---系统变量--新建,变量名=oracle_sid,变量值=XXXX,XXXX就是你的database SID.或者进入sqlplus前,在command line下输set oracle_sid=XXXX,XXXX就是你的database SID.
经过以上步骤,就可以解决问题

1、ORA-12541:TNS:没有监听器
原因:没有启动监听器或者监听器损坏。如果是前者,使用命令net start OracleOraHome81TNSListener(名字可能有出入)即可;如果是后者,则使用“Net8 Configuration

Assistant”工具向导之“监听程序配置”增加一个监听器即可(基本不用写任何信息,一路OK。在添加之前可能需要把所有的监听器先删除!)
2、ORA-12500:TNS:监听程序无法启动专用服务器进程或ORA-12560:TNS:协议适配器错误
原因:ORACLE的数据库服务没有启动。使用命令net start ORACLESERVICEORADB(ORADB为数据库名字)即可。如果仍没有解决,请继续向下看。

3、如果数据库服务启动失败,则很有可能是其注册表项值损坏,最好的做法是以下两步:
1)ORADIM -DELETE -SID oradb 删除数据库服务项
2)ORADIM -NEW -SID oradb 新增数据库服务项
注:这个过程中如果出错,就重启计算机!
4、ORA-12154:TNS:能解析服务名
原因:ORACLE的网络服务名没有正确配置。请使用“Net8 Configuration Assistant”工具向导之“本地网络服务名配置”配置TNS即可。如果仍没有解决,请继续向下看。
5、ORA-1034 :TNS:ORACLE不可用
原因:ORACLE的数据库服务正确启动,但是数据库没有打开!
使用命令:
1)svrmgrl 启动服务管理器
2)connect internal 以internal身份登陆
3)startup 打开数据库
6、ORA-12560:TNS:协议适配器错误(顽固性的)
原因:未知。
解决:必杀技--打开“Windows任务管理器”,杀死ORACLE.exe及ORADIM.exe进程,书写自己的

ora_startup.bat,执行之!
PS:
1、我的ora_startup.bat:
net start OracleOraHome81TNSListener
net start ORACLESERVICEORADB
svrmgrl 一般情况下不用,不过有时少不了它的,具体步骤见第5步。
2、我的ora_shutdown.bat:
net stop OracleOraHome81TNSListener
net stop ORACLESERVICEORADB

  ORACLE_HOME=/u01/app/oracle/product/8.1.6
export ORACLE_HOME/ 包括Oracle软件的目录 /
LD_LIBRARY_PATH=/u01/app/oracle/product/8.1.6/lib;
export LD_LIBRARY_PATH
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE/ 包括Oracle软件的目录和管理软件的目录 /
ORACLE_SID=ORCL
export ORACLE_SID/ 缺省数据库的标识 /
ORACLE_TERM=vt100
export ORACLE_TERM
ORA_NLS33=/u01/app/oracle/product/8.1.6/
ocommon/nls/admin/data
export ORA_NLS33 / 语言支持 /
PATH=$PATH: /u01/app/oracle/product/8.1.6/bin
export PATH

=============================================
ORA-12560 STARTING LISTENER ON NT - TROUBLESHOOTING
---------------------------------------------------

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.

This is a high level error just reporting an error occurred in the actual transport layer. Look at the next error down the stack and process that.

1.- Starting Listener with TCP/IP Protocol
   
    Problem:
    You start the TNS Listener from command line and the TCP/IP address fails with a TNS-12560.

Solution:
    Check if Microsoft Winsock Proxy(WSP) Client is enabled on the Windows NT Server, if that is the case then go to windows Control Panel, click WSP icon and select the disable Proxy Client option.

Explanation:
    The Winsock application may fail to bind to a specific port on a Proxy Server computer when the Winsock is running Proxy Client.

2.- TNS-12560 TNS-512 Starting the listener.

Problem:
    You try to start up the listener and receive the following error stack:
    TNS-12542: TNS:address already in use
     TNS-12560: TNS Protocol adapter error
      TNS-00512: Address already in use
       32-bit Windows Error: 48: Unknown error

Error: TNS 512
    Text:   Address already in use
    --------------------------------------------
    Cause: Specified listener address is already being used.
    Action: Start your listener with an unused address.

Generally this problem may ocurr for a incorrect setting in the listener.ora. Some causes of this problems may be:
   
    a.- Some defined address in the listeners.ora is been used. Make sure other listeners are not running. Either listener.log and screen output appear the address with problem.
       
    b.- Just for 8i: in windows NT the algorithm to acquire
        the address has change, please check the Note 69026.1: Oracle 8i and socket LISTEN operations.

Explanation:
   The listener will try to acquire the address in exclusive mode, if this is been used then the process to get it will fail.
   
3.- Starting the listener the errors ORA-12203,ORA-12560, NL-462 or NL-427 may be raised.

Problem:
    You try to start up the listener and receive the following errors
    ORA-12203,ORA-12560, NL-462 or NL-427.

Solution:
    Recreate the listener.ora file.

Explanation:
    Some corruption in the listener.ora may get unable to the tnslsnr to work adequatly.

4.- Failed to start service, TNS-12560, TNS-00530 when create new listener services

Problem:
    To recreate Oracle TNS listener service on Windows NT, you delete the service entry in registry. When using lsnrctl to start the listener, you get the following errors:

LSNRCTL> start
    Starting tnslsnr: please wait...

Failed to start service, error 3.

TNS-00530: Protocol adapter error

The Listener service is not recreated and the Listener would not start.
    You are using a valid listener.ora file and protocol adapters.

Solution:
    After you delete the Listener service from registry, you have to reboot NT for it to take effect. Then you can use lsnrctl to start the Listener, which would re-create the listener service.

Explanation:
    The Listener service is marked 'disabled', but it still exists after you delete the service from registry.

ORA-12560: TNS: 协议适配器错误的解决方法相关推荐

  1. oracle协议适配器错误00530,ORA-12560: TNS: 协议适配器错误的解决方法

    Case: Microsoft Windows [版本 5.2.3790] (C) 版权所有 1985-2003 Microsoft Corp. C:\Documents and Settings\u ...

  2. 协议适配器错误的解决方法

    ORA-12560: TNS: 协议适配器错误的解决方法 2008年10月08日 星期三 10:31 Case: Microsoft Windows [版本 5.2.3790] (C) 版权所有 19 ...

  3. Oracle 协议适配器错误的解决方法

    我是在cmd sqlplus时提示的协议适配器错误,但用plsql登录是可以连接上的. 查阅了很多博主的文章,按我自己解决问题的思路整理了一下: 1.首先看本地服务有没有打开: Oracle ORCL ...

  4. ORA-12560:TNS:协议适配器错误的解决方案

    今天重温oracle数据库,发现启动不了了 ORA-12560: TNS: 协议适配器错误的解决方法 造成ORA-12560: TNS: 协议适配器错误的问题的原因有三个: 1.监听服务没有起起来.w ...

  5. ORA-12560: TNS: 协议适配器错误 解决方法

    前言 我在控制台重启oracle服务端监听lsnrctl start的时候     报错:ORA-12560: TNS: 协议适配器错误 解决方法 一:检查监听口是否开启.在开始-运行,输入servi ...

  6. sqlplus登录时遇到的ORA-12560: TNS: 协议适配器错误解决办法

    sqlplus登录时遇到的ORA-12560: TNS: 协议适配器错误解决办法 在windows下使用lsnrctl start启动监听之后,然后使用sqlplus登录的时候遇到了ORA-12560 ...

  7. oracle TNS: 协议适配器错误 解决办法

    解决ORA-12560: TNS: 协议适配器错误 造成ORA-12560: TNS: 协议适配器错误的问题的原因有三个: 1.监听服务没有起起来.windows平台个一如下操作:开始---程序--- ...

  8. ORA-12560 TNS 协议适配器错误问题的解决方法

    使用 SQL Plus 登陆 Oracle12c 时,发现抛出 ORA-12560 TNS 协议适配器错误. 1 分析 打开 Windows services,可以发现相关 Oracle 服务都已启动 ...

  9. Oracle登录错误12560,登录错误-----ORA-12560: TNS: 协议适配器错误

    问:操作系统windows,oracle9i在服务端,以sys登陆不加服务名,登陆报错:如果加上服务名登陆正确.重启操作系统,重启db,现在在服务端无论用什么用户登陆只要不加服务名都错误:连接时加上服 ...

最新文章

  1. 正则表达式中?=和?:和?!的理解
  2. 2021 年 5 月中国编程语言排行榜,C++ 超过 Java 没戏了...
  3. python使用什么注释语句和运算-python 闯关之路一(语法基础)
  4. spring中@Transaction注解解析
  5. 设计模式中的开闭原则
  6. 文件内容查找java,java库从文件内容中查找mime类型
  7. Windows Server 2003显示中文为乱码(方框)的问题
  8. 南航计算机学院岳涛,自动化学院 - 南京航空航天大学
  9. python开发环境管理:pip和virtualenv
  10. JQuery语法 JQuery对象与原生对象互转 文档就绪函数与window.onload的区别
  11. 开放Nginx在文件夹列表功能
  12. jq 如何获取多选框选中的值
  13. 读书笔记 UltraGrid(2)
  14. Java出现OutOfMemoryError
  15. 大厂阿里程序员的薪资:简述阿里的薪酬体系和职级
  16. imports build constraints exclude all Go files in
  17. 电气领域相关数据集(目标检测,分类图像数据及负荷预测),输电线路图像数据
  18. python实现onvif客户端及问题小结
  19. diy 单片机 自动浇花_基于单片机的自动浇花系统
  20. 大数据Hive 面试以及知识点

热门文章

  1. 激活Microsoft Office professional plus 2010
  2. python循环嵌套流程图,详解Python 循环嵌套
  3. WORD插入endnote文献出现的问题汇总
  4. 抖音知识付费如何快速引流变现?
  5. 自己动手写android手机桌面-第一篇
  6. prolog应用:解决爱因斯坦“斑马”问题
  7. 注册表计算机性能设置怎么应用,如何修改注册表优化电脑性能 修改注册表优化电脑性能方法...
  8. 『遥かに仰ぎ、丽しの』游戏初回版特典原声集 GAME SP OST(下载、中日双语歌词)
  9. ICV:2025 年中国汽车磁传感器芯片市场规模将达到4.8亿美元
  10. 关于Potplayer右下角弹窗解决方案