Debian下Oracle 10g資料庫安裝配置手冊

來源:互聯網
上載者:User

1.擷取Oracle 10g安裝檔案

2.給Debian配置安裝環境

2.1 配置sysctl.conf

# vi /etc/sysctl.conf

在檔案末尾加入:

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

讓修改生效:

# /sbin/sysctl –p

檢查是否生效:

# /sbin/sysctl -a | grep sem

# /sbin/sysctl -a | grep shm

# /sbin/sysctl -a | grep file-max

# /sbin/sysctl -a | grep ip_local_port_range

2.2 編輯pam.d檔案

#vi /etc/pam.d/login

追加session required /lib/security/pam_limits.so到檔案末尾

2.3 關閉SELINUX項

#vi /etc/selinux/config

設定SELINUX=disabled

2.4 添加oracle所需使用者

# groupadd oinstall

# groupadd dba

#useradd -d /home/oracle -s /bin/sh -m oracle

#passwd oracle

2.5 建立oracle安裝所需目錄並授權

#mkdir -p /opt/data1/app

#chown -R oracle.oinstall /opt/data1/app/

#chmod -R 755 /opt/data1/app/

#mkdir /DISCARD

#chown -R oracle.oinstall /DISCARD

#chmod -R 755 /DISCARD

 

  • 1
  • 2
  • 3
  • 4
  • 下一頁

聯繫我們

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