The Oracle base remains unchanged with value /u01/app/oracle
[oracle@dbserver ~]$ echo $ORACLE_SID
emrep
[oracle@dbserver ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0/dbhome_1
[oracle@dbserver ~]$
我要切换回 orcl呢
[oracle@dbserver ~]$ . oraenv
ORACLE_SID = [emrep] ? orcl
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@dbserver ~]$ echo $ORACLE_SID
orcl
[oracle@dbserver ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0/dbhome_1
[oracle@dbserver ~]$
我想切换到没有的新的实例名呢
比如,我准备新建一个auxdb实例
[oracle@dbserver ~]$ . oraenv
ORACLE_SID = [orcl] ? auxdb
ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/12.1.0/dbhome_1
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@dbserver ~]$ echo $ORACLE_SID
auxdb
[oracle@dbserver ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0/dbhome_1
[oracle@dbserver ~]$