鱼C论坛

 找回密码
 立即注册
查看: 2968|回复: 0

[Oracle] 冷备份 dd不完全恢复

[复制链接]
发表于 2013-9-9 08:47:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
sys@OMREP> create table t(a int) tablespace users;


Table created.

sys@OMREP> @scott 10000
old   2: for i in 1..&1 loop
new   2: for i in 1..10000 loop

PL/SQL procedure successfully completed.

sys@OMREP> commit;

Commit complete.

sys@OMREP> shutdown immediate;

dd if=/u01/app/oracle/oradata/omrep/users01.dbf of=/u01/app/oracle/oradata/omrep/users01.bak

sys@OMREP> startup

sys@OMREP> Select rowid,dbms_rowid.rowid_relative_fno(rowid)rel_fno,dbms_rowid.rowid_block_number(rowid)blockno,dbms_rowid.rowid_row_number(rowid) rowno,a from t where a=9999;

ROWID                 REL_FNO    BLOCKNO      ROWNO          A
------------------ ---------- ---------- ---------- ----------
AAADceAAEAAAFQOABi          4      21518         98       9999

sys@OMREP> update t set a=8888 where a=9999;

1 row updated.


sys@OMREP> commit;

Commit complete.

sys@OMREP> shutdown immediate;

[oracle@localhost ~]$ dd if=/u01/app/oracle/oradata/omrep/users01.bak of=/u01/app/oracle/oradata/omrep/users01.dbf bs=8192 count=1 conv=notrunc skip=21518 seek=21518

sys@OMREP> startup

sys@OMREP> select * from t where a=9999;

         A
----------
      9999

居然没有出错,

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-25 01:20

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表