Oracle10gR2安装 -- CentOS5.4

1、检查和安装必要的软件包:
    
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3 elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.1
gcc-c++-4.1.1
glibc-2.5-12 glibc-common-2.5
glibc-devel-2.5
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1
libstdc++-4.1.1
libstdc++-devel 4.1.1
make-3.81
sysstat-7.0.0
libXp-1.0.0-8.1.el5

==============/etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

/sbin/sysctl -p


==================/etc/security/limits.conf file:
oracle              soft    nproc   2047
oracle               hard    nproc   16384
oracle               soft    nofile  1024
oracle               hard    nofile  65536


=================/etc/profile
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
fi


创建Oracle用户和组,以及安装目录
1.    /usr/sbin/groupadd oinstall
2.    /usr/sbin/groupadd dba
3.    /usr/sbin/useradd -m -g oinstall -G dba oracle
4.   
5.    mkdir -p /u01/oracle
6.    chown -R oracle:oinstall /u01/oracle
7.    chmod -R 775 /u01/oracle

======ORACLE环境变量
切换到oracle用户,修改.bash_profile文件。执行下面代码:
1. su – oracle
1.    export ORACLE_BASE=/u01/oracle
2.    export ORACLE_HOME=$ORACLE_BASE/product/dbhome_1
3.    export ORACLE_SID=orcl
4.    export PATH=$ORACLE_HOME/bin:$PATH
5.    export PATH=$JAVA_HOME/bin:$PATH:$ORACLE_HOME/Apache/Apache/bin
6.    LD_LIBRARY_PATH=$ORACLE_HOME/lib:lib:/usr/lib:/usr/local/lib
7.    export LD_LIBRARY_PATH
8.    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
9.    export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
10.    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
11.    DISPLAY=:0.0;export DISPLAY

你可能感兴趣的:(apache,oracle,.net,gcc,bash)