During the connection to the Oracle Database server with the sqlplus we may get an error with the ORA-12162 specifier. This error will prevent to connect to the Oracle Database Server.
在使用sqlplus连接到Oracle数据库服务器的过程中,ORA-12162说明符可能会出错。 此错误将阻止连接到Oracle数据库服务器。
“ ORA-12162:TNS:net服务名称指定不正确”错误 (“ORA-12162: TNS:net service name is incorrectly specified” Error)
This error will be look like below. This error is caused by not setting $ORACLE_HOME and $ORACLE_SID environment variables for Linux and Windows Operating systems.
该错误如下所示。 此错误是由于未为Linux和Windows操作系统设置$ ORACLE_HOME和$ ORACLE_SID环境变量引起的。
检查$ ORACLE_HOME环境变量(Check $ORACLE_HOME Environment Variable)
$ORACLE_HOME is important operating system variable used by Oracle Database. First we will check whether it is set or set properly with the echo command like below in Linux.
$ORACLE_HOME是Oracle数据库使用的重要操作系统变量。 首先,我们将使用echo命令(如Linux中的以下命令)检查它是否已设置或正确设置。
$ echo $ORACLE_HOME












