标题: ORA-12162: TNS:net service name is incorrectly specified 错误解决 [打印本页] 作者: jiawang 时间: 2019-8-29 13:52 标题: ORA-12162: TNS:net service name is incorrectly specified 错误解决 报错现象:
[oracle@hisdg ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Aug 29 00:59:02 2019
Copyright (c) 1982, 2013, 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
使用连接串的方式正常启动数据库:
[oracle@hisdg ~]$ sqlplus system/oracle@orcl
SQL*Plus: Release 11.2.0.4.0 Production on Thu Aug 29 01:02:23 2019
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
再次尝试登陆:
[oracle@hisdg ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Aug 29 01:04:12 2019
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
+DGDATA/orcl/datafile/system.256.1017533309
+DGDATA/orcl/datafile/sysaux.257.1017533309
+DGDATA/orcl/datafile/undotbs1.258.1017533309
+DGDATA/orcl/datafile/users.259.1017533309