Flashcopy与数据库恢复的完美结合(5/20)

1.3 Flashcopy源盘为pprc目标盘,数据库时间点恢复(案例2)

1.3.1 案例全景描述

案例环境描述如下:

DS8100_B6lun5000500251005102 在本例中担任了两个角色:PPRCTarget端和Flashcopy的源端。

DS8100_A6lun((5000500251005102)建立PPRC关系对,复制到DS8100_B对应的6lun((5000500251005102

DS8100_B6lun((5000500251005102)建立Flashcopy关系对,复制到DS8100_B对应的6lun((8000800281008102

存在两层的复制关系:

DS8100_Aà(PPRC)àDS8100_Bà(FLASHCOPY)àDS8100_B

[@more@]

1.3.2 案例环境准备

1.3.2.1 DS8100_A5000-5002,5100-51026FBVOL 分配给主机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--&gttestvg ..

#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上创建用户aiduaidu.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程序,每秒插入35条记录到表中。

部分代码如下:

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_B8000-8002,8100-81026FBVOL 分配给主机B访问

Dscli>mkvolgrp –type scsimask –volume 8000-80028100-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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值