admin 管理员组文章数量: 1087582
oracle报12560protocol,sqlplus连接时报:ORA
ORA-12560: TNS:protocol adapter error
此问题是由于oracle_sid没有设置或者设置错误导致的.
解决办法:
1:cmd命令行上:
C:\> set ORACLE_SID=orcl
orcl是设置的instance名字
在命令行上连接sqlplus如下:
C:\Documents and Settings\ldwtxwh>sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on 星期日 12月 20 18:22:28
2009
Copyright (c) 1982, 2004, Oracle. All rights
reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production
With the Partitioning, OLAP and Data Mining options
SQL>
ok!连接完毕
2:C:\Documents and Settings\ldwtxwh>sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on 星期日 12月 20 18:33:31
2009
Copyright (c) 1982, 2004, Oracle. All rights
reserved.
Enter user-name: sys/admin@orcl as SYSDBA
或者:scott/tiger@orcl
Connected to:
Oracle Database10gEnterpriseEdition Release10.2.0.1.0 -
Production
With the Partitioning, OLAP and Data Mining options
SQL>
ok!连接完毕
现在用你的sqlplus就可以连接登陆了.
本文标签: oracle报12560protocol sqlplus连接时报ORA
版权声明:本文标题:oracle报12560protocol,sqlplus连接时报:ORA 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1686651238a20488.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论