




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 oracle安裝文檔數(shù)據(jù)庫(kù)oracle10.2.0.1.0版本在linux radhat enterprise5安裝的文檔版本說(shuō)明版本日期描 述作者審核2008-1-24oracle10g安裝說(shuō)明蒙昭良目 錄1前言:41.1安裝oracle的環(huán)境42安裝前的準(zhǔn)備配置52.1查詢所需安裝包是否完整52.2檢查安裝oracle的硬件要求82.3os參數(shù)要求vi /etc/sysctl.conf , 在行末添加以下內(nèi)容92.4vi /etc/security/limits.conf 行末添加以下內(nèi)容112.5vi /etc/pam.d/login 行末添加以下內(nèi)容122.6vi /etc/seli
2、nux/config 確保以下內(nèi)容133創(chuàng)建安裝oracle的用戶、組及配置143.1解壓10201_database_linux32.zip143.2創(chuàng)建安裝oracle的用戶及所屬組153.3創(chuàng)建安裝目錄mkdir -p /u01/app/oracle163.4設(shè)置oracle用戶的.bash_profile173.5設(shè)置主機(jī)名和ip183.6設(shè)置oracle10g支持rhel5的參數(shù)194安裝oracle214.1用oracle用戶運(yùn)行runinstaller文件215測(cè)試oracle是否安裝成功325.1啟動(dòng)oracle服務(wù)325.2訪問數(shù)據(jù)庫(kù)的web界面351 前言: 看過很多很多文
3、檔,有些文檔格式難看,有些則是圖形不夠全面。本人比較喜歡一些格式整齊,全面的圖形界面,文字又比較讓人覺的輕松的文檔。本文檔的目的是讓不接觸oracle的人能夠順利的安裝上oracle服務(wù)器。安裝時(shí)在網(wǎng)上參考了很多文檔,在此表示感謝!主要參考文檔:1.1 安裝oracle的環(huán)境Ø linux redhat enterprise5默認(rèn)安裝(自定義軟件時(shí),全選)Ø /home/mzl/目錄:下載的10201_database_linux32.zip放在該目錄Ø /u01/app/oracle/目錄:為oracle安裝的oracle_base2 安裝前的準(zhǔn)備配置安裝ora
4、cle前的準(zhǔn)備很重要,如果沒有準(zhǔn)備好,導(dǎo)致多次安裝數(shù)據(jù)庫(kù)不成功。2.1 查詢所需安裝包是否完整進(jìn)入系統(tǒng),用root用戶,終端命令:# rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c+ compat-libstdc+ compat-libstdc+-devel如圖:缺少的都需要安裝相關(guān)的軟件包,rhel5一共有5張光盤,這些軟件都在那些光盤呢,請(qǐng)參考下面:安裝下面的包:# 從redhat as5 光盤1cd /media/cdrom/serverrpm -uvh setarch-2*rpm
5、-uvh make-3*rpm -uvh glibc-2*rpm -uvh libaio-0*cd /eject# 從redhat as5 光盤2cd /media/cdrom/serverrpm -uvh compat-libstdc+-33-3*rpm -uvh compat-gcc-34-3*rpm -uvh compat-gcc-34-c+-3*rpm -uvh gcc-4*rpm -uvh libxp-1*cd /eject# 從redhat as5 光盤3cd /media/cdrom/serverrpm -uvh openmotif-2*rpm -uvh compat-db-4*
6、cd /eject 如圖:然后在檢查需要的軟件包都安裝成功。如圖:出現(xiàn)上圖的界面則可以進(jìn)行下一步安裝。2.2 檢查安裝oracle的硬件要求內(nèi)存,交換區(qū),硬盤空間等。如圖:我裝的是雙系統(tǒng),先裝了windowsxp,在裝rhel5時(shí)怎么也創(chuàng)建不了交換區(qū),內(nèi)存和硬盤都滿足了要求,交換區(qū)暫時(shí)不用理會(huì),后面安裝好系統(tǒng)可以創(chuàng)建。內(nèi)存最好1g以上,硬盤空間最好5g以上。2.3 os參數(shù)要求vi /etc/sysctl.conf , 在行末添加以下內(nèi)容#use for oraclekernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni =
7、 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144再運(yùn)行sysctl -p應(yīng)用以上參數(shù)如圖:2.4 vi /etc/security/limits.conf 行末添加以下內(nèi)容#use for oracle* soft nproc 2047* hard
8、nproc 16384* soft nofile 1024* hard nofile 65536如圖:2.5 vi /etc/pam.d/login 行末添加以下內(nèi)容session required pam_limits.so如圖:2.6 vi /etc/selinux/config 確保以下內(nèi)容selinux=disabled關(guān)閉seliinux如圖:到此準(zhǔn)備安裝oracle的相關(guān)參數(shù)告一段落。3 創(chuàng)建安裝oracle的用戶、組及配置3.1 解壓10201_database_linux32.zip我把10201_database_linux32.zip放在了/home/mzl下終端命令:ch
9、mod r 777 home (讓oracle可以有權(quán)限執(zhí)行安裝文件)unzip 10201_database_linux32.zip如圖:3.2 創(chuàng)建安裝oracle的用戶及所屬組#groupadd oinstall#groupadd dba#useradd -m -g oinstall -g dba oracle#id oracle為oracle用戶設(shè)置密碼:#passwd oracle如圖:3.3 創(chuàng)建安裝目錄mkdir -p /u01/app/oracle# chown -r oracle.oinstall /u01/app/oracle# chmod -r 775 /u01/app/
10、oracle如圖:3.4 設(shè)置oracle用戶的.bash_profile在改文件的末行加上#oracle settings下的內(nèi)容,# oracle settingstmp=/tmp; export tmptmpdir=$tmp; export tmpdiroracle_base=/u01/app/oracle; export oracle_baseoracle_home=$oracle_base/product/10.2.0/db_1; export oracle_homeoracle_sid=orcl; export oracle_sidoracle_term=xterm; export
11、 oracle_termpath=/usr/sbin:$path; export pathpath=$oracle_home/bin:$path; export pathld_library_path=$oracle_home/lib:/lib:/usr/lib; export ld_library_pathclasspath=$oracle_home/jre:$oracle_home/jlib:$oracle_home/rdbms/jlib; export classpathif $user = "oracle" ; then if $shell = &quo
12、t;/bin/ksh" ; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi如圖:3.5 設(shè)置主機(jī)名和ipvi /etc/hosts內(nèi)容:192.168.130.189 dbserver 保存后在終端運(yùn)行命令:#hostname是否主機(jī)名變成了,如果沒有改變則要運(yùn)行以下命令#service network restart如圖:3.6 設(shè)置oracle10g支持r
13、hel5的參數(shù)因?yàn)樵诠俜降膐racle10g是不支持rhel5的,所以需要改變相關(guān)的參數(shù),不然在oracle10g安裝前不能通過檢測(cè)!網(wǎng)上有兩種更改的方法:(本人按照第一種方法安裝成功,第二種安裝不能成功)第一種:所以要修改版本說(shuō)明,編輯文件 /etc/redhat-release 把red hat enterprise linux server release 5 (tikanga) 改成版本4:redhat-4第二種:更改10201_database_linux32.zip解壓后的/database/install/oraparam.ini文件。本人比較傾向于第一種,因?yàn)檫@種修改,在ora
14、cle安裝時(shí)第一次檢測(cè)可以通過,但安裝到一般時(shí),再次檢測(cè)無(wú)法通過,導(dǎo)致安裝不成功?。▊€(gè)人觀點(diǎn))# #certified versionslinux=redhat-3,suse-9,redhat-4,redhat-5,unitedlinux-1.0,asianux-1,asianux-2再添加 linux-redhat-5.0-optionaltemp_space=80swap_space=150min_display_colors=256如圖:上面的準(zhǔn)備,都是為了能夠成功安裝,下面就可以運(yùn)行oracle的安裝文件了。4 安裝oracle4.1 用oracle用戶運(yùn)行runinstaller文件
15、不能用root用戶安裝oracle數(shù)據(jù)庫(kù),在root用戶下,新建一個(gè)終端,然后切換到oracle用戶來(lái)安裝,也不行! 這樣則會(huì)出現(xiàn)下圖的錯(cuò)誤信息:所以需要注銷到oracle用戶下,或者是重起機(jī)器用oracle用戶登陸。執(zhí)行命令:切換到運(yùn)行文件的目錄:#cd /home/mzl/database# export display= "192.168.130.189:0.0 "# export lc_ctype=c.iso88591 (設(shè)置字符碼,如果字符不一樣,則會(huì)出現(xiàn)亂碼)#./runinstanller如圖:然后出現(xiàn)最受歡迎的界面:nextnext在這里所有的驗(yàn)證都通過了!
16、 (兩行*號(hào)之間的大家不用看,如果檢測(cè)不通過,則可以參考)*插一段話,如果沒有出現(xiàn)上面的界面,最好重新檢查還缺少什么東西。如果出現(xiàn)下面的界面,就先停止安裝。在這里有2個(gè)警告,4個(gè)要求沒有通過。我們看看都什么警告和要求:checking operating system requirements .expected result: one of redhat-3,redhat-4,suse-9,asianux-1,asianux-2actual result: redhat-red hat enterprise linux server release 5 (tikanga)check comp
17、lete. the overall result of this check is: failed <<<<problem: oracle database 10g is not certified on the current operating system.recommendation: make sure you are installing the software on the correct platform.這里說(shuō)不支持rhel5系統(tǒng),如果按照上面的第二種則會(huì)出現(xiàn),按照第一種方式修改則通過檢測(cè)checking operating system packa
18、ge requirements .check complete. the overall result of this check is: not executed <<<<oui-18001: the operating system 'linux version redhat-red hat enterprise linux server release 5 (tikanga)' is not supported.recommendation: install the required packages before continuing with
19、the installation.這里說(shuō)不支持rhel5系統(tǒng),如果按照上面的第二種則會(huì)出現(xiàn),按照第一種方式修改則通過檢測(cè)checking kernel parameterscheck complete. the overall result of this check is: not executed <<<<oui-18001: the operating system 'linux version redhat-red hat enterprise linux server release 5 (tikanga)' is not supported.
20、recommendation: perform operating system specific instructions to update the kernel parameters.這里說(shuō)不支持rhel5系統(tǒng),如果按照上面的第二種則會(huì)出現(xiàn),按照第一種方式修改則通過檢測(cè)checking recommended glibc versioncheck complete. the overall result of this check is: not executed <<<<oui-18001: the operating system 'linux ver
21、sion redhat-red hat enterprise linux server release 5 (tikanga)' is not supported.recommendation: you may actually have installed packages which have obsoleted these, in which case you can successfully continue with the install. if you have not, it is recommended that you do not continue. refer
22、to the readme to find out how to get the missing packages.這里說(shuō)不支持rhel5系統(tǒng),如果按照上面的第二種則會(huì)出現(xiàn),按照第一種方式修改則通過檢測(cè)checking available swap space requirements .expected result: 1416mbactual result: 0mbcheck complete. the overall result of this check is: failed <<<<problem: the system does not have the
23、required swap space.recommendation: make more swap space available to perform the install.這里是交換空間要求為1416mb,而我的系統(tǒng)為0,現(xiàn)在我把它改為1800mb.執(zhí)行圖形中的命令即可。checking network configuration requirements .actual result: :java.lang.nullpointerexception:exception/error occurredcheck complete. the overall result of this c
24、heck is: not executed <<<<recommendation: oracle supports installations on systems with dhcp-assigned public ip addresses. however, the primary network interface on the system should be configured with a static ip address in order for the oracle software to function properly. see the ins
25、tallation guide for more details on installing the software on systems configured with dhcp.這里不支持動(dòng)態(tài)的ip地址,修改上面提到的/etc/hosts文件即可。vi /etc/hosts內(nèi)容:192.168.130.189 dbserver 保存后在終端運(yùn)行命令:#hostname是否主機(jī)名變成了,如果沒有改變則要運(yùn)行以下命令#service network restart*nextinstall這是安裝過程,然后出現(xiàn):ok用root用戶執(zhí)行上面的root.sh文件,如圖:回來(lái)剛才的界面okexity
26、es到此安裝完畢! 終于結(jié)束了!5 測(cè)試oracle是否安裝成功5.1 啟動(dòng)oracle服務(wù)終端命令:sqlplus “/as sysdba”sql>startup如圖:發(fā)現(xiàn)在該目錄下沒有initorcl.ora文件。如圖:復(fù)制一個(gè)init.ora,命名為initorcl.ora終端命令:cp init.ora initorcl.ora然后在重起oracle,如圖:又出現(xiàn)錯(cuò)誤:ora-00371: not enough shared pool memory, should be atleast 62198988 bytes請(qǐng)修改:vi $oracle_home/dbs/initorcl.ora將其中的shared_p
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO 19152-4:2025 EN Geographic information - Land Administration Domain Model (LADM) - Part 4: Valuation information
- 2025至2030中國(guó)白三烯a4水解酶行業(yè)產(chǎn)業(yè)運(yùn)行態(tài)勢(shì)及投資規(guī)劃深度研究報(bào)告
- 2025至2030中國(guó)畜產(chǎn)品行業(yè)市場(chǎng)占有率及投資前景評(píng)估規(guī)劃報(bào)告
- 2025至2030中國(guó)瑜伽磚行業(yè)市場(chǎng)占有率及投資前景評(píng)估規(guī)劃報(bào)告
- 2025至2030中國(guó)玉米面筋粉(CGM)行業(yè)產(chǎn)業(yè)運(yùn)行態(tài)勢(shì)及投資規(guī)劃深度研究報(bào)告
- 2025至2030中國(guó)牽引帶式裝載機(jī)行業(yè)產(chǎn)業(yè)運(yùn)行態(tài)勢(shì)及投資規(guī)劃深度研究報(bào)告
- 學(xué)生自信心培養(yǎng)與行為表現(xiàn)的關(guān)系
- 管理人員能力提升培訓(xùn)
- 教育機(jī)器人如何改變課堂?教學(xué)助手視角
- 探索在線教育在醫(yī)療領(lǐng)域的發(fā)展趨勢(shì)與前景
- 共同借款人合同借條3篇
- 節(jié)約集約建設(shè)用地標(biāo)準(zhǔn) DG-TJ08-2422-2023
- 手術(shù)室物品清點(diǎn)原則與制度
- 藥品批發(fā)企業(yè)現(xiàn)代物流基本要求DB41-T 2318-2022
- GB/T 625-2024化學(xué)試劑硫酸
- 采血針市場(chǎng)發(fā)展前景分析及供需格局研究預(yù)測(cè)報(bào)告
- 氣胸完整版本
- 重慶市智慧園林綠化管理信息系統(tǒng)-可行性研究報(bào)告(國(guó)信咨詢)
- 2023-2024學(xué)年山東省泰安市泰山區(qū)七年級(jí)(下)期末數(shù)學(xué)試卷(五四學(xué)制)(含答案)
- 2024住院患者靜脈血栓栓塞癥預(yù)防護(hù)理與管理專家共識(shí)要點(diǎn)(全文)
- 2024車輛掛靠證明
評(píng)論
0/150
提交評(píng)論