【ASM學習】在windows 環境下建立ASM例項
SQL> startup
ASM 例項已啟動
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 509162388 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted
SQL> show user
USER is "SYS"
SQL> col host_name for a15
SQL> col instance_name for a15
SQL> col version for a15
SQL> select host_name,instance_name,version,status from v$instance;
HOST_NAME INSTANCE_NAME VERSION STATUS
--------------- --------------- --------------- ------------------------
YQL +asm 11.1.0.6.0 STARTED
SQL> col path for a30
SQL> select path ,mount_status from v$asm_disk order by disk_number;
PATH MOUNT_STATUS
------------------------------ --------------
F:\ORACL\ASM\ASMDISK1 CLOSED
F:\ORACL\ASM\ASMDISK10 CLOSED
F:\ORACL\ASM\ASMDISK2 CLOSED
F:\ORACL\ASM\ASMDISK3 CLOSED
F:\ORACL\ASM\ASMDISK4 CLOSED
F:\ORACL\ASM\ASMDISK5 CLOSED
F:\ORACL\ASM\ASMDISK6 CLOSED
F:\ORACL\ASM\ASMDISK7 CLOSED
F:\ORACL\ASM\ASMDISK8 CLOSED
F:\ORACL\ASM\ASMDISK9 CLOSED
10 rows selected.
SQL> select group_number,name, state,total_mb,free_mb from v$asm_diskgroup;
no rows selected
SQL> create diskgroup sys_data
2 External Redundancy
3 disk 'f:\oracl\asm\asmdisk1',
4 'f:\oracl\asm\asmdisk2',
5 'f:\oracl\asm\asmdisk3';
Diskgroup created.
SQL> create diskgroup flash_data
2 External Redundancy
3 disk 'f:\oracl\asm\asmdisk4',
4 'f:\oracl\asm\asmdisk5';
Diskgroup created.
SQL> create diskgroup user_data
2 Normal Redundancy
3 failgroup user_fg_01 disk 'f:\oracl\asm\asmdisk6'
4 failgroup user_fg_02 disk 'f:\oracl\asm\asmdisk7';
Diskgroup created.
SQL> create diskgroup test_data
2 High Redundancy
3 failgroup test_fg_01 disk 'f:\oracl\asm\asmdisk8'
4 failgroup test_fg_02 disk 'f:\oracl\asm\asmdisk9'
5 failgroup test_fg_03 disk 'f:\oracl\asm\asmdisk10';
Diskgroup created.
SQL> col path for a30
SQL> select path ,mount_status from v$asm_disk order by disk_number;
PATH MOUNT_STATUS
------------------------------ --------------
F:\ORACL\ASM\ASMDISK1 CACHED
F:\ORACL\ASM\ASMDISK4 CACHED
F:\ORACL\ASM\ASMDISK8 CACHED
F:\ORACL\ASM\ASMDISK6 CACHED
F:\ORACL\ASM\ASMDISK9 CACHED
F:\ORACL\ASM\ASMDISK5 CACHED
F:\ORACL\ASM\ASMDISK7 CACHED
F:\ORACL\ASM\ASMDISK2 CACHED
F:\ORACL\ASM\ASMDISK3 CACHED
F:\ORACL\ASM\ASMDISK10 CACHED
10 rows selected.
SQL> select group_number,name,sector_size,block_size,allocation_unit_size,
2 state,type,total_mb,free_mb
3 from v$asm_diskgroup;
GROUP_NUMBER NAME
------------ ------------------------------------------------------------
SECTOR_SIZE BLOCK_SIZE ALLOCATION_UNIT_SIZE STATE TYPE
----------- ---------- -------------------- ---------------------- ------------
TOTAL_MB FREE_MB
---------- ----------
1 SYS_DATA
512 4096 1048576 MOUNTED EXTERN
1500 1446
2 FLASH_DATA
512 4096 1048576 MOUNTED EXTERN
400 348
GROUP_NUMBER NAME
------------ ------------------------------------------------------------
SECTOR_SIZE BLOCK_SIZE ALLOCATION_UNIT_SIZE STATE TYPE
----------- ---------- -------------------- ---------------------- ------------
TOTAL_MB FREE_MB
---------- ----------
3 USER_DATA
512 4096 1048576 MOUNTED NORMAL
200 98
4 TEST_DATA
512 4096 1048576 MOUNTED HIGH
GROUP_NUMBER NAME
------------ ------------------------------------------------------------
SECTOR_SIZE BLOCK_SIZE ALLOCATION_UNIT_SIZE STATE TYPE
----------- ---------- -------------------- ---------------------- ------------
TOTAL_MB FREE_MB
---------- ----------
300 147
SQL> col name for a12
SQL> col allocation_unit_size for a6
SQL> select group_number,name,sector_size,block_size,
2 state,type,total_mb,free_mb
3 from v$asm_diskgroup;
GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
------------ ------------ ----------- ---------- ----------------------
TYPE TOTAL_MB FREE_MB
------------ ---------- ----------
1 SYS_DATA 512 4096 MOUNTED
EXTERN 1500 1446
2 FLASH_DATA 512 4096 MOUNTED
EXTERN 400 348
3 USER_DATA 512 4096 MOUNTED
NORMAL 200 98
GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
------------ ------------ ----------- ---------- ----------------------
TYPE TOTAL_MB FREE_MB
------------ ---------- ----------
4 TEST_DATA 512 4096 MOUNTED
HIGH 300 147
SQL> select group_number,name,
2 state,type,total_mb,free_mb
3 from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TYPE TOTAL_MB
------------ ------------ ---------------------- ------------ ----------
FREE_MB
----------
1 SYS_DATA MOUNTED EXTERN 1500
1446
2 FLASH_DATA MOUNTED EXTERN 400
348
3 USER_DATA MOUNTED NORMAL 200
98
GROUP_NUMBER NAME STATE TYPE TOTAL_MB
------------ ------------ ---------------------- ------------ ----------
FREE_MB
----------
4 TEST_DATA MOUNTED HIGH 300
147
SQL> select group_number,name,
2 type,total_mb,free_mb
3 from v$asm_diskgroup;
GROUP_NUMBER NAME TYPE TOTAL_MB FREE_MB
------------ ------------ ------------ ---------- ----------
1 SYS_DATA EXTERN 1500 1446
2 FLASH_DATA EXTERN 400 348
3 USER_DATA NORMAL 200 98
4 TEST_DATA HIGH 300 147
SQL> show parameter asm_disk
NAME TYPE VALUE
-------- ---------------- ------------------------------
asm_diskgroups string SYS_DATA, FLASH_DATA, USER_DATA, TEST_DATA
asm_diskstring string F:\ORACL\ASM\*
SQL> shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL> host orapwd file=F:\ORACL\product\11.1.0\db_1\database\PWDasm.ora password=yang entries=10
在引數檔案里加入asm_diskgroups='SYS_DATA', 'FLASH_DATA', 'USER_DATA', 'TEST_DATA' --根據實際情況作出修改!
SQL> startup
ASM instance started
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 509162388 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
SQL> create spfile from pfile;
File created.
----成功!以後可以在ASM上折騰了。。。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-670708/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASM之建立ASM例項ASM
- (轉)Oracle rac環境下清除asm例項OracleASM
- Windows平臺模擬單例項ASM環境Windows單例ASM
- 單機環境配置ASM例項ASM
- ASM之建立ASM例項及ASM資料庫ASM資料庫
- windows下建立asmWindowsASM
- 建立ASM例項及ASM資料庫ASM資料庫
- 刪除Linux非rac環境下的ASM例項LinuxASM
- Rman 單例項filesystem(Windows)恢復到ASM環境(Linux)單例WindowsASMLinux
- ASM單例項(Oracle 11.2.0.4)環境(一)ASM單例Oracle
- ASM單例項(Oracle 11.2.0.4)環境(二)ASM單例Oracle
- 單機環境安裝配置ASM例項ASM
- 刪除Linux非rac環境下的ASM例項(轉)LinuxASM
- 11.2環境ASM例項spfile放在ASM磁碟組的訪問方式ASM
- ASM之建立ASM例項時的常見故障ASM
- 學習ASM技術(一)--環境搭建ASM
- Windows平臺下建立asmWindowsASM
- 使用普通檔案建立ASM例項ASM
- 建立ASM例項和資料庫ASM資料庫
- 【ASM學習】普通資料庫向ASM例項的遷移(二)ASM資料庫
- 【ASM學習】普通資料庫向ASM例項的遷移(一)ASM資料庫
- 全面學習和應用ORACLE ASM特性--(1)關於asm例項OracleASM
- 管理 ASM 例項ASM
- 停止ASM例項ASM
- RAC和ASM環境下打patchASM
- asm-windows下安裝asmASMWindows
- 【ASM學習】ASM 管理ASM
- 【ASM學習】ASM文件ASM
- 【原創】使用普通檔案建立ASM例項ASM
- 單例項刪除ASM例項單例ASM
- 刪除ASM例項ASM
- RAC環境在ASM上建立表空間出錯ORA-569ASM
- 不用ASMLIB建立11gr2 ASM例項ASM
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- 單機搭建ASM環境ASM
- Flex ASM自動重定位ASM例項測試FlexASM
- 給ASM例項增加diskgroupASM
- asm例項刪除方法ASM