RHEL 6.2 x86_64 下安裝Oracle 11g步驟

來源:互聯網
上載者:User

在安裝過程中如遇到問題可以一起討論,共同學習,如有錯誤,還請告知,謝謝

1.首先 修改 /etc/sysctl.conf檔案 添加參數

[root@redz-server ~]# cat >>/etc/sysctl.conf << EOF

> #Oracle need parameters

> fs.aio-max-nr=1048576

> fs.file-max=6815744

> kernel.shmall=2097152

> kernel.shmmax=1024000000(根據系統記憶體多少來調整)

> kernel.shmmni=4096

> kernel.sem=250 32000 100 65500

> net.ipv4.ip_local_port_range=9000 65500

> net.core.rmen_default=262144

> net.core.rmem_max=4194304

> net.core.wmem_default=262144

> net.core.wmem_max=1048586

> EOF

 

執行  /sbin/sysctl -p使參數生效

 

2. 修改 /etc/security/limits.conf

[root@redz-server ~]# cat >>/etc/sysctl.conf << EOF

[root@redz-server ~]# cat >> /etc/security/limits.conf << EOF

> # oracle need parameters

> orcle  soft  nproc    2047

> oracle  hard  nproc   16384

> oracle  soft  nofile  1024

> oracle  hard  nofile  65536

> EOF

 

3. 修改 /etc/pam.d/limits.conf

[root@redz-server ~]# cat >> /etc/pam.d/login << EOF

> session  required  pam_limits.so

> EOF

4.修改 /etc/profile

if [ $USER = "oracle" ]; then

  if [ $SHELL = "/bin/ksh" ]; then

    ulimit -p 16384

    ulimit -n 65536

  else

    ulimit -u 16384 -n 65536

  fi

fi

4. 修改 /etc/csh.login

 vi /etc/csh.login

 

#oracle need setting

if ( $USER == "oralce" ) then

   limit maxproc        16384

   limit descriptors    65536

   umask 022

endif

 

5.建立使用者組及使用者

[root@redz-server ~]# /usr/sbin/groupadd oinstall

[root@redz-server ~]# /usr/sbin/groupadd dba

[root@redz-server ~]# /usr/sbin/useradd -m -g oinstall -G dba oracle

[root@redz-server ~]# echo "oracle"|passwd --stdin oracle

 

更改使用者 oracle 的密碼 。

passwd: 所有的身分識別驗證令牌已經成功更新。

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.