【Oracle】Linux——Centos7安装Oracle12c
在CentOS 7上安装Oracle 12c的步骤如下:
系统要求:
- 至少2GB的物理内存
- 至少40GB的空间
安装依赖项和配置系统:
sudo yum install -y binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 \ gcc gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libaio libaio.i686 \ libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 \ libstdc++-devel make sysstat sudo yum install -y xorg-x11-utils xorg-x11-xauth sudo yum install -y fontconfig-devel sudo yum install -y libXft libXft.i686 libXfont libXfont.i686 libXi libXi.i686 \ libXtst libXtst.i686 libXrender libXrender.i686 sudo yum install -y compat-libstdc++-33.i686 sudo yum install -y libaio-devel-0.3.109-13.el7.i686
创建Oracle用户和组:
sudo groupadd -g 54321 oinstall sudo groupadd -g 54322 dba sudo groupadd -g 54323 oper sudo groupadd -g 54324 backupdba sudo groupadd -g 54325 dgdba sudo groupadd -g 54326 kmdba sudo groupadd -g 54327 asmdba sudo groupadd -g 54328 asmoper sudo groupadd -g 54329 asmadmin sudo useradd -u 54321 -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba oracle
配置内核参数和用户限制,编辑或添加以下行到
/etc/sysctl.conf
和/etc/security/limits.conf
:# /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1073741824 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 = 1048576 # /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240
应用内核参数更改:
sudo sysctl -p
创建目录并设置权限:
sudo mkdir -p /u01/app/ora
评论已关闭