centos靜默安裝oracle12c

來源:互聯網
上載者:User

標籤:cap   ade   install   軟體包   space   std   重啟   port   pat   

 配置系統和安裝所需軟體包
  • 關閉selinux

臨時關閉(不用重啟)

[[email protected] ~]# setenforce 0 

         修改設定檔(需要重啟):  將SELINUX=enforcing改為SELINUX=disabled

[[email protected] ~]# vi /etc/selinux/config

 

  •  升級程式包(可選)
[[email protected] ~]# yum update -y
  •  修改hosts,添加一條主機記錄
[[email protected] ~]# vi /etc/hosts

  • 安裝oracle所需的軟體包
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

 

  • 添加oracle使用者組
[[email protected] ~]#groupadd oinstall[[email protected] ~]#groupadd dba[[email protected] ~]#groupadd oper[[email protected] ~]#useradd -g oinstall -G dba,oper oracle
  • 修改系統參數/etc/sysctl.conf
[[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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.