- 浏览: 215603 次
- 性别:
- 来自: 天津
文章分类
最新评论
-
sun.zhang:
这个文章不错,怎么没人顶?
servlet 输出中文显示为问号"??"的解决办法 -
freeskywcy:
happy90 写道Keep-Alive 模式只要设置一下就行 ...
有关http Keep-Alive 的详细解释 -
happy90:
Keep-Alive 模式只要设置一下就行吗? 那编程的时候要 ...
有关http Keep-Alive 的详细解释
Case:
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
C:\Documents and Settings\user1>lsnrctl
LSNRCTL for 32-bit Windows: Version 9.2.0.7.0 - Production on 27-8月 -2008 09:33
:43
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
欢迎来到LSNRCTL,请键入"help"以获得信息。
LSNRCTL> status
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS:无监听器
TNS-12560: TNS: 协议适配器错误
TNS-00511: 无监听器
32-bit Windows Error: 2: No such file or directory
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.55)(PORT=1521)))
TNS-12538: TNS:没有此协议适配器
TNS-12560: TNS: 协议适配器错误
TNS-00508: 无此类协议适配器
LSNRCTL> start
启动tnslsnr:请稍候...
TNSLSNR for 32-bit Windows: Version 9.2.0.7.0 - Production
系统参数文件为D:\oracle\ora92\network\admin\listener.ora
写入D:\oracle\ora92\network\log\listener.log的日志信息
监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.55)(PORT=
1521)))
TNS-12538: TNS:没有此协议适配器
TNS-12560: TNS: 协议适配器错误
TNS-00508: 无此类协议适配器
监听程序未能启动。请参阅上面的错误消息...
---------------------------
服务
---------------------------
在 本地计算机 无法启动 OracleOraHome92TNSListener 服务。
错误 1067: 进程意外终止。
---------------------------
确定
---------------------------
==============================================================
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 startOracleOraHome81TNSListener(名字可能有出入)即可;如果是后者,则使用“Net8Configuration
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 ConfigurationAssistant”工具向导之“本地网络服务名配置”配置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 ControlPanel, 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 screenoutput 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 thisis 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 rebootNT 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 afteryou delete the service from registry.
发表评论
-
Oracle的EM(OracleDBConsoleorcl服务)无法启动的问题解决
2012-03-14 09:26 2834Oracle的EM(OracleDBConsoleorcl ... -
解决OracleDBConsoleorcl服务无法启动问题
2012-03-07 14:25 0Windows 不能在 本地计算机 启动 OracleDBCo ... -
oracle中的exists和not exists和in用法详解
2012-02-22 15:55 900有两个简单例子,以说明 “exists”和“in”的效率 ... -
Oracle分页,Oracle中rownum与rowid的理解
2012-02-16 15:02 1462一、 Oracle中 rownum与rowid的理解 ... -
ORACLE中字符串比较
2012-02-15 10:34 1867在oracle中,将空字符串 ... -
oracle 重复数据的分情况删除
2012-02-14 10:21 856Oracle认证:数据库重 ... -
char varchar varchar2 的区别
2011-12-26 16:04 919char varchar varchar2 的区别 ... -
ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务 的解决方法
2011-12-23 12:26 1018早上同事用PL/SQL连接 ... -
详解查看Oracle用户权限的七种方法
2011-12-23 11:32 770查看Oracle用户权限一般要通过一些实际 ... -
Oracle中TO_DATE格式
2011-12-09 08:57 685TO_DATE格式(以时间:2007-1 ... -
Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
2011-12-07 16:14 981转自:http://blog.csdn.net/wh62 ... -
一个修改Oracle用户密码的小诀窍
2011-12-03 16:34 1662有时候我们可能不知道一个用户的密码,但是又需要以这个用户做一 ... -
(oracle)只有 DBA 才能导入由其他 DBA 导出的文件
2011-11-29 14:29 1571连接到: Oracle Database 10g Enterp ... -
oracle定时任务(dbms_job)
2011-11-15 08:57 760原文地址:http://publish.it168.com/2 ... -
oracle中的tnsname.ora 参数解释
2011-10-20 09:36 1638可以在客户端机器上使 ... -
不安装Oracle客户端远程连接Orcale数据库
2011-10-20 09:36 1836第一种方法: 最近有 ... -
PLSQL 连接远程的ORACLE数据库解决方案
2011-10-20 09:36 1117PLSQL Developer连接远程的ORACLE数 ... -
oracle 常用函数nvl decode userenv greatest least
2011-10-10 15:04 1410如下3个函数,分别用新内容代替字段的空值://比如说用其他 ... -
to_char 和to_date的说明
2011-10-10 15:05 863to_char DATE 类型转换为 VARCHAR2 t ... -
To_Date函数用法
2011-10-09 15:11 1376To_Date函数用法 spl>select ...
相关推荐
ORA-12560 TNS 协议适配器错误
实验得来的,不是随便copy的, ORA-12560TNS协议适配器错误,这个问题可定可以解决
ORA-12560_TNS协议适配器错误_的问题
TNS-12541: TNS: 无监听程序 TNS-12560: TNS: 协议适配器错误 TNS-00511: 无监听程序 文章转自:http://www.luocs.com/archives/464.html 此文版权归作者 – yaogang所有,转载请注明yaogang©www.luocs.com。 ...
ORA-12541:TNS:没有监听器。...ORA-12500:TNS:监听程序无法启动专用服务器进程,或ORA-12560:TNS:协议适配器错误。原因:ORACLE的数据库服务没有启动。使用命令net start ORACLESERVICEORADB即可。
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 ...
oracle,TNS协议适配器错误,oracle配置
2、ORA-12500:TNS:监听程序无法启动专用服务器进程或ORA-12560:TNS:协议适配器错误。 3、如果数据库服务启动失败,则很有可能是其注册表项值损坏。。。4、ORA-12154:TNS:能解析服务名 5、ORA-1034 :TNS:ORACLE不可用...
oracle 协议适配器错误解决方法,和大家一起分享,一起学习,希望可以帮到忙
Oracle协议适配器错误问题解决ERROR:ORA-12560:TNS:协议适配器错误
NULL 博文链接:https://czwlucky.iteye.com/blog/964093
2.ORA-12560TNS:协议适配器错误 1.监听服务没有起起来。windows平台个一如下操作:开始—程序—管理工具—服务,打开服务面板, 启动OracleOraDb11g_home1TNSlistener服务。 2.database instance
数据库、ArcCatalog空间数据源正常访问,数据库设置没问题时,ArcEngine连接SDE时报"ORA-12560: TNS: 协议适配器错误"的解决办法;ArcEngine连接SDE总结;ArcSDE:C#打开SDE数据库的几种方式总结
前两天在Oracle中新建了一个数据库,今天把它删了之后再登录SQL*PLUS就登不上去了,出现ORA-12560:TNS:协议适配器错误。百度了下,找到了解决办法,直接把人家的文章拷贝过来,做备查资料。莫说我抄袭啊!这罪名太大...
ORA-12560: TNS: 协议适配器错误 原因分析:此错误常见于 Windows 平台,出现此错误的原因是系统当前默认的ORACLE_SID 不可用或不正确。 处理方案:查看系统当前默认的ORACLE_SID 的方法是:使用快捷键【Windows...
window平台下9i和8i 好像不...9i 必须启动服务中的OracleServiceSID,如果没有启动的话,在命令行执行conn / as sysdba,会报:ORA-12560: TNS: 协议适配器错误。 而8i 既可以在服务中启动数据库,也可以在命令行启动
由于在安装oracle忽然出现ORA-12557: TNS: 协议适配器不可加载错误,结果不了,我就重新整理了一套文档,希望对大家有用.下载后包含instantclient_11_2工具