版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、ORACLE 11G AIX HA -NBU 异机恢复过程恢复前提两台机器上NUB软件都已经安装好指定 Master SERVER 上的 /usr/openv/netbackup/bp.conf恢复源 FORCE_RESTORE_MEDIA_SERVER =生产库 hostname 测试库 hostname 从生产库恢复到测试库。操作目的节点POTLDB01数据库恢复到POTLDB02即在节点POTLDB01上运行,并在节点POTLDB01上备份,恢复到POTLDB02上节点POTLDB01机器检查过程1.检查环境变量检查rootPOTLDB01:/usr/openv/rmanscript#p
2、s -ef |grep smonroot 385272 4672740 10:40:22 pts/2 0:00 grep smonoracle 65548410 Jul 25- 0:06 ora_smon_portaldb机器名字rootPOTLDB01:/usr/openv/rmanscript#hostnamePOTLDB01rootPOTLDB01:/usr/openv/rmanscript#pwd -rman 脚本位置/usr/openv/rmanscriptrootPOTLDB01:/usr/openv/rmanscript#lshot_database_portaldb.sh ho
3、t_database_portaldb.sh.out hot_database_portaldb.sh_bak/etc/hosts 文件172.16.3.115172.16.3.116172.16.3.116172.16.3.1151.1.3.1151.1.3.116POTLDB01_bootPOTLDB02_bootPOTLDB02POTLDB01POTLDB01_stbyPOTLDB02_stby172.16.3.117172.16.7.142172.16.7.14310.11.233.124172.16.10.250POTLDB_svcSHYQ-PS-MV-SV03-POTLDB01-n
4、buSHYQ-PS-MV-SV03-POTLDB02-nbu 网关 IP nbumaster yqbf原备份脚本:$RMAN target $TARGET_CONNECT_STR nocatalog msglog $RMAN_LOG_FILE append select dbid from v$database;DBID603295704查看备份记录rootPOTLDB01:/usr/openv/netbackup/bin#./bplist -C SHYQ-PS-MV-SV03-POTLDB01-nbu -S nbumaster -t 4-R /c-603295704-20110728-02/
5、cntrl_21_1_757683165/c-603295704-20110728-01/al_bk_19_1_757682964/c-603295704-20110728-00/bk_17_1_757682762/bk_16_1_757682227/bk_603295704_11_1_757680386/cntrl_10_1_757680271/al_bk_603295704_8_1_757680166/bk_603295704_7_1_757680069/bk_603295704_6_1_757679974/cntrl_5_1_757679319/al_4_1_757679223/bk_3
6、_1_757679124/bk_2_1_757678789模拟数据库文件被删掉redo401.logredo402.logrootPOTLDB01:/oradata/datafiles/portaldb#pwd /oradata/datafiles/portaldb rootPOTLDB01:/oradata/datafiles/portaldb#ls archivescontrol02.ctl redo101.log redo201.log redo301.logredo501.log sysaux01.dbf temp01.dbf users01.dbf control01.ctlcont
7、rol03.ctlredo102.logredo202.log redo302.logredo502.logsystem01.dbfundotbs01.dbfrootPOTLDB01:/oradata/datafiles/portaldb#cd ./ rootPOTLDB01:/oradata/datafiles#ls portaldb rootPOTLDB01:/oradata/datafiles#ls portaldb rootPOTLDB01:/oradata/datafiles#mv portaldb portal_col rootPOTLDB01:/oradata/datafiles
8、#mkdir portaldb rootPOTLDB01:/oradata/datafiles#cd portaldb rootPOTLDB01:/oradata/datafiles/portaldb#ls rootPOTLDB01:/oradata/datafiles/portaldb#mkdir archives rootPOTLDB01:/oradata/datafiles/portaldb#chown R oracle:dba /oradata/datafiles异机恢复到POTLDB02过程rootPOTLDB02:/#lspvhdisk000c5c5666830b3farootvg
9、activehdisk100c5c5666c01952brootvgactivehdisk200c5c5366a63d937datavghdisk300c5c5366a65b992hbvgrootPOTLDB02:/#varyonvg datavgrootPOTLDB02:/#mount /dev/data_lv /oradatarootPOTLDB02:/#su - oracleoraclePOTLDB02:/home/oracle$sqlplus /nologconnSQL*Plus: Release 11.1.0.7.0 - Production on Thu Jul 28 13:32:
10、28 2011Copyright (c) 1982, 2008, Oracle. All rights reserved.SQL /as sysdba;Connected to an idle instance.SQLSQLSQLSQL exitDisconnectedoraclePOTLDB02:/home/oracle$rman target /Recovery Manager: Release 11.1.0.7.0 - Production on Thu Jul 28 13:32:49 2011Copyright (c) 1982, 2007, Oracle. All rights re
11、served.connected to target database (not started)RMAN startup nomount;Oracle instance startedTotal System Global AreaFixed SizeVariable SizeDatabase BuffersRedo Buffers43025158144 bytes2156784 bytes20669531920 bytes22280142848 bytes73326592 bytesRMAN set dbid=603295704 executing command: SET DBIDRMA
12、N restore controlfile from /oradata/rman_bak/controlfile/portal_bak_25_1_757683479;Starting restore at 28-JUL-11using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=2188 device type=DISKchannel ORA_DISK_1: restoring control filechannel OR
13、A_DISK_1: restore complete, elapsed time: 00:00:01output file name=/oradata/datafiles/portaldb/control01.ctloutput file name=/oradata/datafiles/portaldb/control02.ctloutput file name=/oradata/datafiles/portaldb/control03.ctlFinished restore at 28-JUL-11RMAN alter database mount;database mountedRMANR
14、MANRMAN run2 3allocatechannelt1typesbt_tapeparmsENV=(NB_ORA_SERVER=nbumaster,NB_ORA_CLIENT=SHYQ-PS-MV-SV03-POTLDB01-nbu);4allocatechannelt2typesbt_tapeparmsENV=(NB_ORA_SERVER=nbumaster,NB_ORA_CLIENT=SHYQ-PS-MV-SV03-POTLDB01-nbu);5 restore database;6 switch datafile all;7 recover database;8 sql alter
15、 database open resetlogs;9 release channel t1;10 release channel t2;11 allocated channel: t1channel t1: SID=2187 device type=SBT_TAPEchannel t1: Veritas NetBackup for Oracle - Release 6.5 (2009050106)allocated channel: t2channel t2: SID=2188 device type=SBT_TAPEchannel t2: Veritas NetBackup for Orac
16、le - Release 6.5 (2009050106)Starting restore at 28-JUL-11channel t1: starting datafile backup set restorechannel t1: specifying datafile(s) to restore from backup setchannel t1: restoring datafile 00001 to /oradata/datafiles/portaldb/system01.dbfchannel t1: restoring datafile 00002 to /oradata/data
17、files/portaldb/sysaux01.dbfchannel t1: restoring datafile 00003 to /oradata/datafiles/portaldb/undotbs01.dbfchannel t1: restoring datafile 00004 to /oradata/datafiles/portaldb/users01.dbfchannel t1: reading from backup piece bk_16_1_757682227channel t1: piece handle=bk_16_1_757682227 tag=HOT_DB_BK_L
18、EVEL0channel t1: restored backup piece 1channel t1: restore complete, elapsed time: 00:03:55Finished restore at 28-JUL-11Starting recover at 28-JUL-11starting media recoverychannel t1: starting archived log restore to default destinationchannel t1: restoring archived logarchived log thread=1 sequenc
19、e=11channel t1: restoring archived logarchived log thread=1 sequence=12channel t1: reading from backup piece al_bk_19_1_757682964channel t1: piece handle=al_bk_19_1_757682964 tag=TAG20110728T112924channel t1: restored backup piece 1channel t1: restore complete, elapsed time: 00:01:25archived log fil
20、e name=/oradata/datafiles/portaldb/archives/1_11_756554328.dbf thread=1 sequence=11 archived log file name=/oradata/datafiles/portaldb/archives/1_12_756554328.dbf thread=1 sequence=12 unable to find archived logarchived log thread=1 sequence=13released channel: t1released channel: t2RMAN-00571:=RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =RMAN-00571: =RMAN-03002: failure of recover command at 07/28/2011 13:44:17RMAN-06054: media recovery
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年巧家县社会工作协会招聘政府购买社会救助服务人员备考题库及参考答案详解1套
- 2026年中国国检测试控股集团股份有限公司招聘备考题库及一套完整答案详解
- 2026年中国市政工程中南设计研究总院有限公司海南分院招聘备考题库及答案详解参考
- 2026年国药控股青海有限公司招聘备考题库带答案详解
- 2026年南平市医疗类储备人才引进备考题库有答案详解
- 2026年吉林医药学院附属医院公开招聘工作人员备考题库及参考答案详解1套
- 2026年国投健康养老产业发展(广东)有限公司招聘备考题库有答案详解
- 2026年哈尔滨市平房区平房镇卫生院招聘医疗技术工作人员的备考题库完整参考答案详解
- 2026年师宗县融媒体中心公开招聘工作人员备考题库及答案详解一套
- 2026年成都交通投资集团有限公司招聘18人备考题库附答案详解
- 2023年安徽宣城中学高一自主招生物理试卷试题(含答案详解)
- 初中道德与法治课中提升学生政治认同素养的策略研究
- 活着,余华,下载
- 糖尿病的急救和护理
- 中医养生的吃野山参粉养生法
- 小学道德与法治-认识居民身份证教学课件设计
- 采购灭火器施工方案
- 小学生古诗词大赛备考题库(300题)
- 国家开放大学最新《监督学》形考任务(1-4)试题解析和答案
- GB/T 25085.3-2020道路车辆汽车电缆第3部分:交流30 V或直流60 V单芯铜导体电缆的尺寸和要求
- GB/T 242-2007金属管扩口试验方法
评论
0/150
提交评论