oracle:/ #

oracle:/ # su - oracle                       //切换到oracle用户

:~>echo $ORACLE_SID

或使用sqlplus连接后

:~> sqlplus / as sysdba

SQL> select instance from v$thread ;

INSTANCE

--------------------------------------------------------------------------------
orcl

SQL>