日期:2014-05-16 浏览次数:20640 次
# cd /mnt/soft/ # unzip 10201_database_linux32.zip
# groupadd oinstall # groupadd dba # useradd -g oinstall -G dba oracle # passwd oracle
# vi /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 (修改以后让参数生效)
# vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
# vi /etc/pam.d/login session required /lib/security/pam_limits.so session required pam_limits.so
# vi /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
# vi /etc/selinux/config (使安全linux标志失效) SELINUX=disabled
# mkdir -p /u01/app/oracle # chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle
# su - oracle $ vi ~/.bash_profile umask 022 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 export ORACLE_SID=orcl export PATH=$ORACLE_HOME/bin:$PATH $ . ~/.bash_profile
# vi /etc/oraInst.loc (加入或修改以下内容,其中/u01/app/oracle是ORACLE_BASE) inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall # chmod 664 /etc/oraInst.loc
$ cd /mnt/soft/database/response $ cp enterprise.rsp enterprise_temp.rsp $ vi enterprise_temp.rsp (以下参数必需设置) UNIX_GROUP_NAME="oinstall" ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1" ORACLE_HOME_NAME="OraDb10g_home1" s_nameForDBAGrp="dba" s_nameForOPERGrp="dba" n_configurationOption=3
$ vi /mnt/soft/database/install/oraparam.ini 在含有redhat-4,的地方加上redhat-5
$ cd /mnt/soft/database $ ./runInstaller -silent -noconfig -responseFile /mnt/soft/database/response/enterprise_temp.rsp
# /u01/app/oracle/product/10.2.0/db_1/root.sh
$ cd /mnt/soft/database/response $ cp netca.rsp netca_temp.rsp $ vi netca_temp.rsp (如果要修改监听名或端口在此编辑,一般什么都不用修改) $ $ORACLE_HOME/bin/netca /silent /responsefile /mnt/soft/database/response/netca_temp.rsp