[root@localhost ~]# su - oracle
[oracle@localhost ~]$ sqlplus ‘/as sysdba‘
SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 22 17:10:52 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[oracle@localhost ~]$ export ORACLE_SID=PROD //向环境变量中添加实例名,说明需手动设置
[oracle@localhost ~]$ sqlplus ‘/as sysdba‘
SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 22 17:11:16 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select status,instance_name from v$instance; //登录后查询状态,正常
STATUS INSTANCE_NAME
------------ ----------------
OPEN PROD
相关文章
- 03-07在主函数中提示用户输入用户名和密码。另写一方法来判断用户输入是否正确。该方法分别返回一个bool类型的登录结果和和一个string类型的登录信息。如登录成功,返回true及“登录成功”,若登录失败则返回false及“用户名错误”或“密码错误”(使用out参数)
- 03-07登录RMAN 报ORA-12162:TNS:net service name is incorrectly specified错误
- 03-07连接IIS应用时,提示“用户 'IIS APPPOOL\***' 登录失败”错误的解决办法(IIS连接SqlServer失败)
- 03-07jenkins用户权限配置错误,导致登录时提示:没有Overall/read权限
- 03-07织梦cms登录后台提示Function ereg_replace()错误的解决方法
- 03-07sqlplus/rman登录报权限错误ORA-01031/ORA-04005/0RA-00554
- 03-07Oracle 11g OEM登录后提示“出现内部错误”
- 03-07登录MySQL提示ERROR 1045 (28000)错误解决方法
- 03-07sqlplus登录Oracle时ORA-01017: invalid username/password; logon denied的错误
- 03-07案例:使用sqlplus登录报ORA-12547错误