RedHatLinuxAS4Update5静默安装及升级Oracle10G10203_第1页
RedHatLinuxAS4Update5静默安装及升级Oracle10G10203_第2页
RedHatLinuxAS4Update5静默安装及升级Oracle10G10203_第3页
RedHatLinuxAS4Update5静默安装及升级Oracle10G10203_第4页
RedHatLinuxAS4Update5静默安装及升级Oracle10G10203_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 19/19Red HHat EEnterrrisee Linnux4 Updaate5 环境下静静默方安装装Oraccle100.2.00.1升级级到10.2.0.3数据库库,并创建建数据库Oraclle10GG安装目录TOC o 1-3 h z u HYPERLINK l _Toc272156044 一、检查安安装环境: PAGEREF _Toc272156044 h 3 HYPERLINK l _Toc272156045 二、静默安安装Oraacle110G数据据库软件 PAGEREF _Toc272156045 h 9 HYPERLINK l _Toc272156046 三、静默安安装

2、监听器器: PAGEREF _Toc272156046 h 10 HYPERLINK l _Toc272156047 四、静默升升级Oraacle110G软件件 PAGEREF _Toc272156047 h 11 HYPERLINK l _Toc272156048 五、静默创创建Oraacle110G数据据库 PAGEREF _Toc272156048 h 13 HYPERLINK l _Toc272156049 六、设置ooraclle服务自自启动 PAGEREF _Toc272156049 h 16一、检查安安装环境:LinuxxAS4UUpdatte5在安装时时,将所有有开发相关关的组

3、件全全部安装;roottloccalhoost # rrpm -q biinutiils ccompaat-dbb conntroll-cennter gcc gcc-c+ glibbc gllibc-commmon ggnomee-libbs liibstddc+ libsstdc+-deevel makee pdkksh ssyssttat xxscreeensaaver libaaiobinuttils-2.155.92.0.2-22compaat-dbb-4.11.25-9contrrol-ccenteer-2.8.0-12.rrhel44.5gcc-33.4.66-8gcc-cc+-

4、33.4.66-8glibcc-2.33.4-22.36glibcc-commmon-2.3.4-2.36gnomee-libbs-1.4.1.2.900-44.1libsttdc+-3.44.6-88libsttdc+-devvel-33.4.66-8make-3.800-6.EEL4pdkshh-5.22.14-30.33packaage ssyssttat iis noot innstallledxscreeensaaver-4.188-5.rrhel44.13libaiio-0.3.1005-2roottloccalhoost #syssttat没有有安装,在在安装盘44中的RRedH

5、aatRPPMS下找到syysstaat-5.0.5-14.rrhel44.i3886.rppm,上传传至LINNUX机器器并安装roottloccalhoost # rrpm -Uvh syssstat-5.0.5-144.rheel4.ii386.rpm warniing: syssstat-5.0.5-144.rheel4.ii386.rpm: V3 DSA signnaturre: NNOKEYY, keey IDD db442a600ePrepaaringg. # 100% 1:syssstat # 100%roottloccalhoost #安装后检查查:roottloccalho

6、ost # rrpm -q syysstaatsyssttat-55.0.55-14.rhell4roottloccalhoost #安装成功!判断本机是是否安装过过oraccle:roottloccalhoost # mmore /etcc/oraaInstt.locc/etc/oraIInst.loc: No suchh fille orr dirrectooryroottloccalhoost #表示没有安安装过orraclee创建安装OOraclle需要的的用户和组组:roottloccalhoost # ggrouppadd oinsstalllroottloccalhoost #

7、ggrouppadd dbaroottloccalhoost # uuseraadd -m -gg oinnstalll -GG dbaa oraacleroottloccalhoost #设置oraacle用用户密码,这这里设置为为“oraccle”roottloccalhoost # ppasswwd orracleeChangging passswordd forr useer orraclee.New UUNIX passswordd: BAD PPASSWWORD: it is bbasedd on a diictioonaryy worrdRetyppe neew UNNIX pp

8、asswword: passwwd: aall aautheenticcatioon tookenss upddatedd succcesssfullly.roottloccalhoost #创建安装ooraclle所需的的目录:roottloccalhoost # mmkdirr -p /u011/appp/oraacle/db_11roottloccalhoost # cchownn oraacle.oinsstalll /u001/appp/orracleeroottloccalhoost # cchownn oraacle.oinsstalll /u001/appp/orraclee/

9、db_1roottloccalhoost #配置Linnux系统统内核参数数:roottloccalhoost # vvi /eetc/ssyscttl.coonf修改或添加加以下参数数:kerneel.shhmalll = 220971152kerneel.shhmmaxx = 225600000000 kerneel.shhmmnii = 44096 kerneel.seem = 250 320000 1000 1228 fs.fiile-mmax = 655536 net.iipv4.ip_llocall_porrt_raange = 10024 6650000 net.ccore.rm

10、emm_deffaultt = 110485576 net.ccore.rmemm_maxx = 110485576 net.ccore.wmemm_deffaultt = 22621444 net.ccore.wmemm_maxx = 22621444注:一般而而言我们只只需要修改改kernnel.sshmmaax 这个个值,该参参数应该是是物理内存存的一半(字节)编辑完之后后存盘退出出,然后运运行下列命命令重新加加载并验证证参数是否否正确:roottloccalhoost # ssyscttl -ppnet.iipv4.ip_fforwaard = 0net.iipv4.conff.def

11、faultt.rp_filtter = 1net.iipv4.conff.deffaultt.acccept_sourrce_rroutee = 00kerneel.syysrq = 0kerneel.coore_uuses_pid = 1kerneel.shhmalll = 220971152kerneel.shhmmaxx = 225600000000kerneel.shhmmnii = 44096kerneel.seem = 250 320000 1000 1228fs.fiile-mmax = 655536net.iipv4.ip_llocall_porrt_raange = 1002

12、4 6650000net.ccore.rmemm_deffaultt = 110485576net.ccore.rmemm_maxx = 110485576net.ccore.wmemm_deffaultt = 22621444net.ccore.wmemm_maxx = 22621444roottloccalhoost #Oraclle建议对对每个Liinux账账户可以使使用的进程程数和打开开的文件数数设置限制制(可选设设置)打开文件llimitts.coonf roottloccalhoost # vvi /eetc/ssecurrity/limiits.cconf加入以下参参数:* so

13、fft npproc 20477* harrd npproc 163884* sofft noofilee 10224* harrd noofilee 655536修改/ettc/paam.d/logiin文件roottloccalhoost # vvi /eetc/ppam.dd/loggin加入参数:sessiion rrequiired /libb/seccuritty/paam_liimitss.sosessiion rrequiired pam_limiits.ssoroottloccalhoost # vvi /eetc/sselinnux/cconfiig确保存在以以下内容:SE

14、LINNUX=ddisabbled配置oraacle 用户的环环境变量roottloccalhoost # ssu - oraacleoracclellocallhostt $ vi .bassh_prrofille文件内容修修改为:# .baash_pprofiile# Gett thee aliiasess andd funnctioonsif -f /.baashrcc ; thenn . /.bashhrcfi# Useer sppeciffic eenvirronmeent aand sstarttup pprogrrams# Oraacle Enviironmmentexporrt

15、 ORRACLEE_BASSE=/uu01/aapp/ooraclleexporrt ORRACLEE_HOMME=$OORACLLE_BAASE/ddb_1exporrt ORRACLEE_SIDD=orcclexporrt ORRA_NLLS33=$ORAACLE_HOMEE/ocoommonn/nlss/admmin/ddataLD_LIIBRARRY_PAATH=$ORACCLE_HHOME/lib:/libb:/ussr/liibLD_LIIBRARRY_PAATH=$LD_LLIBRAARY_PPATH:/usrr/loccal/llibexporrt LDD_LIBBRARYY_

16、PATTHexporrt PAATH=$HOMEE/binn:$ORRACLEE_HOMME/biin:$PPATHexporrt NLLS_LAANG=AMERRICANN_AMEERICAA.ZHSS16GBBKexporrt PAATHunsett USEERNAMMEif $USEER = oraacle ; thennif $SHEELL = /bbin/kksh ; tthenulimiit -pp 163384ulimiit -nn 655536elseulimiit -uu 163384 -n 655536fifi到此,安装装Oraccle的准准备工作基基本完成,下下一步,可可

17、以选择图图形界面安安装或静默默安装方式式,这里使使用静默安安装方式:二、静默安安装Oraacle110G数据据库软件修改响应文文件:oracclellocallhostt dattabasse$ cd rrespoonse/oracclellocallhostt ressponsse$ vi eenterrprisse.rssp修改必要的的参数UNIX_GROUUP_NAAME=”oinsstalll”FROMM_LOCCATIOON= ./sttage/prodductss.xmllORAACLE_HOMEE= /u001/appp/orraclee/db_1ORRACLEE_HOMME_N

18、AAME=OraDDbHomme1RRESTAART_SSYSTEEM=faalseRRESTAART_RREMOTTE_SYYSTEMM=fallseORRACLEE_HOSSTNAMME=loocalhhostCOMPOONENTT_LANNGUAGGES=zh_CNs_naameFoorDBAAGrp=dbaan_cconfiiguraationnOptiion=33 回到Oraacle110G的安安装程序目目录,开始始安装:oracclellocallhostt dattabasse$ ./ruunInsstalller -sileent -respponseeFilee /hoome

19、/ooraclle/daatabaase/rrespoonse/enteerpriise.rrsp安装完成后后,执行两两个脚本(使用rooot用户户):#. $OORACLLE_BAASE/ooraInnventtory/oraiinstRRoot.sh#. $OORACLLE_HOOME/rroot.sh三、静默安安装监听器器:安装网络监监听器没有有网络监听听器,客户户端就无法法通过网络络连接Orralcee服务器。要在命令令行安装网网络监听器器,也只能能使用静默默模式。编编辑Oraacle安安装目录里里respponsee子目录下下的应答文文件 neetca.rsp,修修改以下项项目。IN

20、NSTALLL_TYYPE=cusstom 安装装的类型LLISTEENER_NUMBBER=11 监听器器数量LIISTENNER_NNAMESS=LLISTEENER 监听听器的名称称列表LIISTENNER_PPROTOOCOLSS=TTCP;11521 监听听器使用的的通讯协议议列表LIISTENNER_SSTARTT=LLISTEENER 监听听器启动的的名称然后执行:oracclellocallhostt ressponsse$ netcca /ssilennt /rrespoonseFFile /homme/orraclee/dattabasse/reesponnse/nnetc

21、aa.rspp四、静默升升级Oraacle110G软件件进入补丁包包安装目录录# cd /rooot/Diisk1/respponsee修改响应文文件:paatchsset.rrspUNIX_GROUUP_NAAME=”oinsstalll”FROOM_LOOCATIION=./sstagee/prooductts.xmmlORRACLEE_HOMME=/u01/app/oraccle/ddb_1ORACLLE_HOOME_NNAME=OraaDbHoome1RESTAART_SSYSTEEM=faalseCOMPOONENTT_LANNGUAGGES=zh_CN修改后回到到补丁程序序目录执行

22、行:oracclellocallhostt ressponsse$ cd .oracclellocallhostt Dissk1$ ./rrunInnstalller -sillent -ressponsseFille /hhome/oraccle/DDisk11/ressponsse/paatchsset.rrsp安装成功后后,会提示示: 1000% DDone.Setupp succcesssfulEnd oof innstalll phhasess.(Thhu Juun 044 18:47:005 CSST 20009)Startting to eexecuute cconfiigura

23、ationn asssistaantsoracclellocallhostt Dissk1$ Connfiguuratiion aassisstantt Onneofff Pattch AAppliicatiion succceedeed WARNIING:The ffolloowingg connfiguuratiion sscrippts nneed to bbe exxecutted aas thhe rroot useer.#!/biin/shh#Roott scrript to rrun/u01/app/oraccle/ddb_1/roott.shTo exxecutte thhe

24、coonfiggurattion scriipts: 11. Oppen aa terrminaal wiindoww 22. Loog inn as rooot 33. Ruun thhe sccripttsThe iinstaallattion of OOraclle Daatabaase 110g RReleaase 22 Pattch SSet 22 wass succcesssful.Pleasse chheck /u001/appp/orraclee/oraaInveentorry/loogs/ssilenntInsstalll20099-06-04_006-433-40PPM.l

25、oog ffor mmore detaails.使用rooot用户登登录,执行行:/u001/appp/orraclee/db_1/rooot.sshroottloccalhoost ddb_1# ./roott.shRunniing OOraclle10 roott.sh scriiptThe ffolloowingg envvironnmentt varriablles aare sset aas: OORACLLE_OWWNER= oraacle OORACLLE_HOOME= /u001/appp/orraclee/db_1Enterr thee fulll paathnaame oo

26、f thhe loocal bin direectorry: /usrr/loccal/bbin: The ffile dbhhome alrreadyy exiists in /usr/locaal/biin. Overrwritte itt? (yy/n) n: y Coopyinng dbbhomee to /usrr/loccal/bbin The ffile oraaenv alrreadyy exiists in /usr/locaal/biin. Overrwritte itt? (yy/n) n: y Coopyinng orraenvv to /usrr/loccal/bbi

27、n The ffile corraenvv allreaddy exxistss in /usrr/loccal/bbin. Oveerwriite iit? (y/n) n: y Coopyinng cooraennv too /ussr/loocal/bin .Entriies wwill be aaddedd to the /etcc/oraatab filee as needded bbyDatabbase Conffigurratioon Asssisttant whenn a ddatabbase is ccreattedFinisshed runnning geneeric pa

28、rtt of roott.sh scriipt.Now pproduuct-sspeciific roott acttionss willl bee perrformmed.roottloccalhoost ddb_1#五、静默创创建Oraacle110G数据据库修改响应文文件编辑Oraacle安安装目录里里respponsee子目录下下的应答文文件 dbbca.rrspOPERAATIONN_TYPPE = creeateDDatabbaseGDBNAAME = orrclSID = orrclSYSPAASSWOORD = syysSYSTEEMPASSSWORRD = sysstemCH

29、ARAACTERRSET = ZZHS166GBKTEMPLLATENNAME = /u01/app/oraccle/ddb_1/assiistannts/ddbca/tempplatees/Geeneraal_Puurposse.dbbcEMCONNFIGUURATIION = LOOCALSYSMAANPASSSWORRD = syssmanDBSNMMPPASSSWORRD = dbssnmp执行:oracclellocallhostt ressponsse$ dbcaa -siilentt -reesponnseFiile /homee/oraacle/dataabasee/ressp

30、onsse/dbbca.rrspCopyiing ddatabbase filees1% coompleete3% coompleete11% ccompllete18% ccompllete26% ccompllete37% ccomplleteCreatting and starrtingg Oraacle insttancee40% ccompllete45% ccompllete50% ccompllete55% ccompllete56% ccompllete60% ccompllete62% ccomplleteComplletinng Daatabaase CCreattion6

31、6% ccompllete70% ccompllete73% ccompllete85% ccompllete96% ccompllete100% comppleteeLook at tthe llog ffile /u001/appp/orraclee/db_1/cffgtooolloggs/dbbca/oorcl/orcll.logg foor fuurtheer deetaills.oracclellocallhostt ressponsse$数据库创建建成功后须须要注册一一些信息,运运行$ORRACLEE_BASSE/orraInvventoory/oorainnstRooot.ssh

32、然后编编辑 /eetc/oorataab将:N修修改为:Y安装完完成!启动数据库库服务,ssys用户户登录SQQLPLUUS:Sqlsstarttup启动监听器器:oracclellocallhostt $lsnrrctl starrt启动企业管管理器服务务oracclellocallhostt $emcttl sttart dbcoonsolle访问地址为为: HYPERLINK htttp:/IP:11158/em/ htttp:/IP:11158/em/如果有多个个实例,则则从第二个个实例开始始,访问的的端口依次次为55000、55501如需使用iiSQL*PLUSS,则启动动相应服务务

33、oracclellocallhostt $isqllplussctl starrt访问地址为为: HYPERLINK htttp:/IP:55560/isqllpluss htttp:/IP:55560/isqllpluss六、设置ooraclle服务自自启动在oraccle用户户下修改文文件$ORRACLEE_HOMME/biin/dbbstarrt查找 ORRACLEE_HOMME_LIISTNEER=改为ORAACLE_HOMEE_LISSTNERR=$ORRACLEE_HOMME在roott用户下编编辑文件# cd /etcc/rc.d/innit.dd/# vi orradb写入如下

34、文文件内容:#!/biin/baash# chkkconffig: 345 99 110# desscripptionn: Sttartuup Sccriptt forr Oraacle Dataabasees# /ettc/rcc.d/iinit.d/dbbstarrtexporrt ORRACLEE_BASSE=/uu01/aapp/ooraclleexporrt ORRACLEE_HOMME=/uu01/aapp/ooraclle/dbb_1exporrt ORRACLEE_SIDD=orcclexporrt PAATH=$PATHH:$ORRACLEE_HOMME/biinORA_OOWNR=oraacle# if the execcutabbles do nnot eexistt - dispplay erroorif ! -ff $ORRACLEE_HOMME/biin/dbbstarrt -oo ! -d $OORACLLE_HOOME the

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论