redhat5.5oracle10.2安装
(6)host配置 vi /etc/sysctl.conf kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 注:上面三个参数在RHEL5中的配置若高于该值,可保留原值 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
运行下面命令使设置生效 sysctl –p
(7)vi /etc/security/limits.conf * soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
(8)vi /etc/pam.d/login session required /lib64/security/pam_limits.so
(9)必须安装的rpm包
cd /media/cdrom/Server rpm -Uvh setarch-2* rpm -Uvh make-3* rpm -Uvh glibc-2* rpm -Uvh libaio-0* rpm -Uvh compat-libstdc++-33-3* rpm -ivh kernel-h* rpm -ivh glibc-devel* rpm -ivh glibc-h* rpm -Uvh compat-gcc-34-3* rpm -Uvh compat-gcc-34-c++-3* rpm -Uvh gcc-4* rpm -Uvh libXp-1* -ivh libXmu* rpm -Uvh openmotif-2*////未能安装 rpm -Uvh compat-db-4*
(10)建立oracle用户和组 导入数据库文件放在/usr/local下 cd /usr/local gunzip 10201_database_linux_x86_64.cpio.gz cpio -idmv < 10201_database_linux_x86_64.cpio
gunzip 文件名.cpio.gz cpio -idmv < 文件名.cpio
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle
删除用户userdel -rf oracle useradd oracle passwd oracle
赋权oracle所在文件 chown oracle:oinstall /usr/local/database 赋权oracle安装目录 mkdir -p /db/oracle chown oracle:oinstall /db/oracle
(11)编辑/etc/redhat-release vi /etc/redhat-release Red Hat Enterprise Linux Server release 5 (Tikanga) 替换为 Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
(12)登陆oracle,建立相应的环境变量
su - oracle vi ~/.bash_profile
# For Oracle TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/db/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=ycj; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
运行环境 source ~/.bash_profile
(13)开始安装
cd /usr/local/database/
./runInstaller