my $s=
open(DF
open(DF
open(DF
open(DF
for (my $i=
print DF
print DF
print DF
print DF
}
exit
C:/WINDOWS>perl h:/asmdisk
C:/WINDOWS>localconfig add
Step
Successfully accumulated necessary OCR keys
Creating OCR keys for user
Operation successful
Step
successfully created local CSS service
successfully added CSS to home
%ORACLE_BASE%/admin/+asm/bdump
%ORACLE_BASE%/admin/+asm/cdump
%ORACLE_BASE%/admin/+asm/hdump
%ORACLE_BASE%/admin/+asm/pfile
%ORACLE_BASE%/admin/+asm/udump
_asm_allow_only_raw_disks=false
asm_diskstring=
background_dump_dest=
core_dump_dest=
user_dump_dest=
instance_type=asm
compatible=
large_pool_size=
remote_login_passwordfile=exclusive
C:/WINDOWS>oradim
Instance created
C:/WINDOWS>set ORACLE_SID=+asm
C:/WINDOWS>sqlplus
SQL*Plus: Release
Copyright (c)
Connected to an idle instance
idle>startup nomount pfile=
asm instance started
Total System Global Area
Fixed Size
Variable Size
asm Cache
idle>create spfile from pfile=
File created
idle>shut immediate
ORA
asm instance shutdown
idle>startup
asm instance started
Total System Global Area
Fixed Size
Variable Size
asm Cache
ORA
idle>create diskgroup test normal redundancy
Diskgroup created
從v$asm_disk視圖查看asm disk的情況
idle>col group_number heading gNo for
idle>col disk_number heading dNo for
idle>col mount_status heading mstatus for a
idle>col header_status heading hstatus for a
idle>col path for a
idle>SELECT group_number
gNo dNo mstatu hstatus STATE PATH
從v$asm_diskgroup視圖查看asm diskgroup的情況
idle>select group_number
gNo NAME TOTAL_MB FREE_MB STATE TYPE
asm實例創建成功
From:http://tw.wingwit.com/Article/program/Oracle/201311/18510.html