当前位置:  数据库>oracle

Oracle特殊恢复-BBED修改某个数据文件头

    来源: 互联网  发布时间:2017-06-25

    本文导语: Oracle数据文件头中的scn要与控制文件中的scn一致,数据库才可以open,在open过程中我们可以通过bbed来修改某个数据文件头的scn,来欺骗oracle,来open库。 1、环境如下使用Oracle 11gR2进行测试,具体版本为11.2.0.4SYS@linuxidc SQL>select file...

Oracle数据文件头中的scn要与控制文件中的scn一致,数据库才可以open,在open过程中我们可以通过bbed来修改某个数据文件头的scn,来欺骗oracle,来open库。

1、环境如下
使用Oracle 11gR2进行测试,具体版本为11.2.0.4
SYS@linuxidc SQL>select file#,name,checkpoint_change#,checkpoint_time from v$datafile;
 
    FILE# NAME                                    CHECKPOINT_CHANGE# CHECKPOINT_TIME
---------- ---------------------------------------- ------------------ -------------------
        1 /dbdata/oradata/linuxidc/system01.dbf                  1233066 2016-11-10 11:23:44
        2 /dbdata/oradata/linuxidc/sysaux01.dbf                  1233066 2016-11-10 11:23:44
        3 /dbdata/oradata/linuxidc/undotbs01.dbf                1233066 2016-11-10 11:23:44
        4 /dbdata/oradata/linuxidc/users01.dbf                  1233066 2016-11-10 11:23:44
        5 /dbdata/oradata/linuxidc/moe01.dbf                    1233066 2016-11-10 11:23:44

2、模拟某个数据文件在问题
shutdown immediate数据库,然后拷贝moe01.dbf这个数据文件,然后打开数据库,做日志切换,然后shutdown immediate,再把之前的拷贝替换现在的moe01.dbf数据文件
SYS@linuxidc SQL>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
 
[oracle@tstdb-25-220 linuxidc]$ cp moe01.dbf moe01.dbf.bak
[oracle@tstdb-25-220 linuxidc]$ ll
总用量 3872076
-rw-r-----. 1 oracle oinstall    9748480 11月 10 09:48 control01.ctl
-rw-r-----. 1 oracle oinstall    9748480 11月 10 09:48 control02.ctl
-rw-r-----. 1 oracle oinstall 1073750016 11月 10 09:48 moe01.dbf
-rw-r-----. 1 oracle oinstall 1073750016 11月 10 11:23 moe01.dbf.bak
-rw-r-----. 1 oracle oinstall  52429312 11月  9 13:13 redo01.log
-rw-r-----. 1 oracle oinstall  52429312 11月  9 22:00 redo02.log
-rw-r-----. 1 oracle oinstall  52429312 11月 10 09:48 redo03.log
-rw-r-----. 1 oracle oinstall  587210752 11月 10 09:48 sysaux01.dbf
-rw-r-----. 1 oracle oinstall  807411712 11月 10 09:48 system01.dbf
-rw-r-----. 1 oracle oinstall  30416896 11月  9 22:00 temp01.dbf
-rw-r-----. 1 oracle oinstall  131080192 11月 10 09:48 undotbs01.dbf
-rw-r-----. 1 oracle oinstall  111419392 11月 10 09:48 users01.dbf
 
SYS@linuxidc SQL>startup
ORACLE instance started.
 
Total System Global Area 2455228416 bytes
Fixed Size                  2255712 bytes
Variable Size            620758176 bytes
Database Buffers        1811939328 bytes
Redo Buffers              20275200 bytes
Database mounted.
Database opened.
 
SYS@linuxidc SQL>alter system switch logfile;
 
System altered.
 
SYS@linuxidc SQL>alter system switch logfile;
 
System altered.
 
SYS@linuxidc SQL>alter system switch logfile;
 
System altered.
 
SYS@linuxidc SQL>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
 
[oracle@tstdb-25-220 linuxidc]$ cp moe01.dbf moe01.dbf.bak.f
[oracle@tstdb-25-220 linuxidc]$ cp moe01.dbf.bak moe01.dbf
 
启动数据库报错
SYS@linuxidc SQL>startup
ORACLE instance started.
 
Total System Global Area 2455228416 bytes
Fixed Size                  2255712 bytes
Variable Size            620758176 bytes
Database Buffers        1811939328 bytes
Redo Buffers              20275200 bytes
Database mounted.
ORA-01113: file 5 needs media recovery
ORA-01110: data file 5: '/dbdata/oradata/linuxidc/moe01.dbf'
 
SYS@linuxidc SQL>recover datafile 5;
ORA-00279: change 1233063 generated at 11/10/2016 09:48:02 needed for thread 1
ORA-00289: suggestion : /apps/oracle/11.2.0/db_1/dbs/arch1_24_925478204.dbf
ORA-00280: change 1233063 for thread 1 is in sequence #24
 
 
Specify log: {=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log '/apps/oracle/11.2.0/db_1/dbs/arch1_24_925478204.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
 
 
ORA-00308: cannot open archived log '/apps/oracle/11.2.0/db_1/dbs/arch1_24_925478204.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3

3、场景模拟出来了,下面是修复过程
使用BBED,将文件头的SCN等关键信息修改到与控制文件control file相匹配即可
SYS@linuxidc SQL>select file#, CHECKPOINT_CHANGE# from v$datafile;
 
    FILE# CHECKPOINT_CHANGE#
---------- ------------------
        1            1233692
        2            1233692
        3            1233692
        4            1233692
        5            1233692
 
SYS@linuxidc SQL>select CHECKPOINT_CHANGE# from v$database;
 
CHECKPOINT_CHANGE#
------------------
          1233692
 
SYS@linuxidc SQL>select file#, recover, fuzzy, CHECKPOINT_CHANGE# from v$datafile_header;
 
    FILE# REC FUZ CHECKPOINT_CHANGE#
---------- --- --- ------------------
        1 NO  NO            1233692
        2 NO  NO            1233692
        3 NO  NO            1233692
        4 NO  NO            1233692
        5 YES NO            1233063

控制文件中datafile5的scn是:1233692,而数据文件头中的scn是:1233063
使用bbed将datafile5的数据文件头对应的SCN修改为与其他文件相同,我们先看一下users01.dbf这个文件的文件头
BBED> set filename '/dbdata/oradata/linuxidc/users01.dbf'
        FILENAME        /dbdata/oradata/linuxidc/users01.dbf
 
BBED> set block 1
        BLOCK#          1
 
BBED> map
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                                    Dba:0x00000000
------------------------------------------------------------
 Data File Header
 
 struct kcvfh, 860 bytes                    @0       
 
 ub4 tailchk                                @8188

因为我们要修改数据文件头,因此我们需要关注四个偏移量offset点,分别为484、492、140和148
1、datafile 的file header 存储在第一个block里
2、Oracle considers four attributes of this data structure when determining if a datafile is sync with the other data files of the database:(不同oracle版本offset可能不同)
(1)kscnbas (at offset 484) – SCN of last change to the datafile.
(2)kcvcptim (at offset 492) -Time of the last change to the datafile.
(3)kcvfhcpc (at offset 140) – Checkpoint count.
(4)kcvfhccc (at offset 148) – Unknown, but is always 1 less than thecheckpoint point count.
Oracle有4个属性来判断datafile 是否和其他的datafile 一致,如果都一致,可以正常操作,如果不一致,那么会报ORA-01113错误
下面我们看下这几个offset
BBED> set offset 484
        OFFSET          484
 
BBED> dump
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                Offsets:  484 to  995          Dba:0x00000000
------------------------------------------------------------------------
 1cd31200 00000000 bd384937 01000000 1b000000 30010000 100051f2 02000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 0d000d00 0d000100 00000000 00000000 00000000 02000001 03000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> set offset 492
        OFFSET          492
 
BBED> dump
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                Offsets:  492 to 1003          Dba:0x00000000
------------------------------------------------------------------------
 bd384937 01000000 1b000000 30010000 100051f2 02000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 0d000d00 0d000100 
 00000000 00000000 00000000 02000001 03000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> set offset 140
        OFFSET          140
 
BBED> dump
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                Offsets:  140 to  651          Dba:0x00000000
------------------------------------------------------------------------
 78000000 14ff4737 77000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 04000000 05005553 45525300 00000000 00000000 00000000 00000000 00000000 
 00000000 04000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 7ac92131 01000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 1cd31200 00000000 
 bd384937 01000000 1b000000 30010000 100051f2 02000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 0d000d00 0d000100 
 
 
 
BBED> set offset 148
        OFFSET          148
 
BBED> dump
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                Offsets:  148 to  659          Dba:0x00000000
------------------------------------------------------------------------
 77000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 04000000 05005553 
 45525300 00000000 00000000 00000000 00000000 00000000 00000000 04000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 7ac92131 01000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 1cd31200 00000000 bd384937 01000000 
 1b000000 30010000 100051f2 02000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 0d000d00 0d000100 00000000 00000000 
 
 

其中,位于484和488偏移量的是数据文件对应的SCN编号。在Oracle内部,SCN是使用wrap*4*1024*1024*1024+base来进行标示的。通常我们看到的数据库wrap都是0。位于492偏移量的是最后一次检查点对应的时间信息。位于140和148偏移量的是检查点次数。这些信息都是会由于时间推动和检查点动作引起变化,我们严格情况下,需要保证文件头块的信息和控制文件信息一致。


另外一点,由于Linux是Little字节系统,要关注写入时候的格式问题。最简单的方式是dump一下偏移量,看看是怎么保存的。
1234567 BBED> dump
 File: /dbdata/oradata/linuxidc/users01.dbf (0)
 Block: 1                Offsets:  484 to  995          Dba:0x00000000
------------------------------------------------------------------------
 1cd31200 00000000 bd384937 01000000 1b000000 30010000 100051f2 02000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

然后我们修改moe01.dbf的文件头(修改这几个offset,我这里只修改了484、492就可以open库了)
BBED> set filename '/dbdata/oradata/linuxidc/moe01.dbf'
        FILENAME        /dbdata/oradata/linuxidc/moe01.dbf
 
BBED> set block 1
        BLOCK#          1
 
BBED> set mode edit
        MODE            Edit
 
BBED> set offset 484
        OFFSET          484
 
BBED> dump
 File: /dbdata/oradata/linuxidc/moe01.dbf (0)
 Block: 1                Offsets:  484 to  995          Dba:0x00000000
------------------------------------------------------------------------
 a7d01200 00000000 52204937 01000000 18000000 4d8d0000 100051f2 02000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 0d000d00 0d000100 00000000 00000000 00000000 02004001 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> m /x 1cd31200 484
Warning: contents of previous BIFILE will be lost. Proceed? (Y/N) y
 File: /dbdata/oradata/linuxidc/moe01.dbf (0)
 Block: 1                Offsets:  484 to  995          Dba:0x00000000
------------------------------------------------------------------------
 1cd31200 00000000 52204937 01000000 18000000 4d8d0000 100051f2 02000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 0d000d00 0d000100 00000000 00000000 00000000 02004001 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> m /x bd384937 492
BBED-00209: invalid number (bd384937)
 
 
BBED> m /x bd38 492
 File: /dbdata/oradata/linuxidc/moe01.dbf (0)
 Block: 1                Offsets:  492 to 1003          Dba:0x00000000
------------------------------------------------------------------------
 bd384937 01000000 18000000 4d8d0000 100051f2 02000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 0d000d00 0d000100 
 00000000 00000000 00000000 02004001 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> m /x 4937 494
 File: /dbdata/oradata/linuxidc/moe01.dbf (0)
 Block: 1                Offsets:  494 to 1005          Dba:0x00000000
------------------------------------------------------------------------
 49370100 00001800 00004d8d 00001000 51f20200 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000d00 0d000d00 01000000 
 00000000 00000000 00000200 40010000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
 
 
 
BBED> sum apply
Check value for File 0, Block 1:
current = 0x1683, required = 0x1683
 
BBED> verify
DBVERIFY - Verification starting
FILE = /dbdata/oradata/linuxidc/moe01.dbf
BLOCK = 1
 
 
DBVERIFY - Verification complete
 
Total Blocks Examined        : 1
Total Blocks Processed (Data) : 0
Total Blocks Failing  (Data) : 0
Total Blocks Processed (Index): 0
Total Blocks Failing  (Index): 0
Total Blocks Empty            : 0
Total Blocks Marked Corrupt  : 0
Total Blocks Influx          : 0
Message 531 not found;  product=RDBMS; facility=BBED

这时我们再次查看各个数据文件头的scn,发现scn一致了
123456789 SYS@linuxidc SQL>select file#, recover, fuzzy, CHECKPOINT_CHANGE# from v$datafile_header;
 
    FILE# REC FUZ CHECKPOINT_CHANGE#
---------- --- --- ------------------
        1 NO  NO            1233692
        2 NO  NO            1233692
        3 NO  NO            1233692
        4 NO  NO            1233692
        5 YES NO            1233692

试着open库
SYS@linuxidc SQL>alter database open
  2  ;
alter database open
*
ERROR at line 1:
ORA-01113: file 5 needs media recovery
ORA-01110: data file 5: '/dbdata/oradata/linuxidc/moe01.dbf'
 
 
SYS@linuxidc SQL>recover datafile 5;
Media recovery complete.
SYS@linuxidc SQL>alter database open;
 
Database altered.

看一下alert文件
ALTER DATABASE RECOVER  datafile 5 
Media Recovery Start
Serial Media Recovery started
Media Recovery Complete (linuxidc)
Completed: ALTER DATABASE RECOVER  datafile 5 
Thu Nov 10 13:47:24 2016
alter database open
Thu Nov 10 13:47:25 2016
Thread 1 opened at log sequence 27
  Current log# 3 seq# 27 mem# 0: /dbdata/oradata/linuxidc/redo03.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Thu Nov 10 13:47:25 2016
SMON: enabling cache recovery
[20910] Successfully onlined Undo Tablespace 2.
Undo initialization finished serial:0 start:3710149144 end:3710149224 diff:80 (0 seconds)
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is AL32UTF8
No Resource Manager plan active
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
Thu Nov 10 13:47:25 2016
QMNC started with pid=20, OS id=21409 
Completed: alter database open

在本次恢复过程中,recover是可行的,原因是该库并没做过resetlog,如果datafile是在 resetlog之前就已经offline的数据文件,那recover是不可行的。


    
 
 

您可能感兴趣的文章:

  • Oracle数据库恢复后心得
  • 关于系统重装后Oracle数据库完全恢复的解决办法
  • oracle drop table(表)数据恢复方法
  • Oracle数据库备份和恢复工具 RMan
  • oracle备份恢复的具体方法
  • oracle中误删除表后恢复语句(FLASHBACK)
  • oracle冷备份恢复和oracle异机恢复使用方法
  • 在Oracle 10gR2中设定指定的恢复点实现轻松闪回
  • Oracle重做日志文件损坏或丢失后的恢复
  • Oracle11g备份和恢复功能的提高
  • 实战Oracle数据库备份与恢复
  • Oracle数据库冷备份的异地恢复
  • oracle下实现恢复一个丢失的数据文件的代码
  • 详解通过Backup Exec来实施Oracle灾难恢复
  • Oracle的恢复管理器及DBMS_JOB包分析
  • Oracle数据库文件恢复以及备份思路
  • Oracle数据库备份恢复最佳实践
  • oracle如何恢复被覆盖的存储过程
  • rman恢复方案和oracle异机恢复
  • oracle数据库创建备份与恢复脚本整理
  • 修改oracle用户主目录
  • 修改oracle用户的.bash_profile之后无法正常登陆
  • 修改Oracle默认用户密码有效期时间
  • Linux下修改Oracle用户密码
  • 查询与修改Oracle字符集
  • ORACLE 修改表结构 之ALTER CONSTAINTS的使用
  • 计算机名称修改后Oracle不能正常启动问题分析及解决
  • Oracle中在pl/sql developer修改表的2种方法
  • oracle修改scott密码与解锁的方法详解
  • Oracle10g 控制台启动端口修改
  • Linux操作系统下Oracle数据库多实例启动方式及修改内存
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Linux平台下Oracle 密码文件重建
  • Oracle数据库访问参数文件的顺序
  • Oracle 对数据文件大小的限制
  • Oracle移动数据文件到新分区步骤分析
  • 在jsp文件中怎么设置oracle的路径:很简单的,只是因为我不会;
  • Oracle的spfile参数文件
  • linux下通过对文件读取方式查询oracle的版本信息
  • 求高手指点shell导入.dat文件到ORACLE数据库
  • jsp文件连接oracle失败
  • linux 安装 oracle 运行./runinstall 提示没有这个文件
  • oracle删除文件后数据库启动不了的处理方法
  • 请教:为什么删除不掉?我用超级用户删除某一文件夹rm -R oracle失败。
  • Oracle控制文件多元化处理
  • Oracle数据库逻辑备份的SH文件
  • 利用多个转储文件导出大量Oracle数据
  • 50分的题:如何给oracle减肥?在linux多目录的环境下查找体积最大的单个文件??
  • 用oracle pl/sql 从A unix机器,去读取B unix机器上的一个文件,怎么实现?
  • 读取oracle数据库表写文件慢
  • 如何向oracle中写入一个大文件?谢谢!
  • jsp文件上传smartupload到oracle数据库中没有longblob的数据类型如何处理的?
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3