案例环境描述如下:
DS8100_B的6个lun(5000-5002,5100-5102) 在本例中担任了两个角色:PPRC的Target端和Flashcopy的源端。
DS8100_A的6个lun((5000-5002,5100-5102)建立PPRC关系对,复制到DS8100_B对应的6个lun((5000-5002,5100-5102)
DS8100_B的6个lun((5000-5002,5100-5102)建立Flashcopy关系对,复制到DS8100_B对应的6个lun((8000-8002,8100-8102)
存在两层的复制关系:
DS8100_Aà(PPRC)àDS8100_Bà(FLASHCOPY)àDS8100_B
[@more@]Dscli>mkvolgrp –type scsimask –volume 5000-5002,5100-5102 test_vg
Dscli>lsvolgrp
Dscli>mkhostconnect –wwname 10000000c45def –volgrp V4 test_fcs0
Dscli>mkhostconnect –wwname 10000000c45ded –volgrp V4 test_fcs1
#cfgmgr –v
#smitty vgàadd a volume group with data path devices-->testvg ..
#mklv -T O -w n -r n -u 6 -S 256K -t raw -y
ora_data_01 testvg 30
。。。。。。
# mklv -T O -w n -r n -u 6 -S 256K -t raw -y ora_system datavg 30
$dbca ##创建实例名为test1的数据库
SQL>create user aidu profile default identified by aidutest default tablespace users temporary tablespace temp account unlock;
SQL>grant resource,connect to aidu;
SQL>conn aidu/aidutest
SQL>create table test02(id number(10,2),name varchar2(200),primary key(id));
有很多种手段来达到持续插入数据到测试表的目的,笔者是通过编写excel vba程序,每秒插入3-5条记录到表中。
部分代码如下:
Set tmpRs1 = goCn.OpenResultset("select
max(id) as id from test02", 3, 1)
If Not tmpRs1.EOF Then
MaxId = tmpRs1!id
Else
MaxId = 1
End If
tmpRs1.Close
Set tmpRs1 =
goCn.OpenResultset("select * from test02 where 1=2", 1, 3)
With tmpRs1
For iCount = 1 To 100000
.AddNew
!id = MaxId + iCount
!Name = "test"
.Update
Call delaytime(1) ####时间延迟程序1秒左右。
DoEvents
Next iCount
End With
tmpRs1.Close
Dscli>mkvolgrp –type scsimask –volume 8000-8002,8100-8102 test_vg
Dscli>lsvolgrp
Dscli>mkhostconnect –wwname 10000000c45d00 –volgrp V5 test_b_fcs0
Dscli>mkhostconnect –wwname 10000000c45d01 –volgrp V5 test_b_fcs1
上一篇:Flashcopy与数据库恢复的完美结合(4/20)
下一篇:Flashcopy与数据库恢复的完美结合(6/20)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/32980/viewspace-1050708/ ,如需转载,请注明出处,否则将追究法律责任。