資源描述:
《redhat linux 5下oracle 10g的asm安裝》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、環(huán)境:oracle10g+redhatlinux532位1.安裝asm所需要的支持包A.在oracle網(wǎng)站下載支持包:http://www.oracle.com/technology...x/asmlib/rhel5.htmlB.根據(jù)linux內(nèi)核下載相應(yīng)的asm安裝包:oracleasm-2.6.18-8.el5-2.0.4-1.el5.i686.rpmoracleasm-2.6.18-8.el5PAE-2.0.4-1.el5.i686.rpmoracleasm-2.6.18-8.el5xen-2.
2、0.4-1.el5.i686.rpmoracleasmlib-2.0.3-1.el5.i386.rpmoracleasm-support-2.0.4-1.el5.i386.rpmC.安裝rpm-Uvh..........--nodepsD.安裝完成后對(duì)用來(lái)做asm的磁盤(pán)進(jìn)行分區(qū)(此處我采用三塊硬盤(pán):hd[a,b,d]):fdisk/dev/hdanp1回車(chē)回車(chē)w根據(jù)以上參數(shù)對(duì)所有硬盤(pán)都進(jìn)行進(jìn)行分區(qū)E.創(chuàng)建asm磁盤(pán)/etc/init.d/oracleasmconfigure/etc/init.d/or
3、acleasmcreatediskORACLEASM1/dev/hda1/etc/init.d/oracleasmcreatediskORACLEASM2/dev/hdb1/etc/init.d/oracleasmcreatediskORACLEASM3/dev/hdd1F.查看asm磁盤(pán):/etc/init.d/oracleasmlistdisks2.安裝oracle,只裝軟件(安裝略),再通過(guò)dbca創(chuàng)建asm和數(shù)據(jù)庫(kù)3.創(chuàng)建asm實(shí)例A.在$ORACLE_HOME/dbs下創(chuàng)建初始化文件init
4、+ASM.ora內(nèi)容如下:*.asm_diskstring='ORCL:ORACLEASM*'*.background_dump_dest='/oracle/app/oracle/admin/+ASM/bdump'*.core_dump_dest='/oracle/app/oracle/admin/+ASM/cdump'*.instance_type='asm'*.large_pool_size=12M*.remote_login_passwordfile='SHARED'*.user_dump_de
5、st='/oracle/app/oracle/admin/+ASM/udump'說(shuō)明:第一行的ORCL:ORACLEASM*中ORCL為固定格式,ORACLEASM*代表asm磁盤(pán),別的沒(méi)有什么好說(shuō)的。B.創(chuàng)建目錄結(jié)構(gòu)mkdir-p/oracle/app/oracle/admin/+ASM/udumpmkdir-p/oracle/app/oracle/admin/+ASM/bdumpmkdir-p/oracle/app/oracle/admin/+ASM/cdumpC.啟動(dòng)實(shí)例:exportORACL
6、E_SID=+ASMsqlplus/assysdbastartup會(huì)報(bào)一個(gè)ORA-29701:unabletoconnecttoClusterManager錯(cuò)誤此時(shí)需要切換到root用戶(hù)執(zhí)行:$ORACLE_HOME/bin/localconfigadd做完后切換到oracle下就可以啟動(dòng)了,不過(guò)會(huì)報(bào)一個(gè):ORA-15110:nodiskgroupsmounted因?yàn)闆](méi)有創(chuàng)建磁盤(pán)組,那么是正常的報(bào)錯(cuò)。先不用例會(huì)D.創(chuàng)建spfile。createspfilefrompfile;創(chuàng)建完后spfile,關(guān)閉
7、實(shí)例(shutdownimmediate),在利用startup啟動(dòng)一下。E.創(chuàng)建磁盤(pán)組(一般最好成對(duì)添加,我此處沒(méi)有)SQL>creatediskgroupdgroup1normalredundancy2failgroupfgroup1disk'ORCL:ORACLEASM1','ORCL:ORACLEASM2'3failgroupfgroup2disk'ORCL:ORACLEASM3';Diskgroupcreated.查看掛載情況:SQL>selectname,statefromv$asm_di
8、skgroup;F.利用dbca創(chuàng)建正真的oracle數(shù)據(jù)庫(kù)。NAMESTATE-----------------------------------------DGROUP1MOUNTED若沒(méi)有自動(dòng)掛在,則需要手工掛在:SQL>alterdiskgroupdgroup1mount;alterdiskgroupdgroup1mount*ERRORatline1:ORA-15032:notallalterationsperformedORA-15017:d