分类: oracle
2009-09-22 10:52:30
how to use files in place of real disk devices for asm - (windows)
by jeff hunter, sr. database administrator
contents
for a detailed article on configuring asm, see my article: "".
here is the perl script:
createtextfiles.pl my $s='0' x 2**20;
open(df1,">c:/asmdisks/_file_disk1") || die "cannot create file - $!\n";
open(df2,">c:/asmdisks/_file_disk2") || die "cannot create file - $!\n";
open(df3,">c:/asmdisks/_file_disk3") || die "cannot create file - $!\n";
open(df4,">c:/asmdisks/_file_disk4") || die "cannot create file - $!\n";
for (my $i=1; $i<100; $i ) {
print df1 $s;
print df2 $s;
print df3 $s;
print df4 $s;
}
exitnow, run the perl script using your favorite perl interpreter:
c:\oracle\product\10.1.0\db_1\perl\5.6.1\bin\mswin32-x86\perl createtextfiles.pl
the following assumes you have the initialization parameter asm_diskstring set properly for the asm instance. for the purpose of this example, my asm_diskstring parameter is set as follows: *.asm_diskstring='c:\asmdisks\_file*'