1.3 Flashcopy源盘为pprc目标盘,数据库时间点恢复(案例2)
1.3.1 案例全景描述
案例环境描述如下:
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@]1.3.2 案例环境准备
1.3.2.1 在DS8100_A上5000-5002,5100-5102等6个FBVOL 分配给主机A访问
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
1.3.2.2 主机A识别磁盘,创建卷组,建立测试数据库并在这个卷组上建立数据库实例test1
#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的数据库
1.3.2.3 在主机A数据库A上创建用户aidu和aidu.test02表
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));
1.3.2.4 持续插入数据到aidu.test02表
有很多种手段来达到持续插入数据到测试表的目的,笔者是通过编写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
1.1.1.1 将DS8100_B上8000-8002,8100-8102等6个FBVOL 分配给主机B访问
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博客 ” ,链接:http://blog.itpub.net/32980/viewspace-1050708/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/32980/viewspace-1050708/