標籤:cap ade install 軟體包 space std 重啟 port pat
配置系統和安裝所需軟體包
臨時關閉(不用重啟)
[[email protected] ~]# setenforce 0
修改設定檔(需要重啟): 將SELINUX=enforcing改為SELINUX=disabled
[[email protected] ~]# vi /etc/selinux/config
[[email protected] ~]# yum update -y
[[email protected] ~]# vi /etc/hosts
yum install gcc gcc-c++ glibc glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel zlib-devel unzip compat-libcap1 compat-libstdc++-33
[[email protected] ~]#groupadd oinstall[[email protected] ~]#groupadd dba[[email protected] ~]#groupadd oper[[email protected] ~]#useradd -g oinstall -G dba,oper oracle
[[email protected] ~]# vim /etc/sysctl.conf
添加如下內容:
fs.file-max = 6815744kernel.sem = 250 32000 100 128kernel.shmmni = 4096kernel.shmall = 1073741824kernel.shmmax = 4398046511104net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500
使應用生效
[[email protected] ~]#sysctl -p
- 修改/etc/security/limits.conf
[[email protected] ~]# vim /etc/security/limits.conf
添加以下參數:
oracle soft nofile 1024oracle hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle soft stack 10240oracle hard stack 32768
[[email protected] ~]# mkdir -p /usr/local/oracle/product/12.1.2/db_1[[email protected] ~]# chown oracle:oinstall /usr/local/oracle -R
centos靜默安裝oracle12c