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

SQL> conn /as sysdba                                        
ERROR:
ORA-12162: TNS:net service name is incorrectly specified


原因是ORACLE_SID没有指定
SQL> export ORACLE_SID=xxx
SQL> echo $ORACLE_SID


SQL> conn /as sysdba

你可能感兴趣的:(service)