国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

Installing Oracle 10g on RHEL AS 3 Step-by-Step

2024-08-29 13:29:46
字體:
供稿:網(wǎng)友

installing oracle 10g on rhel as 3 step-by-step  --轉(zhuǎn)載

作者: fenng

installing oracle 10g on red hat enterprise linux advanced server 3 (rhel 3) v 0.21

不久前,oracle(甲骨文)公司在美國加州的總部宣布, oracle 10g 數(shù)據(jù)庫 與 oracle rac 在 tpc-h 基準(zhǔn)測試中創(chuàng)造了新的世
界紀(jì)錄.這是個令人震驚的消息.因為這個測試是在 linux ( red hat enterprise linux advanced server 3) 的平臺上進(jìn)行的.
這充分顯示了 oracle 在低成本 linux 集群服務(wù)器上高效管理大規(guī)模數(shù)據(jù)倉庫的能力, 也表明 linux 在性能價格比上的優(yōu)勢,
標(biāo)志著linux在大規(guī)模企業(yè)應(yīng)用上已經(jīng)成熟.

相信很多朋友已經(jīng)對10g躍躍欲試了,現(xiàn)在從這里讓我們開始10g之旅.

本文描述了在red hat enterprise linux advanced server 3 (rhel 3)上安裝oracle 10g 必要的步驟和相關(guān)知識. 本文假定
你的linux 操作系統(tǒng)已經(jīng)安裝完畢,并且您應(yīng)該具有一定的 unix 操作系統(tǒng)背景知識.


配置redhat as 3

操作系統(tǒng)版本:red hat enterprise linux as release 3 (taroon)
       kernel 2.4.21-4.el on an i686

按照常規(guī)來安裝操作系統(tǒng),記得要安裝開發(fā)工具(gcc等必要工具).


必要的硬件信息檢查:
檢查內(nèi)容最小值檢查命令參考物理內(nèi)存512m# grep memtotal /proc/meminfo 交換空間1.0 gb或者2倍內(nèi)存大小# grep swaptotal /proc/meminfo /tmp 空間400 mb # df -k /tmp 軟件所需空間2.5 gb # df -k (空間越大越好,如果是正式系統(tǒng),應(yīng)該進(jìn)行詳盡的規(guī)劃) 數(shù)據(jù)庫文件1.2 gb # df -k (空間越大越好,如果是正式系統(tǒng),應(yīng)該進(jìn)行詳盡的規(guī)劃)

檢查完如上各項之后, 應(yīng)該修改核心參數(shù).執(zhí)行如下命令:

#vi /etc/sysctl.conf
#注釋:#表示使用root用戶操作,$表示使用oracle 用戶進(jìn)行操作.提示符后面的藍(lán)色部分表示需要輸入的命令,以下同.

在該文件末尾加入如下內(nèi)容:

#-----------begin from here--------------------------------------
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
#--------------end here--------------------------------------------

編輯完之后,保存,執(zhí)行 # /sbin/sysctl -p 命令操作來使我們所做的變更生效.

注:上面kernel.shmmax/kernel.sem等是典型的核心參數(shù)配置.您可能需要根據(jù)您的實際環(huán)境進(jìn)行適當(dāng)?shù)淖儎?

關(guān)于這些核心參數(shù)的說明在oracle的oracle9i installation guide release 2 (9.2.0.1.0) for unix systems
中有很詳細(xì)的說明.( http://download-west.oracle.com/docs/html/a96167_01/toc.htm )

然后,應(yīng)該檢查一下上面的操作是否正確:

# /sbin/sysctl -a | grep sem
# /sbin/sysctl -a | grep shm
# /sbin/sysctl -a | grep file-max
# /sbin/sysctl -a | grep ip_local_port_range


為oracle用戶設(shè)定shell的限制

一般來說,出于性能上的考慮,還需要需要進(jìn)行如下的設(shè)定,以便改進(jìn)oracle用戶的有關(guān) nofile(可打開的文件
描述符的最大數(shù))和nproc(單個用戶可用的最大進(jìn)程數(shù)量)

# vi /etc/security/limits.conf
# 添加如下的行

* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536
添加如下的行到/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
之后,執(zhí)行$ unlimit 驗證一下.

檢查并安裝相關(guān)補丁

在這個版本的rhel上安裝oracle,必須要有幾個軟件包. 確認(rèn)以下 rpm包都已經(jīng)安裝:

make-3.79
binutils-2.11
openmotif-2.2.2-16
setarch-1.3-1
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122

# rpm -qa | grep compat
# 在我的機器上輸出如下:
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-glibc-7.x-2.2.4.32.5
compat-db-4.0.14-5
compat-gcc-7.3-2.96.122

# rpm -qa | grep openmotif
openmotif-devel-2.2.2-16
openmotif-2.2.2-16

# rpm -qa | grep setarch
setarch-1.3-1

上面顯示的內(nèi)容是在筆者已經(jīng)安裝了具體的rpm包之后的結(jié)果.一般情況下,你的系統(tǒng)上的輸出結(jié)果和這個不同.如果個
別包沒有安裝,把系統(tǒng)安裝光盤mount上,找到具體的軟件包(大多數(shù)在第三張光盤上),然后利用如下的命令來安裝相應(yīng)
的包:

# rpm -ivh compat.....rpm

要額外注意的是,這些軟件包之間是有依賴性的,先后的順序要找好.否則會報告不能安裝的錯誤.

此外,最好驗證一下 gcc和glibc的版本(要求是gcc-3.2.3-2 或者更高)

#gcc -v
#rpm -q glibc

創(chuàng)建用戶和相關(guān)的組

# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -g dba oracle 

如果只是測試目的的話,不創(chuàng)建oinstall組也沒什么. 不過還是規(guī)范一點比較好.如果oracle 用戶和dba組等已經(jīng)存在,作
適當(dāng)?shù)恼{(diào)整即可.

檢查并調(diào)整環(huán)境變量

登錄為oracle用戶
# su – oracle
$ cd
$ vi .bash_profile

#添加如下內(nèi)容,你的具體值應(yīng)該不會和這個完全相同.

export oracle_base=/u/app/oracle
export oracle_home=$oracle_base/product/10.1.0/db_1
export oracle_sid=test
export path=$path:$home/bin:$oracle_home/bin
export ld_library_path=$oracle_home/lib:/usr/lib
export lc_ctype=en_us.utf-8

然后執(zhí)行
$ source .bash_profile
使環(huán)境變量生效. /u/app/oracle 等目錄應(yīng)該建立好并做合適的授權(quán).


開始安裝10g

mount你的安裝盤.(我一般都是把文件拷貝到系統(tǒng)中一個具體的位置,比如/u/install ) . 執(zhí)行

$ sh /u/install/runinstaller

如果不能出現(xiàn)安裝畫面,查看本文后面的faq。

非常值得稱道的是,10g的安裝相比以前的多了一個 checking operating system certification 的步驟。特別實用。
安裝文件會自動檢測所需的條件。如果有不符合的地方,安裝程序會報告給你.并會給出具體原因。大大減少了出錯的可能.
下面是檢查成功輸出的內(nèi)容 :

checking operating system certification
expected result: one of redhat-2.1,redhat-3,unitedlinux-1.0
actual result: redhat-3
check complete. the overall result of this check is: passed
=======================================================================

checking kernel parameters
checking for version=2.4.9.25; found version=2.4.21. passed
checking for shmall=2097152; found shmall=2097152. passed
checking for shmseg=10; found shmseg=4096. passed
checking for semmsl=250; found semmsl=250. passed
checking for semmni=128; found semmni=128. passed
checking for filemax=65536; found filemax=65536. passed
checking for shmmni=4096; found shmmni=4096. passed
checking for semmns=32000; found semmns=32000. passed
checking for semopm=100; found semopm=100.passed
checking for shmmin=1; found shmmin=1. passed
checking for shmmax=2147483648; found shmmax=2147483648. passed
check complete. the overall result of this check is: passed
=======================================================================

checking recommended operating system packages
checking for make-3.79; found make-3.79.1-17. passed
checking for binutils-2.11.90.0.8-12; found binutils-2.14.90.0.4-26. passed
checking for gcc-2.96; found gcc-3.2.3-20. passed
checking for openmotif-2.1.30-11; found openmotif-2.2.2-16. passed
check complete. the overall result of this check is: passed
=======================================================================

checking recommended glibc version
expected result: 2.2.4.31.7
actual result: 2.3.2.95.3
check complete. the overall result of this check is: passed
=======================================================================

validating oracle_base location (if set)
check complete. the overall result of this check is: passed
=======================================================================

其他的步驟比較清晰,不再贅述.

最后系統(tǒng)會提示你運行root.sh文件.按照提示做即可.

faq (在linux平臺安裝oracle比較常見)

1. 不能啟動安裝界面.運行runinstaller提示信息類似如下:

xlib:connection to "localhost:0.0" refused by server
xlib:client is not authorized to connect to server

exception in thread "main" java.lang.internalerror:can't connect to x11 window server using "localhost:0.0"
at .......

解決辦法: 設(shè)定你的display環(huán)境參數(shù).# export display= your_ipaddress :0.0把your_ipaddress換成你的ip.或者
用root簡單的執(zhí)行一下# xhost + (要注意這樣會有安全上的隱患)


2.安裝界面顯示很多"口口"樣子的亂碼

解決辦法:查看locale輸出
# locale
lang=en_us.utf-8
lc_ctype=zh_cn.gb18030
lc_numeric="en_us.utf-8"
lc_time="en_us.utf-8"
lc_collate="en_us.utf-8"
lc_monetary="en_us.utf-8"
lc_messages="en_us.utf-8"
lc_paper="en_us.utf-8"
lc_name="en_us.utf-8"
lc_address="en_us.utf-8"
lc_telephone="en_us.utf-8"
lc_measurement="en_us.utf-8"
lc_identification="en_us.utf-8"
lc_all=


執(zhí)行#export lc_ctype=en_us.utf-8 然后重新調(diào)用安裝程序.


3. 用ie登錄linux服務(wù)器上的em出現(xiàn)亂碼

 在linux(unix) 環(huán)境下成功安裝了oracle 10g,從windows下用ie瀏覽器登錄 10g 的em, 按鈕是"口口"這樣的方框.

解決辦法: 參考 http://www.dbanotes.net/oracle/oracle-10g-font.properties.htm 或者是參考這個 http://www.linuxsir.org/bbs/showthread.php?s=&threadid=98591 后者比較徹底,前者比較"quick & dirty ".


4.創(chuàng)建數(shù)據(jù)庫的時候出現(xiàn)ora-03113的錯誤

解決辦法: 查看核心參數(shù)是否調(diào)整正確.參考http://www.dbanotes.net/oracle/ora-03113.htm


5. redhat 9 / fc1等系統(tǒng)10g不支持如何安裝?

解決辦法:在10g不支持的linux發(fā)行版上安裝10g的解決方法

1). 運行runinstaller -ignoresysprereqs,這樣會跳過檢查

2). 摘自 http://www.puschitz.com/修改/etc/redhat-release文件:

#su - root
#cp /etc/redhat-release /etc/redhat-release.backup
#cat > /etc/redhat-release << eof
red hat enterprise linux as release 3 (taroon)
eof

安裝完畢,執(zhí)行如下操作:
#su - root
#cp /etc/redhat-release.backup /etc/redhat-release

3). http://www.dbanotes.net/oracle/10g-beta-install-bug.htm

同樣的思路,我們可以修改oracle 的install/oraparam.ini文件達(dá)到目的


6 如何關(guān)掉那些 ocssd.bin 進(jìn)程?

解決辦法:編輯/etc/inittab文件(做好備份)

注釋掉這一行:

h1:3:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null


參考信息

werner puschitz 的 10g 安裝指南 http://www.puschitz.com/installingoracle10g.shtml
werner puschitz 的站點的文章很翔實,如果您遇到了本文沒有說清的問題,可以去看看那里.本文借鑒了該站點不少內(nèi)容.

itpub論壇10g版塊kamus等的大作http://www.itpub.net/forumdisplay.php?s=&forumid=70

關(guān)于核心參數(shù)等信息請查找 google http://www.google.com/

oracle database quick installation guide 10 g release 1 (10.1) for linux x86
http://download-west.oracle.com/docs/html/b10813_01/toc.htm

oracle database installation guide 10 g release 1 (10.1) for unix systems
http://download-west.oracle.com/docs/html/b10811_02/toc.htm

dbanotes.net 我的站點 包括不少和oracle有關(guān)的信息 http://www.dbanotes.net/

原文出處:
http://www.dbanotes.net/oracle/install-oracle10g-rhel3.htm

回首頁



i would welcome any feedback.
please send questions, comments or corrections to [email protected] .



發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 花莲市| 卓尼县| 穆棱市| 中超| 共和县| 佛山市| 顺昌县| 绵阳市| 长子县| 河北区| 古丈县| 盐亭县| 扎鲁特旗| 桃江县| 长泰县| 海安县| 阿巴嘎旗| 霍城县| 武胜县| 丽水市| 鹿泉市| 城固县| 夏津县| 邛崃市| 卫辉市| 金乡县| 东乡族自治县| 合阳县| 石家庄市| 龙里县| 永平县| 彝良县| 马边| 儋州市| 东兴市| 山东省| 华坪县| 万宁市| 竹山县| 庄浪县| 泰和县|