Solaris Example
The following Solaris example sets the environment variables that are required for
selecting an instance. When switching between instances with different Oracle homes,
the<wbr> ORACLE_HOME<wbr> environment variable must be changed.<br> % setenv ORACLE_SID SAL1<br> % setenv ORACLE_HOME /u01/app/oracle/product/10.1.0/db_1<br> % setenv LD_LIBRARY_PATH /usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib<br><br> Most UNIX installations come with two scripts, <span style="color: rgb(237, 28, 36);">oraenv</span><wbr> and coraenv, that can be<br> used to easily set these environment variables. For more information, see<br> Administrator's Reference for UNIX Systems.<br><br> Windows Example<br> On Windows, you must set only the ORACLE_ SID environment variable to select an<br> instance before starting SQL*Plus.<br> SET ORACLE_SID=SAL1 </wbr></wbr></wbr>
The following Solaris example sets the environment variables that are required for
selecting an instance. When switching between instances with different Oracle homes,
the<wbr> ORACLE_HOME<wbr> environment variable must be changed.<br> % setenv ORACLE_SID SAL1<br> % setenv ORACLE_HOME /u01/app/oracle/product/10.1.0/db_1<br> % setenv LD_LIBRARY_PATH /usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib<br><br> Most UNIX installations come with two scripts, <span style="color: rgb(237, 28, 36);">oraenv</span><wbr> and coraenv, that can be<br> used to easily set these environment variables. For more information, see<br> Administrator's Reference for UNIX Systems.<br><br> Windows Example<br> On Windows, you must set only the ORACLE_ SID environment variable to select an<br> instance before starting SQL*Plus.<br> SET ORACLE_SID=SAL1 </wbr></wbr></wbr>
本文提供了一套详细的步骤指南,用于在Solaris和Windows操作系统中配置环境变量,以选择不同的数据库实例。介绍了如何使用oraenv和coraenv等脚本来简化这一过程,并提供了实际的命令示例。
3472

被折叠的 条评论
为什么被折叠?



