标签:现象 2.0 服务 error font 登录 correct pos lease
希望大家有所思考。
[oracle@asdlabdb01 ~]$ sqlplus system/sys SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 22:54:02 2010 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. ERROR: ORA-12162: TNS:net service name is incorrectly specified Enter user-name:2)使用sysdba身份登陆会得到相同的错误信息
[oracle@asdlabdb01 ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 22:54:48 2010 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. ERROR: ORA-12162: TNS:net service name is incorrectly specified Enter user-name:3)但此时,假设使用服务名方式连接数据库,是能够成功的。这也是该问题现象的诡异之处。
[oracle@asdlabdb01 ~]$ sqlplus system/sys@ora10g SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 22:53:41 2010 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options system@ora10g>
更让人抓狂的是。假设此时使用连接串登录到数据库进行停起操作。结果将会处于更加慘烈境况:数据库将由于无法正常登录导致无法启动数据库。
确认系统当前的ORACLE_HOME和ORACLE_SID环境变量
[oracle@asdlabdb01 ~]$ echo $ORACLE_HOME /oracle/app/oracle/product/10.2.0/db_1 [oracle@asdlabdb01 ~]$ echo $ORACLE_SID [oracle@asdlabdb01 ~]$
[oracle@asdlabdb01 ~]$ export ORACLE_SID=ora10g [oracle@asdlabdb01 ~]$ echo $ORACLE_SID ora10g [oracle@asdlabdb01 ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 23:27:34 2010 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options sys@ora10g>
ORA-12162: TNS:net service name is incorrectly specified 错误解决
标签:现象 2.0 服务 error font 登录 correct pos lease
原文地址:http://www.cnblogs.com/jzdwajue/p/7028764.html