检查系统环境:
[[email protected] ~]# grep MemTotal /proc/meminfo #物理内存不低于1GB
MemTotal: 1491520 kB
[[email protected] ~]# grep SwapTotal /proc/meminfo #交换分区为物理内存的1.5-2陪;物理内存为2-16GB时,交换分区与物理内存相同
SwapTotal: 2097148 kB
安装oracle依赖软件:
yum install -y binutils compat-libcap1-1.10-1 compat-libstdc++-33 gcc gcc-c++ glibc glibc glibc-devel glibc-devel ksh libgcc libgcc libstdc++ libstdc++ libstdc++-devel libstdc++-devel libaio libaio libaio-devel libaio-devel make sysstat elftils-libelf unixODBC unixODBC unixODBC-devel elfutils-libelf elfutils-libelf-devel
修改系统环境:
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle echo "qwe123"| passwd root --stdin mkdir /opt/oracle chown -R oracle:oinstall /opt/oracle/ chmod -R 755 /opt/oracle/ [[email protected] ~]# vim ~oracle/.bash_profile umask 022 export ORACLE_BASE=/opt/oracle export ORACLE_SID=/orc1 export DISPLAY=:0.0 export LANG=zh_CN.UTF-8 [[email protected] ~]# vim /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 [[email protected] ~]# vim /etc/security/limits.conf oracle soft nproc 8192 oracle hard nofile 65536 oracle soft nofile 32768 oracle hard nproc 16384 [[email protected] ~]# su oracle [[email protected] root]$ cd /opt/oracle/database/ [[email protected] database]$ ./runInstaller -jreLoc /usr/lib/jvm/jre-1.6.0
时间: 2024-10-10 11:51:16