分享
 
 
 

Oracle Rman/tivoli-TDP/下数据恢复到节点

王朝oracle·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

AIX平台:4.3.3

Oracle版本: 8.0.5

从节点RS/6000 h50b备份的数据现恢复到节点43p-db。

43p-db:

一、把43p-db的tdpo_node文件的TDPO_NODE改为 h50b的node name

# vi /usr/tivoli/tsm/client/oracle/bin/tdpo.opt

TDPO_NODE tdp_h50b

# cd /usr/tivoli/tsm/client/oracle/bin/

# tdpoconf passWord

************************************************************

* Tivoli Data Protection for Oracle Utility *

*Password file initialization/update program*

* ROOT privilege needed to update value *

*************************************************************

Please enter current password:

Please enter new password:

Please reenter new password for verification:

ANU0260I Password sUCcessfully changed.

二、Copy h50B的configora8_sb.ora initora8_sb.ora和口令文件到43p-db相应目录。所有相应的目录都要预先创建好

三、43p-db的oracle为Startup nomount状态

在H50b:

恢复控制文件

$ eXPort ORACLE_SID=ora8_sb

$ rman target system/passwd1@43p-db rcvcat rman/rman@forjy

Recovery Manager: Release 8.0.5.2.1 - Production

RMAN-06006: connected to target database: ora8_sb (not mounted)

RMAN-06008: connected to recovery catalog database

RMAN run {

allocate channel t1 type 'sBT_tape' parms

'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin/tdpo.opt)';

restore controlfile to '/sbfs/ctl01sb.ctl';

release channel t1;

allocate channel d1 type disk;

replicate controlfile from '/sbfs/ctl01sb.ctl';

sql 'alter database mount';

release channel d1;

}

RMAN-03022: compiling command: allocate

RMAN-03023: executing command: allocate

RMAN-08030: allocated channel: t1

RMAN-08500: channel t1: sid=12 devtype=SBT_TAPE

RMAN-03022: compiling command: restore

RMAN-03022: compiling command: IRESTORE

RMAN-03023: executing command: IRESTORE

RMAN-08016: channel t1: starting datafile backupset restore

RMAN-08502: set_count=0 set_stamp=0

RMAN-08021: channel t1: restoring controlfile

RMAN-08505: output filename=/sbfs/ctl01sb.ctl

RMAN-08023: channel t1: restored backup piece 1

RMAN-08511: piece handle=ORA8_SB_full_497711454_17_1 params=NULL

RMAN-08024: channel t1: restore complete

RMAN-03022: compiling command: release

RMAN-03023: executing command: release

RMAN-08031: released channel: t1

RMAN-03022: compiling command: allocate

RMAN-03023: executing command: allocate

RMAN-08030: allocated channel: d1

RMAN-08500: channel d1: sid=12 devtype=DISK

RMAN-03022: compiling command: replicate

RMAN-03023: executing command: replicate

RMAN-08058: replicating controlfile

RMAN-08506: input filename=/sbfs/ctl01sb.ctl

RMAN-08505: output filename=/sbfs/sbdata1/ctl02sb.ctl

RMAN-08505: output filename=/sbfs/sbdata2/ctl03sb.ctl

RMAN-03022: compiling command: sql

RMAN-06162: sql statement: alter database mount

RMAN-03023: executing command: sql

RMAN-03022: compiling command: release

RMAN-03023: executing command: release

RMAN-08031: released channel: d1

RMANexit

Recovery Manager complete.

四、获取最近ARCHIVED REDO LOGS线程中最小的SCN号,进行不完全恢复

在h50b上

SQL SELECT min(scn) FROM (SELECT max(next_change#) scn

FROM v$archived_log GROUP BY thread#);

MIN(SCN)

----------

99561745

五、恢复数据文件

$rman target system/passwd1@43p-db rcvcat rman/rman@forjy

Recovery Manager: Release 8.0.5.2.1 - Production

RMAN-06005: connected to target database: ORA8_SB

RMAN-06008: connected to recovery catalog database

RMAN run {

set until scn= 99561745;

allocate channel t1 type 'sbt_tape' parms

'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin/tdpo.opt)';

restore database;

recover database;

release channel t1;

sql "alter database open resetlogs";

}

RMAN-03022: compiling command: set

RMAN-03022: compiling command: allocate

RMAN-03023: executing command: allocate

RMAN-08030: allocated channel: t1

RMAN-08500: channel t1: sid=10 devtype=SBT_TAPE

RMAN-03022: compiling command: restore

RMAN-03022: compiling command: IRESTORE

RMAN-03023: executing command: IRESTORE

RMAN-08016: channel t1: starting datafile backupset restore

RMAN-08502: set_count=17 set_stamp=497711454

RMAN-08019: channel t1: restoring datafile 1

RMAN-08509: destination for restore of datafile 1:

/sbfs/system01sb.dbf

RMAN-08019: channel t1: restoring datafile 2

RMAN-08509: destination for restore of datafile 2:

/sbfs/rbs01sb.dbf

RMAN-08019: channel t1: restoring datafile 3

RMAN-08509: destination for restore of datafile 3:

/sbfs/temp01sb.dbf

RMAN-08019: channel t1: restoring datafile 4

RMAN-08509: destination for restore of datafile 4:

/sbfs/tools01sb.dbf

RMAN-08019: channel t1: restoring datafile 5

RMAN-08509: destination for restore of datafile 5:

/sbfs/users01sb.dbf

RMAN-08019: channel t1: restoring datafile 6

RMAN-08509: destination for restore of datafile 6:

/sbfs/sb01.dbf

RMAN-08019: channel t1: restoring datafile 7

RMAN-08509: destination for restore of datafile 7:

/sbfs/isb01.dbf

RMAN-08019: channel t1: restoring datafile 8

RMAN-08509: destination for restore of datafile 8:

/sbfs/rman/rman_sc.dbf

RMAN-08023: channel t1: restored backup piece 1

RMAN-08511: piece handle=ORA8_SB_full_497711454_17_1 params=NULL

RMAN-08024: channel t1: restore complete

RMAN-03023: executing command: partial resync

RMAN-08003: starting partial resync of recovery catalog

RMAN-08005: partial resync complete

RMAN-03022: compiling command: recover

RMAN-03022: compiling command: recover(1)

RMAN-03023: executing command: partial resync

RMAN-03022: compiling command: recover(2)

RMAN-03022: compiling command: recover(3)

RMAN-03023: executing command: recover(3)

RMAN-08054: starting media recovery

RMAN-08060: unable to find archivelog

RMAN-08510: archivelog thread=1 sequence=12

RMAN-03022: compiling command: recover(4)

RMAN-03023: executing command: recover(4)

RMAN-08017:

channel t1: starting archivelog restore to default destination

RMAN-08022: channel t1: restoring archivelog

RMAN-08510: archivelog thread=1 sequence=12

RMAN-08023: channel t1: restored backup piece 1

RMAN-08511: piece handle=ORA8_SB_arch_497711757_18_1 params=NULL

RMAN-08024: channel t1: restore complete

RMAN-08515: archivelog

filename=/user/oracle/app/oracle/product/8.0.5/dbs/arch1_12.dbf

thread=1 sequence=12

RMAN-08055: media recovery complete

RMAN-03022: compiling command: release

RMAN-03023: executing command: release

RMAN-08031: released channel: t1

RMAN-03022: compiling command: sql

RMAN-06162: sql statement: alter database open resetlogs

RMAN-03023: executing command: sql

RMAN

right"(出处:清风软件下载学院)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有