日期:2014-05-17  浏览次数:20810 次

sqplus登陆问题
linux中,使用两种不同的方法登陆一个数据库实例:MYBANK, 结果只有一种方法可以:

方法1:分步登录

[oracle@XXX ~]$ sqlplus 

SQL*Plus: Release 11.2.0.1.0 Production on Thu Apr 22 17:38:13 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Enter user-name: 
Enter password: 

成功

方法2:直接登录

[oracle@XXX ~]$ sqlplus XXX/XXXX@MYBANK

失败
提示错误:

SQL*Plus: Release 11.2.0.1.0 Production on Thu Apr 22 17:46:55 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


请问这是什么原因?

------解决方案--------------------
MYBANK未配置好。

tnsping MYBANK