今天在set oracle_sid的时候实例名前面随便多敲了个空格
导致不使用服务名无法连接数据库
C:\Documents and Settings\User>set oracle_sid= jcq0
C:\Documents and Settings\User>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 17 19:45:03 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS: 协议适配器错误
请输入用户名:
去掉实例名前面的空格之后
数据库可以正常连接
C:\Documents and Settings\User>set oracle_sid=jcq0
C:\Documents and Settings\User>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 17 19:44:46 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14130873/viewspace-606613/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14130873/viewspace-606613/