详解数据库Oracle 11g的基本安装
2007-07-15 12:34:45 来源:WEB开发网一、准备安装
基本都是按部就班。
使用的OS版本:OEL4
以下是引用片段:
[oracle@ractest orcl]$ cat /etc/redhat-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
[oracle@ractest orcl]$ cat /etc/enterprise-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
安装程序路径:
/mnt/Oracle11g_linux_x86_64/database
创建用户
以下是引用片段:
groupadd -g 1001 dba
groupadd -g 1002 oinstall
useradd -u 10000 -g dba -G oinstall,dba -d /home/oracle -s /bin/bash oracle
chown -R oracle:dba /home/oracle
usermod -g dba -G oinstall,dba oracle
使用的.bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/11g
export ORA_CRS_HOME=$ORACLE_BASE/crs
export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin
export ORACLE_SID=orcl1
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:${PATH}:$HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/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/lib:/usr/local/lib:$ORACLE_HOME/oracm/lib:$ORACLE_HOME/lib
export LIBPATH=$LIBPATH:$ORA_CRS_HOME/lib:$ORACLE_HOME/lib
更多精彩
赞助商链接