vi /home/oracle/.bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=/home/oracle/product/9.2.0
export ORACLE_SID=boss
export ORACLE_TERM=oracle
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/td/lib:/usr/ucblib:/usr/local/lib
export LD_LIBRARY_PATH
PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/local/java/j2sdk1.4.2/bin
PATH=$PATH:/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/local/GNU/bin:/usr/X11R6/bin
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin PATH=$PATH:/usr/local/samba/bin:/usr/ucb:
export PATH
vi /etc/profile
JAVA_HOME=/usr/java/j2sdk1.4.2_09; export JAVA_HOME
PATH="$JAVA_HOME/bin:$PATH"; export PATH
CLASSPATH=./:/usr/java/j2sdk1.4.2_09/lib:/usr/java/j2sdk1.4.2/jre/lib; export CLASSPATH
TOMCAT_HOME=/tomcat; export TOMCAT_HOME
ORACLE_HOME=/home/oracle/product/9.2.0/; export ORACLE_HOME
ORACLE_SID=boss;export ORACLE_SID
ORACLE_BASE=/home/oracle/; export ORACLE_BASE
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG
在同样的操作系统下, 可以把移植oracle后,再重新设置上面的相关变量.