【转】协议适配器错误(ORA-12560: TNS:protocol adapter error)
来源:互联网 发布:java virtual 编辑:程序博客网 时间:2024/05/17 06:58
〖Environment(环境)〗
OS:WINDOWS XP
DB:ORACLE 10.2
〖Symptom(现象) 〗
启动sqlplus,然后登陆数据库,出现错误,具体信息如下:
C:\Documents and Settings\netshong>sqlplus
SQL*Plus: Release10.2.0.1.0 - Production on星期一7月24 13:46:02 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
请输入用户名: sys as SYSDBA
输入口令:
ERROR:
ORA-12560: TNS:协议适配器错误
〖Cause(原因)〗
这是由于环境变量ORACLE_SID没有设置或者设置错误所造成的。在启动sqlplus以前,我们在DOS窗口的命令行执行了这样的命令:set Oracle_sid=BBC。这个命令设置的SID(BBC)不存在,所以造成了ORA-12560错误。
〖Action(方法) 〗
n 方法一:设置正确的ORACLE_SID,然后登录数据库。
Step01:设置ORACLE_SID
C:\> set ORACLE_SID=wm
wm是实例(instance)的名字。
Step02:登录数据库。
C:\Documents and Settings\netshong>sqlplus
SQL*Plus: Release10.2.0.1.0 - Production on Sun Nov 19 06:23:52 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: sys as SYSDBA
Enter password:
Connected to:
Oracle Database10gEnterpriseEdition Release10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
成功登陆数据库。
n 方法二:连接数据库时,使用网络服务名(Net Service Name)。
C:\Documents and Settings\netshong>sqlplus
SQL*Plus: Release10.2.0.1.0 - Production on Mon Sep 4 09:37:15 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: sys@wm as SYSDBA
Enter password:
Connected to:
Oracle Database10gEnterpriseEdition Release10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
这里使用网络服务名(Net Service Name)wm连接数据库,网络服务名(Net Service Name)wm是在ORACLE网络中进行配置的。
转载自:http://lvming1000.blog.163.com/blog/static/1168600200910711633810/
上一篇:fstream和stringstream之间的转换
下一篇:oracle 10g sqlplus,PL SQL Developer,character中文乱码解
- A sample .exrc file for vi e...
- 游标的特征
- IBM System p5 服务器 HACMP ...
- busybox的httpd使用CGI脚本(Bu...
- Solaris PowerTOP 1.0 发布
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
- 协议适配器错误(ORA-12560: TNS:protocol adapter error)
- ORA-12560: TNS: TNS:protocol adapter error 协议适配器错误
- ORA-12560: TNS:protocol adapter error(TNS:协议适配器错误)
- ORA-12560: TNS:protocol adapter error(TNS:协议适配器错误)
- ORA-12560: TNS:protocol adapter error(TNS:协议适配器错误)
- ORA-12560: TNS:protocol adapter error(TNS:协议适配器错误)
- 【转】协议适配器错误(ORA-12560: TNS:protocol adapter error)
- ERROR - ORA-12560: TNS:protocol adapter error?
- ORA-12560: TNS:protocol adapter error
- linux ORA-12560: TNS:protocol adapter error
- ORA-12560 TNS:protocol adapter error
- ORA-12560: TNS:protocol adapter error
- ERROR: ORA-12560: TNS: 协议适配器错误--解决办法
- Oracle ERROR: ORA-12560: TNS: 协议适配器错误
- ORA-12560: TNS: 协议适配器错误
- ORA-12560: TNS:协议适配器错误 解决方案
- 解决ORA-12560: TNS: 协议适配器错误
- 解决ORA-12560: TNS: 协议适配器错误
- Bitmap.recycle引发的血案
- HDOJ 2047 阿牛的EOF牛肉串
- 【转】C/C++字节对齐算法
- 【LeetCode OJ 260】Single Number III
- fstream和stringstream之间的转换
- 【转】协议适配器错误(ORA-12560: TNS:protocol adapter error)
- oracle 10g sqlplus,PL SQL Developer,character中文乱码解
- Tomcat Can't load AMD 64-bit .dll on a IA 32
- VB.NET&C#&VB较量
- 【转】 IntelliJ Idea 常用快捷键列表
- 手机端图片左右滑动效果实现
- 图像处理(五)双指数磨皮
- 【转】C++类的实例分布
- 【转】C++成员函数的内存分配问题