ORA-12162: TNS:net service name is incorrectly specified

[oracle@up ~]$ sql / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 11 15:29:31 2017


Copyright (c) 1982, 2009, Oracle.  All rights reserved.


ERROR:

ORA-12162: TNS:net service name is incorrectly specified


報錯顯示指定的網絡名稱不正確

查看.bash_profile文件

export PATH

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0

export ORACLR_SID=ora11g

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib


發現ORACLE_SID變量,名稱書寫錯誤,更正變量名稱,重新登錄


[oracle@up ~]$ sql / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 11 15:37:02 2017


Copyright (c) 1982, 2009, Oracle.  All rights reserved.



Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> 

登錄成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章