數(shù)據(jù)庫服務(wù)器在安裝_第1頁
數(shù)據(jù)庫服務(wù)器在安裝_第2頁
數(shù)據(jù)庫服務(wù)器在安裝_第3頁
數(shù)據(jù)庫服務(wù)器在安裝_第4頁
數(shù)據(jù)庫服務(wù)器在安裝_第5頁
已閱讀5頁,還剩34頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、 oracle安裝文檔數(shù)據(jù)庫oracle10.2.0.1.0版本在linux radhat enterprise5安裝的文檔版本說明版本日期描 述作者審核2008-1-24oracle10g安裝說明蒙昭良目 錄1前言:41.1安裝oracle的環(huán)境42安裝前的準備配置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è)置主機名和ip183.6設(shè)置oracle10g支持rhel5的參數(shù)194安裝oracle214.1用oracle用戶運行runinstaller文件215測試oracle是否安裝成功325.1啟動oracle服務(wù)325.2訪問數(shù)據(jù)庫的web界面351 前言: 看過很多很多文

3、檔,有些文檔格式難看,有些則是圖形不夠全面。本人比較喜歡一些格式整齊,全面的圖形界面,文字又比較讓人覺的輕松的文檔。本文檔的目的是讓不接觸oracle的人能夠順利的安裝上oracle服務(wù)器。安裝時在網(wǎng)上參考了很多文檔,在此表示感謝!主要參考文檔:1.1 安裝oracle的環(huán)境Ø linux redhat enterprise5默認安裝(自定義軟件時,全選)Ø /home/mzl/目錄:下載的10201_database_linux32.zip放在該目錄Ø /u01/app/oracle/目錄:為oracle安裝的oracle_base2 安裝前的準備配置安裝ora

4、cle前的準備很重要,如果沒有準備好,導(dǎo)致多次安裝數(shù)據(jù)庫不成功。2.1 查詢所需安裝包是否完整進入系統(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張光盤,這些軟件都在那些光盤呢,請參考下面:安裝下面的包:# 從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)上圖的界面則可以進行下一步安裝。2.2 檢查安裝oracle的硬件要求內(nèi)存,交換區(qū),硬盤空間等。如圖:我裝的是雙系統(tǒng),先裝了windowsxp,在裝rhel5時怎么也創(chuàng)建不了交換區(qū),內(nèi)存和硬盤都滿足了要求,交換區(qū)暫時不用理會,后面安裝好系統(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再運行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如圖:到此準備安裝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è)置主機名和ipvi /etc/hosts內(nèi)容:192.168.130.189 dbserver 保存后在終端運行命令:#hostname是否主機名變成了,如果沒有改變則要運行以下命令#service network restart如圖:3.6 設(shè)置oracle10g支持r

13、hel5的參數(shù)因為在官方的oracle10g是不支持rhel5的,所以需要改變相關(guān)的參數(shù),不然在oracle10g安裝前不能通過檢測!網(wǎng)上有兩種更改的方法:(本人按照第一種方法安裝成功,第二種安裝不能成功)第一種:所以要修改版本說明,編輯文件 /etc/redhat-release 把red hat enterprise linux server release 5 (tikanga) 改成版本4:redhat-4第二種:更改10201_database_linux32.zip解壓后的/database/install/oraparam.ini文件。本人比較傾向于第一種,因為這種修改,在ora

14、cle安裝時第一次檢測可以通過,但安裝到一般時,再次檢測無法通過,導(dǎo)致安裝不成功!(個人觀點)# #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如圖:上面的準備,都是為了能夠成功安裝,下面就可以運行oracle的安裝文件了。4 安裝oracle4.1 用oracle用戶運行runinstaller文件

15、不能用root用戶安裝oracle數(shù)據(jù)庫,在root用戶下,新建一個終端,然后切換到oracle用戶來安裝,也不行! 這樣則會出現(xiàn)下圖的錯誤信息:所以需要注銷到oracle用戶下,或者是重起機器用oracle用戶登陸。執(zhí)行命令:切換到運行文件的目錄:#cd /home/mzl/database# export display= "192.168.130.189:0.0 "# export lc_ctype=c.iso88591 (設(shè)置字符碼,如果字符不一樣,則會出現(xiàn)亂碼)#./runinstanller如圖:然后出現(xiàn)最受歡迎的界面:nextnext在這里所有的驗證都通過了!

16、 (兩行*號之間的大家不用看,如果檢測不通過,則可以參考)*插一段話,如果沒有出現(xiàn)上面的界面,最好重新檢查還缺少什么東西。如果出現(xiàn)下面的界面,就先停止安裝。在這里有2個警告,4個要求沒有通過。我們看看都什么警告和要求: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.這里說不支持rhel5系統(tǒng),如果按照上面的第二種則會出現(xiàn),按照第一種方式修改則通過檢測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.這里說不支持rhel5系統(tǒng),如果按照上面的第二種則會出現(xiàn),按照第一種方式修改則通過檢測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.這里說不支持rhel5系統(tǒng),如果按照上面的第二種則會出現(xiàn),按照第一種方式修改則通過檢測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.這里說不支持rhel5系統(tǒng),如果按照上面的第二種則會出現(xiàn),按照第一種方式修改則通過檢測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.這里不支持動態(tài)的ip地址,修改上面提到的/etc/hosts文件即可。vi /etc/hosts內(nèi)容:192.168.130.189 dbserver 保存后在終端運行命令:#hostname是否主機名變成了,如果沒有改變則要運行以下命令#service network restart*nextinstall這是安裝過程,然后出現(xiàn):ok用root用戶執(zhí)行上面的root.sh文件,如圖:回來剛才的界面okexity

26、es到此安裝完畢! 終于結(jié)束了!5 測試oracle是否安裝成功5.1 啟動oracle服務(wù)終端命令:sqlplus “/as sysdba”sql>startup如圖:發(fā)現(xiàn)在該目錄下沒有initorcl.ora文件。如圖:復(fù)制一個init.ora,命名為initorcl.ora終端命令:cp init.ora initorcl.ora然后在重起oracle,如圖:又出現(xiàn)錯誤:ora-00371: not enough shared pool memory, should be atleast 62198988 bytes請修改:vi $oracle_home/dbs/initorcl.ora將其中的shared_p

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論