[转]ORA-12560: TNS: 协议适配器错误
转自:http://worms.blog.51cto.com/969144/1293265
Sqlplus 登陆oracle时报错ORA-12560:TNS: 协议适配器错误
如下:C:\Users\Administrator>setORACLE_SID=DDBC
C:\Users\Administrator>SQLPLUS/ AS SYSDBA
SQL*Plus:Release 11.2.0.1.0 Production on 星期一 9月 9 16:41:392013
Copyright (c)1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560:TNS: 协议适配器错误
请输入用户名:
先查看下oracle官方对12560的解释:
ORA-12560:TNS:protocol adapter error
Cause: A generic protocol adapter error occurred.
Action: Check addresses used for proper protocolspecification. Before reporting this error, look at the error stack and checkfor lower level transport errors. For further details, turn on tracing andreexecute the operation. Turn off tracing when the operation is complete.
那么在看看当前的数据库,因为数据库服务器上同时装有oracle client端,所以,setORACLE_SID=sid时候,应该是到了client端的目录中,那么可以确认下,直接到server端的目录中查看:
C:\Users\Administrator>cdC:\app\Administrator\product\11.2.0\dbhome_1\BIN
C:\app\Administrator\product\11.2.0\dbhome_1\BIN>setORACLE_SID=DDBC
C:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus/ as sysdba
SQL*Plus:Release 11.2.0.1.0 Production on 星期一 9月 9 16:47:002013
Copyright (c)1982, 2010, Oracle. All rights reserved.
连接到:
OracleDatabase 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With thePartitioning, OLAP, Data Mining and Real Application Testing options
SQL> selectstatus from v$instance;
STATUS
------------
OPEN
SQL>
这就说明,这是在sqlplus登陆时用的是client端登陆的,可是在环境变量administrator中设置server端的变量,但是还是不行,结果查看环境变量SET:
Path=E:\app\Administrator\product\11.2.0\client_1\bin;C:\app\Administrator\product\11.2.0\dbhome_1\bin;………………
原来是因为在系统中设置了path,其优先级高,所以才会出现这种现象,修改后就可以了。
另外要说的是在网上搜索ORA-1256090%的都是那4步,但是99%没有解决问题。所以在针对问题上,还要细心的思考,才能找到解决问题的思路。
Sqlplus 登陆oracle时报错ORA-12560:TNS: 协议适配器错误
如下:C:\Users\Administrator>setORACLE_SID=DDBC
C:\Users\Administrator>SQLPLUS/ AS SYSDBA
SQL*Plus:Release 11.2.0.1.0 Production on 星期一 9月 9 16:41:392013
Copyright (c)1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560:TNS: 协议适配器错误
请输入用户名:
先查看下oracle官方对12560的解释:
ORA-12560:TNS:protocol adapter error
Cause: A generic protocol adapter error occurred.
Action: Check addresses used for proper protocolspecification. Before reporting this error, look at the error stack and checkfor lower level transport errors. For further details, turn on tracing andreexecute the operation. Turn off tracing when the operation is complete.
那么在看看当前的数据库,因为数据库服务器上同时装有oracle client端,所以,setORACLE_SID=sid时候,应该是到了client端的目录中,那么可以确认下,直接到server端的目录中查看:
C:\Users\Administrator>cdC:\app\Administrator\product\11.2.0\dbhome_1\BIN
C:\app\Administrator\product\11.2.0\dbhome_1\BIN>setORACLE_SID=DDBC
C:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus/ as sysdba
SQL*Plus:Release 11.2.0.1.0 Production on 星期一 9月 9 16:47:002013
Copyright (c)1982, 2010, Oracle. All rights reserved.
连接到:
OracleDatabase 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With thePartitioning, OLAP, Data Mining and Real Application Testing options
SQL> selectstatus from v$instance;
STATUS
------------
OPEN
SQL>
这就说明,这是在sqlplus登陆时用的是client端登陆的,可是在环境变量administrator中设置server端的变量,但是还是不行,结果查看环境变量SET:
Path=E:\app\Administrator\product\11.2.0\client_1\bin;C:\app\Administrator\product\11.2.0\dbhome_1\bin;………………
原来是因为在系统中设置了path,其优先级高,所以才会出现这种现象,修改后就可以了。
另外要说的是在网上搜索ORA-1256090%的都是那4步,但是99%没有解决问题。所以在针对问题上,还要细心的思考,才能找到解决问题的思路。
[转]ORA-12560: TNS: 协议适配器错误的更多相关文章
- Oracle用imp导入dmp 提示遇到 ORACLE 错误 12560 TNS: 协议适配器错误 解决方法
用imp命令导入dmp文件时提示以下错误: IMP-00058: 遇到 ORACLE 错误 12560 : ORA-12560: TNS: 协议适配器错误 : IMP-00000: 未成功终止导入 : ...
- TNS-12541: TNS: 无监听程序 TNS-12560: TNS: 协议适配器错误 TNS-00511: 无监听程序
文章转自:http://www.luocs.com/archives/464.html 此文版权归作者 – yaogang所有,转载请注明yaogang©www.luocs.com. Luocs说:这 ...
- TNS-12560: TNS: 协议适配器错误
TNS-12560: TNS: 协议适配器错误 Microsoft Windows [版本 5.2.3790] (C) 版权所有 1985-2003 Microsoft Corp. C:\Docu ...
- ORA-12560: TNS: 协议适配器错误的解决方法
ORA-12560: TNS: 协议适配器错误的解决方法 造成ORA-12560: TNS: 协议适配器错误的问题的原因有三个: 1.监听服务没有起起来.windows平台个一如下操作:开始---程序 ...
- 安装完ODTwithODAC112012,出现ORA-12560:TNS:协议适配器错误
参考:http://blog.csdn.net/tan_yixiu/article/details/6762357 操作系统:windows2008 Enterprise 64位 开发工具:VS201 ...
- oracle:ora-12560 tns 协议适配器错误
今天新安装了一个oracle server,实例启动了,监听状态也正常. [oracle@db ~]$ lsnrctl status LSNRCTL for Linux: Version 11.2.0 ...
- ORACLE中的Net Configuration Assistant 点击后无反应, sqlplus登录数据库提示Oracle11g ORA-12560: TNS: 协议适配器错误
首先是对于点击无反应问题: 如果是客户端下的Net Configuration Assistant可用,而服务器端的Net Configuration Assistant等工具不可用的原因如下. 环境 ...
- ORA-12560: TNS: 协议适配器错误 ORA-12154: TNS: 无法解析指定的连接标识符
在国庆期间,数据库存储过程在通过dblink跨库调用存储过程时,错误日志中记录了ORA-12560: TNS: 协议适配器错误的异常日志. 偶尔用PL/SQL连接数据库时,又频繁提示:ORA-1215 ...
- 安装完ODAC,出现ORA-12560:TNS:协议适配器错误 12541 无监听程序的解决
进入系统环境变量设置,查看Path路径,发现D:\oracle\product\11.2.0\client_1等路径放到了oracle11g数据库路径前面,将新加入的路径置后即可解决ORA-12560 ...
随机推荐
- ueditor图片上传和显示问题
图片上传: 这段是contorller代码 @RequestMapping(value = "/uploadImg", method = RequestMethod.POST) @ ...
- C#代码覆盖率实践-vsinstr和OpenCover
C#代码覆盖率实践-vsinstr和OpenCover 标签: C#覆盖率Visual StudioOpenCover测试 2013-06-09 00:57 8149人阅读 评论(8) 收藏 举报 ...
- 根据时间段获取时间段内所有时间点(js)
Date.prototype.format=function (){var s='';s+=this.getFullYear()+'-';// 获取年份.s+=(this.getMonth()+1)+ ...
- linux 查看系统磁盘、内存大小
1.磁盘 df -h cat /proc/partitions 2.内存 cat /proc/meminfo cat /proc/meminfo
- Winfrom控件使用
1.Lablelable添加图片,解决图片和字体重叠? Text属性添加足够空格即可,显示效果如下所示: 2.根据窗体名称获取窗体并显示到指定panel? Label item = sender as ...
- python+selenium自动化软件测试(第3章):unittes
From: https://blog.csdn.net/site008/article/details/77622472 3.1 unittest简介 前言 (python基础比较弱的,建议大家多花点 ...
- ALGO-151_蓝桥杯_算法训练_6-2递归求二进制表示位数
记: 进制转换 AC代码: #include <stdio.h> #define K 2 int main(void) { ; scanf("%d",&n); ...
- 算法:整数与ip地址转换
直接上代码(不要直接拷贝,中间少了一行啊): #include <string> #include <iostream> using namespace std; ...
- Foxmail Gmail Outlook
三个邮件客户端都比较好,但是作为用户精力是非常有限地,必须优中选优. 我选outlook,非常值得拥有. 理由如下: (1)和office完美契合 (2)和生产环境完美契合 (3)免费 (4)良好地任 ...
- 个人知识管理PKM:收集、消化、应用、创新
个人知识管理PKM:收集.消化.应用.创新 准备工作1.制作知识分类体系(在线博客分类.本地 ...