中標Linux上成功安裝Oracle 10G

來源:互聯網
上載者:User

昨天剛重裝了系統,於是突發奇想 想裝Oracle 看看能不能裝上
以前也在其他Linux上裝過Oracle .

一.安裝系統時要把軟體開發那一項給選擇上,因為安裝Oracle 時會需要gcc等工具。記住一定要選上哦

二 安裝Oracle得前期準備
首先保證/tmp目錄有大於400m得空間,記憶體最好大於2G(呵呵我得機器才1G,也能安裝)。磁碟空間也要足夠大哦 ,可以用命令查看 df -

1. 添加使用者和組
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba Oracle
passwd Oracle

2.建立安裝目錄
mkdir -p /u01/ppt/Oracle
chown -R Oracle.oinstall /u01

3.修改Oracle使用者的.bash_profile
export PATH
unset USERNAME
export Oracle_BASE=/0u1/app/Oracle
export Oracle_HOME=$Oracle_BASE/product/10.2.0/db_1
export Oracle_SID=ora10g
export PATH=$PATH:$HOME/BIN:$Oracle_HOME/bin

4.調整核心參數 /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
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
sysctl -p 讓參數生效

5. 編輯 /etc/security/limits.conf
Oracle soft nproc 65536
Oracle hard nproc 65536
Oracle soft nofile 65536
Oracle soft nofile 65536
nofile:作業系統使用者可以同時開啟的最大檔案數
nproc:單個使用者同時可以開啟的進程數

6.編輯 /etc/pam.d/login
在最後一行添加:
session required pam_limits.so

7.如果/etc 下沒有就建立RedHat-release (主要用於欺騙Oracle )
vim /etc/redhat-release
redhat-4
前期工作都準備好了,用Oracle 使用者登入X 就可以安裝了。
開啟一個終端,cd 到Oracle 軟體目錄下 ./runInstaller 圖形就會出來了。
其他的都是圖形安裝 很簡單就不寫了

聯繫我們

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