The following Solaris example sets the environment variables that are required for
selecting an instance. When switching between instances with different Oracle homes,
the ORACLE_HOME environment variable must be changed.
% setenv ORACLE_SID SAL1
% setenv ORACLE_HOME /u01/app/oracle/product/10.1.0/db_1
% setenv LD_LIBRARY_PATH /usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib
Most UNIX installations come with two scripts, oraenv and coraenv, that can be
used to easily set these environment variables.
使用环境变量选择实例之 : Solaris环境
Solaris环境下 , 切换实例时必须修改ORACLE_HOME
setenv : ORACLE_SID , ORACLE_HOME , LD_LIBRARY_PATH