debian4.0上成功安裝oracle 10g

來源:互聯網
上載者:User

在debian4.0上裝了5次才安安穩穩的把Oracle安裝上,總算不耽誤用。在網上找了好多的資料與安裝辦法,沒有一個能完完全全解決問題的。最後只能取眾家之所長了。

    一、安裝前準備,機器配置太垃圾了就不要嘗試了。512記憶體,1g的swap,還有500M左右的temp。

    如果不夠的就自己添加,就不多說了。也可以自己建個新的temp

#mkdir /opt/tmp
#chown root.root /opt/tmp/
# chmod 1777 /opt/tmp
# echo TEMP
# export TEMP=/opt/tmp
# export TEMPDIR=/opt/tmp

    系統參數調整
    設定shell限制,在/etc/security/limits.conf添加

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

    修改login設定,修改 /etc/pam.d/login,添加

session required /lib/security/pam_limits.so

    在/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

    二、安裝oracle 10g
    需要的軟體包有#apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc++5 gawk
系統中有以下組和使用者,方法:
#grep dba /etc/group
#grep oinstall /etc/group
#grep nobody /etc/group
#id oracle
#id nobody
切換到root,添加oralce帳戶
#su - root
#groupadd dba # group of users to be granted SYSDBA system privilege
#groupadd oinstall # group owner of Oracle files
#useradd -c "Oracle software owner" -g oinstall -G dba -d /opt/oracle oracle
#passwd oracle
輸入oracle密碼
************
添加nobody使用者組:
#groupadd nobody
把nobody使用者添加到建立的nobody組中,
#usermod -G nobody nobody
建立oracle目錄
#su root
#mkdir /opt/oracle
#chown -R oracle.oinstall /opt/oracle
mkdir -p /u01/app
chown -R oracle.oinstall /u01/app
debian需要額外的做以下操作:
# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename
# ln -s /etc /etc/rc.d
類比RedHat-3進行安裝,建立一個檔案/etc/redhat-release,寫入以下內容:
Red Hat Enterprise Linux AS release 3 (Taroon)
提前下好安裝檔案,oracle官方有,cn99上也有,下載後解壓到使用者目錄
切換到oracle使用者進行安裝
往下要注意中文顯示的問題了,不要使用oracle內建的jre
我的機器jre是apt安裝的,找到jre的目錄,然後
$./runInstaller -jreLoc /usr/lib/jvm/java-6-sun-1.6.0.00/jre
剩下的就和windows一樣的安裝介面了,都是中文,下一步下一步就是了
需要最高許可權執行兩個shell。具體幹什麼用的還沒有考慮。

  • 1
  • 2
  • 下一頁

相關文章

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.