FreeBSD-5.2下安裝ORACLE9i手記(1)(轉(zhuǎn)貼)出處:freebsdchina
2024-08-29 13:49:00
供稿:網(wǎng)友
FreeBSD-5.2下安裝Oracle9i手記
出處:freebsdchina
責(zé)任編輯:leelee
[04-7-28 16:30] 作者:jxngzhl
無可否認(rèn)FreeBSD是最優(yōu)秀的操作系統(tǒng)之一,但缺少大型商業(yè)數(shù)據(jù)庫的支持阻礙了FreeBSD走向高端和企業(yè)應(yīng)用,Oracle作為數(shù)據(jù)庫的領(lǐng)頭雁,假如能夠在FreeBSD上安家,則是我等FreeBSD FANS的一個鼓
舞。經(jīng)過兩天的努力并參考了一個俄文網(wǎng)站的關(guān)于在FreeBSD上安裝ORACLE8i的介紹,成功地在
FreeBSD5.2上安裝的ORACLE9i。以下是安裝手記。
一 內(nèi)核配置
# Add for oracle
options NBUF=2048
options MAXDSIZ="(1024UL*1024*1024)"
options MAXSSIZ="(1024UL*1024*1024)"
options DFLDSIZ="(1024UL*1024*1024)"
#
options SYSVSHM
options SHMMAXPGS=65536
options SHMMIN=2
options SHMMNI=256
options SHMSEG=256
#
options SYSVSEM
options SEMMAP=512
options SEMMNI=512
options SEMUME=512
options SEMMNS=1024
options SEMMNU=512
options SEMMSL=256
options SEMOPM=256
#
options SYSVMSG #SYSV-stylmessage queues
options MSGMNB=8192
options MSGMNI=256
options MSGSEG=8192
options MSGSSZ=16
options MSGTQL=128
# Add end
另外將maxusers設(shè)為512,我在定制內(nèi)核時選擇的是ULE調(diào)度器,現(xiàn)在ULE已經(jīng)是默認(rèn)的調(diào)度器了。
二 系統(tǒng)配置
1 SWAP分區(qū)大小為1G,RAM256M,ORACLE_HOME要求有5G以上空間。
2 安裝linux仿真環(huán)境。
必須安裝linux_base-7.1和linux_devtools-7.1兩個PKGS,但我在安裝時發(fā)現(xiàn)從ports已經(jīng)無法安裝devtools-7.1了,所以被迫從一個安裝了RH7.3的機(jī)器中根據(jù)兩個ports的介紹將整個RH7.3系統(tǒng)CP到了FreeBSD中。無論你如何構(gòu)建/compat/linux目錄樹,必須保證在仿真環(huán)境中有ar,as,ld,nm,tr,cpp,chmod,g++,PRintf,find,chgrp,chown
等程序。
3 調(diào)整Linux仿真環(huán)境
a 在/compat/linux/etc中建立mtab到/etc/fstab的鏈接
ln -s /etc/fstab /compat/linux/etc/mtab
b 在/compat/linux/bin中建立到awk,sed,chown的鏈接
ln -s /compat/linux/usr/bin/awk /compat/linux/bin/awk
ln -s /compat/linux/usr/bin/sed /compat/linux/bin/sed
ln -s /usr/sbin/chown /compat/linux/bin/chown
以上配置是為了滿足ORACLE9i在安裝時的一些腳本的要求,我所知道的在運(yùn)行root.sh時用到以上的配置,但也可以在運(yùn)行前修改這個腳本。
c 在/compat/linux/bin中建立arch可執(zhí)行文件
內(nèi)容為:
#!/compat/linux/bin/bash
echo i686 #根據(jù)你的機(jī)器是i586還是i486
打上可執(zhí)行標(biāo)記:
chmod +x arch
4 打開linux仿真支持,修改rc.conf文件也可以kldload linux模塊
enable_linux="YES"
5 mount linux proc文件系統(tǒng)
mkdir /compat/linux/proc
mount -t linproc /dev/device /compat/linux/proc
第二步可以放入/etc/fstab文件中在開機(jī)時自動截入 right">(出處:清風(fēng)軟件下載學(xué)院)