不用ASMLIB建立11gr2 ASM例項
給磁碟分割槽
...
[root@centos6 etc]# cat scsi_id.config
options=-g
options=-g
[root@centos6 etc]# scsi_id -u -g -d /dev/sdb
1ATA_VBOX_HARDDISK_VB9a9f82c1-ae6d0bdb
[root@centos6 etc]# scsi_id -u -g -d /dev/sdc
1ATA_VBOX_HARDDISK_VB49fee5e2-fb8e4829
1ATA_VBOX_HARDDISK_VB9a9f82c1-ae6d0bdb
[root@centos6 etc]# scsi_id -u -g -d /dev/sdc
1ATA_VBOX_HARDDISK_VB49fee5e2-fb8e4829
[root@centos6 rules.d]# cat 89-oracle-asmdevices.rules
KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB9a9f82c1-ae6d0bdb", NAME="asm1", OWNER="oracle", GROUP="oinstall", MODE="0660"
KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB49fee5e2-fb8e4829", NAME="asm2", OWNER="oracle", GROUP="oinstall", MODE="0660"
[root@rh6 rules.d]# udevadm control --reload-rules
KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB9a9f82c1-ae6d0bdb", NAME="asm1", OWNER="oracle", GROUP="oinstall", MODE="0660"
KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB49fee5e2-fb8e4829", NAME="asm2", OWNER="oracle", GROUP="oinstall", MODE="0660"
[root@rh6 rules.d]# udevadm control --reload-rules
[root@rh6 rules.d]# start_udev
(redhat5的scsi_id命令是scsi_id -g -u -s /block/sda,如果scsi_id不行,可以用/lib/udev/xxx_id)
做安裝rac的準備工作
...
安裝grid,選擇只安裝grid軟體,最後執行完root.sh指令碼後,在安裝root.sh的結果提示,執行一個perl指令碼
用grid執行asmca,建立asm例項,磁碟組這塊,路徑選擇/dev 然後磁碟裡就會出現asm1和asm2,然後指定一個磁碟組名稱。
編輯asm引數,將磁碟組名稱新增到引數中。
啟動asm,執行crsctl start resource css
透過crs_stat -t可以檢視asm狀態
連結asm的時候用grid使用者 sqlplus / as sysasm
如果實在不行了,可以重新配置crs
執行GRID_HOME/crs/install/rootcrs.pl -deconfig -force然後GRID_HOME/grid/root.sh再根據提示執行perl指令碼最後執行crsctl start resource -all
建立引數檔案
[grid@rh6 dbs]$ cat init+ASM.ora
*.asm_diskstring='/dev'
*.asm_diskgroups='ASMDG'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='SHARED'
*.asm_diskstring='/dev'
*.asm_diskgroups='ASMDG'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='SHARED'
引數檔案如果指定了dump目錄,啟動時會提示讓刪除引數,並且它自動使用/u01/app/11.2.0/grid/log/diag/asm/+asm/+ASM/trace目錄
Mon Dec 17 18:23:24 2012
WARNING: The background_dump_dest init.ora parameter has been deprecated.
WARNING: Please remove the background_dump_dest parameter from the init.ora file.
WARNING: The diagnostic_dest init.ora parameter now determines the location of the diagnostic data
WARNING: The new location for the background logs and traces is /u01/app/11.2.0/grid/log/diag/asm/+asm/+ASM/trace
Mon Dec 17 18:23:24 2012
WARNING: The user_dump_dest init.ora parameter has been deprecated.
WARNING: Please remove the user_dump_dest parameter from the init.ora file.
WARNING: The diagnostic_dest init.ora parameter now determines the location of the diagnostic data
WARNING: The new location for the user logs and traces is /u01/app/11.2.0/grid/log/diag/asm/+asm/+ASM/trace
WARNING: The background_dump_dest init.ora parameter has been deprecated.
WARNING: Please remove the background_dump_dest parameter from the init.ora file.
WARNING: The diagnostic_dest init.ora parameter now determines the location of the diagnostic data
WARNING: The new location for the background logs and traces is /u01/app/11.2.0/grid/log/diag/asm/+asm/+ASM/trace
Mon Dec 17 18:23:24 2012
WARNING: The user_dump_dest init.ora parameter has been deprecated.
WARNING: Please remove the user_dump_dest parameter from the init.ora file.
WARNING: The diagnostic_dest init.ora parameter now determines the location of the diagnostic data
WARNING: The new location for the user logs and traces is /u01/app/11.2.0/grid/log/diag/asm/+asm/+ASM/trace
由於是手工建立ASM例項,因此需要手工把ASM新增為crs資源
[grid@rh6 dbs]$ srvctl add asm -p /u01/app/11.2.0/grid/dbs/init+ASM.ora
啟動資源,此時oracle自動將磁碟組ASMDG也加為資源了
[grid@rh6 dbs]$ srvctl start asm
[grid@rh6 dbs]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type ONLINE ONLINE rh6
ora.asm ora.asm.type ONLINE ONLINE rh6
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
[grid@rh6 dbs]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type ONLINE ONLINE rh6
ora.asm ora.asm.type ONLINE ONLINE rh6
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
關閉服務需要先關閉ora.ASMDG.dg
[grid@rh6 dbs]$ crsctl stop resource ora.ASMDG.dg
CRS-2673: Attempting to stop 'ora.ASMDG.dg' on 'rh6'
CRS-2677: Stop of 'ora.ASMDG.dg' on 'rh6' succeeded
CRS-2673: Attempting to stop 'ora.ASMDG.dg' on 'rh6'
CRS-2677: Stop of 'ora.ASMDG.dg' on 'rh6' succeeded
[grid@rh6 dbs]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type OFFLINE OFFLINE
ora.asm ora.asm.type ONLINE ONLINE rh6
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type OFFLINE OFFLINE
ora.asm ora.asm.type ONLINE ONLINE rh6
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
[grid@rh6 dbs]$ crsctl stop resource ora.asm
CRS-2673: Attempting to stop 'ora.asm' on 'rh6'
CRS-2677: Stop of 'ora.asm' on 'rh6' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rh6'
CRS-2677: Stop of 'ora.asm' on 'rh6' succeeded
[grid@rh6 dbs]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type OFFLINE OFFLINE
ora.asm ora.asm.type OFFLINE OFFLINE
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
Name Type Target State Host
------------------------------------------------------------
ora.ASMDG.dg ora....up.type OFFLINE OFFLINE
ora.asm ora.asm.type OFFLINE OFFLINE
ora.cssd ora.cssd.type ONLINE ONLINE rh6
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE rh6
ora.ons ora.ons.type OFFLINE OFFLINE
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26239116/viewspace-1075983/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASM之建立ASM例項ASM
- 建立ASM例項及ASM資料庫ASM資料庫
- ASM之建立ASM例項及ASM資料庫ASM資料庫
- 使用普通檔案建立ASM例項ASM
- 建立ASM例項和資料庫ASM資料庫
- ASM之建立ASM例項時的常見故障ASM
- Oracle 11gR2 ASM例項記憶體管理OracleASM記憶體
- 【ASM學習】在windows 環境下建立ASM例項ASMWindows
- oracle 11gR2 配置goldengate連線asm例項OracleGoASM
- 驗證11gR2 RAC中ASM例項通過gpnp profile獲得spfile資訊來啟動ASM例項ASM
- 【ASM】ASMLIB 系列ASM
- oracle 11gR2 asm例項 不能啟動處理方法OracleASM
- ASM例項 10gR2升到11gR2ASM
- 【原創】使用普通檔案建立ASM例項ASM
- 11gR2手動建立的ASM例項無法被Clusterware管理的問題的解決ASM
- 11gR2啟動ASM例項時遭遇ORA-29701ASM
- 單例項刪除ASM例項單例ASM
- 管理 ASM 例項ASM
- 停止ASM例項ASM
- 【轉】11gR2啟動ASM例項時遭遇ORA-29701ASM
- 刪除ASM例項ASM
- 11gR2修改Grid軟體ASM例項引數檔案位置ASM
- 11gR2啟動ASM例項時遭遇ORA-29701, cssd dismon ohasASMCSS
- Using ASMLIB Management ASM DiskASM
- ASM using ASMLib and Raw DevicesASMdev
- 給ASM例項增加diskgroupASM
- asm例項刪除方法ASM
- oracle 收集asm例項資訊OracleASM
- Oracle 10g R2建立ASM例項Step By Step(一)Oracle 10gASM
- Oracle 10g R2建立ASM例項Step By Step(四)Oracle 10gASM
- [20191128]11GR2 asm例項audit檔案.txtASM
- 11GR2 Active Duplicate過程(單例項對單例項)單例
- oracle asm Unable to mount ASMlib driver filesystemOracleASM
- Oracle 11g RAC 建立例項DBCA無法發現ASM DiskgroupOracleASM
- 【RAC】因清理不完整導致RAC ASM例項建立失敗ASM
- RAC+DG(asm單例項)ASM單例
- Oracle 11.2.0.3 管理ASM例項OracleASM
- 單例項的duplicate(non ASM)單例ASM