免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 920 | 回复: 0
打印 上一主题 下一主题

Oracle备份&RMAN从零开始--fuzzy backup [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-22 08:54 |只看该作者 |倒序浏览
A fuzzy backup is a secondary (or backup) copy of data file(s) or directories that were in one state when the backup started, but in a different state by the time the backup completed. This may result in the backup copy being unusable because of the data inconsistencies. Although the backup process might have seemed successful, the resultant copies of the files or directories could be useless because a restore would yield inconsistent and unusable data.
模糊备份,是指对一个数据文件的拷贝。备份开始和结束是处于不同的状态,由于数据处于不一致状态可能导致文件不可用。虽然备份看起来可能是成功的。但是这样的备份可能导致不一致或者完全不可用的数据。
 
SQL> archive log list;
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     73
Current log sequence           75
SQL> conn test/test
Connected.
数据库运行过程中进行的拷贝。
SQL> !cp /oradata_2/oradata/tp_test.dbf tp_test.dbf.bak
进行创建表等操作
SQL> create table after_bak(aa varchar2(20));
Table created.
SQL> insert into after_bak values('test');
1 row created.
SQL> commit;
Commit complete.
关闭数据库,并恢复之前的备份后,重新打开数据库。
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> !cp ~/tp_test.dbf.bak /oradata_2/oradata/tp_test.dbf
SQL> startup
ORACLE instance started.
Total System Global Area  285212672 bytes
Fixed Size                  1218968 bytes
Variable Size              75499112 bytes
Database Buffers          201326592 bytes
Redo Buffers                7168000 bytes
Database mounted.
ORA-01113: file 4 needs media recovery
ORA-01110: data file 4: '/oradata_2/oradata/tp_test.dbf'
注意,这里提示我们,第四个文件需要介质恢复。这个正是我们拷贝的数据文件tp_test.dbf.

SQL> recover
Media recovery complete.

SQL> alter database open;
Database altered.
SQL> select * from after_bak;
AA
--------------------
alert_orcl.log 内容:
WARNING! Recovering data file 4 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
 
 
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP