ASM (3)

zhyuh發表於2007-01-31
=============================
資料庫關閉狀態下增加一塊磁碟
=============================
[@more@]

C:asmdisks>asmtool -create c:asmdisksdisk6 1000

--asm instance中
SQL> startup
ASM 例項已啟動

Total System Global Area   79691776 bytes
Fixed Size                  1247396 bytes
Variable Size              53278556 bytes
ASM Cache                  25165824 bytes
ASM 磁碟組已裝載
SQL> select path,mount_status,header_status from v$asm_disk;

PATH                           MOUNT_STATUS   HEADER_STATUS
------------------------------ -------------- ---------------
C:ASMDISKSDISK6              CLOSED         CANDIDATE
C:ASMDISKSDISK1              CACHED         MEMBER
C:ASMDISKSDISK2              CACHED         MEMBER
C:ASMDISKSDISK3              CACHED         MEMBER
C:ASMDISKSDISK4              CACHED         MEMBER
C:ASMDISKSDISK5              CACHED         MEMBER

已選擇6行。

SQL> alter diskgroup dgroup1 add disk
  2  'C:ASMDISKSDISK6' name dgroup1_0005;

磁碟組已變更。

SQL> select path,mount_status,header_status,name from v$asm_disk
SQL> /

PATH                           MOUNT_STATUS   HEADER_STATUS   NAME
------------------------------ -------------- --------------- --------------
C:ASMDISKSDISK1              CACHED         MEMBER          DGROUP1_0000
C:ASMDISKSDISK2              CACHED         MEMBER          DGROUP1_0001
C:ASMDISKSDISK3              CACHED         MEMBER          DGROUP1_0002
C:ASMDISKSDISK4              CACHED         MEMBER          DGROUP1_0003
C:ASMDISKSDISK5              CACHED         MEMBER          DGROUP1_0004
C:ASMDISKSDISK6              CACHED         MEMBER          DGROUP1_0005

已選擇6行。

--啟動資料庫set oracle_sid=orcl
SQL> startup
ORACLE 例程已經啟動。

Total System Global Area  612368384 bytes
Fixed Size                  1250428 bytes
Variable Size             255855492 bytes
Database Buffers          348127232 bytes
Redo Buffers                7135232 bytes
資料庫裝載完畢。
資料庫已經開啟。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/207/viewspace-896271/,如需轉載,請註明出處,否則將追究法律責任。

相關文章