-------------------------------7.修改环境变量
[Oracle@instructor ~]$ pwd
/home/oracle
[oracle@instructor ~]$ whoami
oracle#---------------oracle 用户登陆
[oracle@instructor ~]$
[oracle@instructor ~]$ ll -a
total 36
drwx------. 4 oracle oinstall 4096 Oct 21 19:57 .
drwxr-xr-x. 5 root root 4096 Oct 21 09:48 ..
-rw-------. 1 oracle dba 159 Oct 21 04:25 .bash_history
-rw-r--r--. 1 oracle oinstall 18 Jun 22 2010 .bash_logout
-rw-r--r--. 1 oracle oinstall 926 Oct 21 19:57 .bash_profile
-rw-r--r--. 1 oracle oinstall 124 Jun 22 2010 .bashrc
drwxr-xr-x. 2 oracle oinstall 4096 Jul 14 2010 .gnome2
drwxr-xr-x. 4 oracle oinstall 4096 Aug 20 08:05 .mozilla
-rw-------. 1 oracle oinstall 1598 Oct 21 19:57 .viminfo
---------------------
[oracle@instructor ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/app/oracle;
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORA_CRS_HOME=$ORACLE_BASE/crs
export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdms/admin
export ORACLE_SID=orcl
export PATH=${PATH}:$ORACLE_HOME/bin:ORA_CRS_HOME/bin:$HOME/bin
export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/local/lib:$ORACLE_HOME/oracm/bin:$ORACLE_HOME/lib
export LIBPATH=$LIBPATH:$ORA_CRS_HOME/LIB:$ORACLE_HOME/lib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/JRE
export THREADS_FLAG=native
export LD_BIND_NOW=1
~
~
".bash_profile" 26L, 926C written
#/* -------------------------------------
Get the following error when installing Oracle. I have java version "1.7.0_05" and based on the log, it appears that Oracle is trying to install the binaries using an older version of java (1.5.0). Has anyone come across this issue?
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00000030b7014d70, pid=2615, tid=140142440847120
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode)
# Problematic frame:
# C [ld-linux-x86-64.so.2+0x14d70]
#oracle 11g 在RedHat linux 6.0 安装报错 C [ld-linux-x86-64.so.2+0x14d70]
#是oracle自带java运行库问题
#解决方法:在oracle用户的 .bashprofile中添加环境变量 export LD_BIND_NOW=1
# ------------------------------------ */
[oracle@instructor ~]$ . .bash_profile
[oracle@instructor ~]$ cd $ORACLE_HOME
[oracle@instructor dbhome_1]$ pwd
/app/oracle/product/11.2.0/dbhome_1
