linux中,使用两种不同的方法登陆一个数据库实例:MYBANK, 结果只有一种方法可以:方法1:分步登录[oracle@XXX ~]$ sqlplus SQL*Plus: Release 11.2.0.1.0 Production on Thu Apr 22 17:38:13 2010Copyright (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 2010Copyright (c) 1982, 2009, Oracle. All rights reserved.ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
请问这是什么原因?
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 2010Copyright (c) 1982, 2009, Oracle. All rights reserved.ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
请问这是什么原因?
因为本机登录可以不配置tnsnames.ora中的连接串。
如果用第二种方式登录,必须配置tnsnames.ora,
另外还必须启动监听
我一般是用pl/sql developement来登录。
我一般是用pl/sql developement来登录。