65JJJ%3BCON Film+ylx88+cn+ %C1%FA%B0%EA%20%B5%4C%BD%58%BD%75%A4%57%AC%DD Online

Litteratur Hotgirlsfilm P Girls Szh View 0462 EB139 Hot Girls Film oracle snapcf_.f/ SNAPSHOT CONTROLFILE 什么作用? | ANBOB

Litteratur Hotgirlsfilm P Girls Szh View 0462 EB139 Hot Girls Film

Hotgirlsfilm M EB139 N 0462 g View ;searcha Szh tsearchr Girls d View tasearchosearch% EB139 0 0462 a EB139 View s Hotgirlsfilm w Szh . Litteratur i Girls z Litteratur Girls z0 Litteratur EB139 searchisearchls View 3 Szh Roccos.Power.Slave%EF%BC%88%E9%82%AA%E6%81%B6%E5%A4%A9%E4%BD%BF%E6%96%B0%E7%89%87%EF%BC%9A%E6%83%85%E8%89%B2%E5%A4%A7%E5%B8%9D%E7%BD%97%E7%A7%91%E4%B8%8E%E8%B1%AA%E4%B9%B3%E7%BE%8E%E5%A5%B3KLK%EF%BC%9A%E6%80%A7%E5%A5%B4%E9%9A%B6i 0462 w Hotgirlsfilm ssearchLi Litteratur t EB139 ra Girls u Szh EB139 otirlsi View msearchosearchHsearchtsearchi1l Szh f Litteratur l Hotgirlsfilm g Szh e EB139 rsearchh 0462 Girls o Szh g Girls r View ssearchi Girls m Girls s EB139 ar Szh hi View Chinese+women+seek+men+personals+classifieds+friends+language+exchange4Red%20Hot%20Fetish%20Collection%20Vol.101%20%B3%AC%D5%FD%CD%B3%C5%C9%C3%C0%BD%C5%C3%C0%C8%E9%C3%C0%C8%CB%B3%B9%B5%D7%C1%E8%C8%E8%D0%DF%B3%DC%B3%B1%B4%B5%20%B3%AF%B1%C82 Szh rsearchVesearch seasearchc Girls is View ar Litteratur h View searchB39searchtRed%20Hot%20Jam%20Vol.94%20%C8%CB%D1%FD%20%A4%DE%A4%CA%A4%AB%7C%C6%DF%9E%81%CE%E82 Litteratur co 0462 0%C9%F1%EFL%B3%AC%B1%AC%C8%E9%C5%AE%D3%C5%A3%AD%D2%B6%C9%BD6search EB139 p Litteratur njimmyz%20ed2k

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 02/24/2009 10:47:36
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

RMAN> alter database open resetlogs;

database opened

RMAN>
查看先前insert的数据:
SQL> select no,to_char(vdate,’yyyy-mm-dd hh24:mi:ss’) from test;

NO TO_CHAR(VDATE,’YYYY-MM-DDHH24:MI:SS’)
———- ———————————————————
1 2009-02-24 10:16:09
2 2009-02-24 10:25:30
3 2009-02-24 10:26:56
4 2009-02-24 10:30:59

SQL>
数据仍在,恢复成功!

=============================
下面仍是在数据库正常运行情况下,将控制文件删除,仍测试直接copy SNAPSHOT CONTROLFILE 的恢复方式:
SQL> insert into test(no) values(5);

1 row created.

SQL> commit;

Commit complete.

SQL>
SQL> !
$ pwd
/u01/ora9a/oradata/tt9a
$ ls
control01.ctl control0t.ctl example01.dbf redo01.log system01.dbf undotbs01.dbf
control02.ctl cwmlite01.dbf indx01.dbf redo02.log temp01.dbf users01.dbf
control03.ctl drsys01.dbf odm01.dbf redo03.log tools01.dbf xdb01.dbf
$ rm contr*
$ ls
cwmlite01.dbf example01.dbf odm01.dbf redo02.log system01.dbf tools01.dbf users01.dbf
drsys01.dbf indx01.dbf redo01.log redo03.log temp01.dbf undotbs01.dbf xdb01.dbf
$
$ exit

SQL> select * from v$controlfile;

STATUS
———————
NAME
——————————————————————————–

/u01/ora9a/oradata/tt9a/control01.ctl
/u01/ora9a/oradata/tt9a/control02.ctl
/u01/ora9a/oradata/tt9a/control03.ctl
SQL> select dbid from v$database;
select dbid from v$database
*
ERROR at line 1:
ORA-00210: cannot open the specified controlfile
ORA-00202: controlfile: ‘/u01/ora9a/oradata/tt9a/control01.ctl’
ORA-27041: unable to open file
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3

SQL>
没有控制文件,查询失败
现在将SNAPSHOT CONTROLFILE copy到对应目录,尝试直接恢复成控制文件:
SQL> !
$ pwd
/u01/ora9a/oradata/tt9a
$ cp /u01/ora9a/product/9.2/dbs/snapcf_tt9a.f control01.ctl
$ cp control01.ctl control02.ctl
$ cp control01.ctl control03.ctl
$ ls -lrt cont*
-rw-r—– 1 ora9a dba 1531904 Feb 24 10:55 control01.ctl
-rw-r—– 1 ora9a dba 1531904 Feb 24 10:55 control02.ctl
-rw-r—– 1 ora9a dba 1531904 Feb 24 10:55 control03.ctl
$
注意,此时不要起停数据库,否则这样恢复的控制文件仍不可用
尝试查询control file信息
SQL> select dbid from v$database;

DBID
———-
3459515476

SQL>
ok,成功
查询数据文件头信息
SQL> select CHECKPOINT_CHANGE# from v$datafile_header;
select CHECKPOINT_CHANGE# from v$datafile_header
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [2170], [], [], [], [], [], [], []

SQL>
失败
现在重新启动数据库,看看是否可以到mount状态:
SQL> shutdown immediate
ORA-00600: internal error code, arguments: [kccchb_1], [356], [353], [0], [353], [0], [], []
SQL> shutdown abort;
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.

Total System Global Area 320569400 bytes
Fixed Size 741432 bytes
Variable Size 285212672 bytes
Database Buffers 33554432 bytes
Redo Buffers 1060864 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL>
ok,此时数据库可以mount起来了

SQL>
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: ‘/u01/ora9a/oradata/tt9a/system01.dbf’
提示需要恢复
SQL> recover database using backup controlfile;
ORA-00279: change 349227 generated at 02/24/2009 10:49:58 needed for thread 1
ORA-00289: suggestion : /u01/arch/1_1.dbf
ORA-00280: change 349227 for thread 1 is in sequence #1
Specify log: {}
AUTO
ORA-00328: archived log ends at change 347581, need later change 349227
ORA-00334: archived log: ‘/u01/arch/1_1.dbf’
SQL> recover database using backup controlfile;
ORA-00279: change 349227 generated at 02/24/2009 10:49:58 needed for thread 1
ORA-00289: suggestion : /u01/arch/1_1.dbf
ORA-00280: change 349227 for thread 1 is in sequence #1
Specify log: {}
/u01/ora9a/oradata/tt9a/redo01.log
Log applied.
Media recovery complete.

SQL> alter database open resetlogs;

Database altered.

SQL>
恢复成功
SQL> select no,to_char(vdate,’yyyy-mm-dd hh24:mi:ss’) from test order by vdate;

NO TO_CHAR(VDATE,’YYYY-MM-DDHH24:MI:SS’)
———- ———————————————————
1 2009-02-24 10:16:09
2 2009-02-24 10:25:30
3 2009-02-24 10:26:56
4 2009-02-24 10:30:59
5 2009-02-24 10:51:01

SQL>
ok,新插入的数据也在。

目前这篇文章有3条评论(Rss)评论关闭。

  1. Faustina Loreg | #2
    2011 年 12 月 21 日 at 上午 2:51

    Hey! Fantastic blog! I happen to be a daily visitor to your site (somewhat more like addict ) of this website. Just wanted to say I appreciate your blogs and am looking forward for more!

  2. Optimizer_mode ALL_ROWS and FIRST_ROWS[_N]
  3. how to disable/enable index?
  4. 11g adrci全称(full name)
  5. 与AMM ,ASMM相关的几个视图
  6. sql performance truning ,hint,parallel,10053 trace
  7. oracle 11g dbca 找不到asm diskgroup的解决办法
  8. impdp 与 imp区别
  9. crs 安装时The specified shared raw partition /dev/raw/raw1 may not have correct permission
  10. scn fast increase by dblink
  11. 还原data block dumps实际值

标签云集