Subject: Archive log restore using RMAN for Logminer
Author: Edwin Weele van der, Netherlands
Date: Nov 29, 2006, 2407 days ago
Os info: Windows 2003
Oracle info: 9.2.0.6
Message: Hi,

I restored a backup of the production database on another system and did a point-in-time recovery using resetlogs. This was needed to recover data from 1 project in 1700 tables that was accidentilly deleted. 
I am using RMAN for the database backup. 
I am using Logminer to determine what actually happened (who did it?, which session?, at what time?) however I want to restore the archives containing the information after the resetlogs command. There are 2 archives that contain this information: 10624 + 10625:

This are the actions I did:

RMAN> list backup of archivelog all;

BS Key Size Device Type Elapsed Time Completion Time 
------- ---------- ----------- ------------ --------------- 
83 1G DISK 00:01:06 22-11-06 
BP Key: 274 Status: AVAILABLE Tag: TAG20061122T200438 
Piece Name: E:\BACKUP\CAPE\CAPE_DLYBCK_2JI32DMM_1_1

List of Archived Logs in backup set 83 
Thrd Seq Low SCN Low Time Next SCN Next Time 
---- ------- ---------- -------- ---------- --------- 
1 10615 341940365 21-11-06 341964759 21-11-06 
1 10616 341964759 21-11-06 341991938 22-11-06 
1 10617 341991938 22-11-06 342005213 22-11-06 
1 10618 342005213 22-11-06 342008728 22-11-06 
1 10619 342008728 22-11-06 342026611 22-11-06 
1 10620 342026611 22-11-06 342035113 22-11-06 
1 10621 342035113 22-11-06 342042869 22-11-06 
1 10622 342042869 22-11-06 342052098 22-11-06 
1 10623 342052098 22-11-06 342077875 22-11-06 
1 10624 342077875 22-11-06 342100900 22-11-06 
1 10625 342100900 22-11-06 342113047 22-11-06

RMAN> restore archivelog from logseq=10624 until logseq=10625 thread=1;

Starting restore at 29-11-06

allocated channel: ORA_DISK_1 
channel ORA_DISK_1: sid=18 devtype=DISK 
RMAN-00571: =========================================================== 
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== 
RMAN-00571: =========================================================== 
RMAN-03002: failure of restore command at 11/29/2006 09:11:46 
RMAN-20242: specification does not match any archive log in the recovery catalog

Is there a way so I can restore the archives on this system?

Thanks in advance for your help.

Kind regards.

Goto: Reply - Top of page 

If you think this item violates copyrights, please click here


Subject: Re: Archive log restore using RMAN for Logminer
Author: LKBrwn DBA>, United States
Date: Nov 29, 2006, 2406 days ago
Score:   
Message: a) You may need to restore these archive logs to the production server.

-- or try:

b) Restore the logs on the other system BEFORE you restore the database:

1) Restore controlfile. 
2) Restore archive logs. 
3) restore database.

Your rating?: This reply is GoodExcellent
Goto: Reply - Top of page 

If you think this item violates copyrights, please click here


Subject: Re: Archive log restore using RMAN for Logminer
Author: Edwin Weele van der, Netherlands
Date: Nov 30, 2006, 2406 days ago
Score:   
Message: Hi,

I got an answer from Oracle. 
This is the method that was supplied by Oracle:

Run the following pl/sql procedure:

DECLARE 
v_dev varchar2(50); 
v_done boolean:=false; 
type t_fileTable is table of varchar2(255) index by binary_integer; 
v_fileTable t_fileTable; 
v_maxPieces number:=1; 
BEGIN 
v_fileTable(1):='E:\BACKUP\CAPE\CAPE_DLYBCK_2JI32DMM_1_1'; 
v_maxPieces:=1; 
v_dev:=sys.dbms_backup_restore.deviceAllocate(type=>null,ident=>'t1'); 
sys.dbms_backup_restore.restoreSetArchivedLog(destination=>'E:\arch_'); 
sys.dbms_backup_restore.restoreArchivedLog(thread=>1,sequence=>10624); 
sys.dbms_backup_restore.restoreArchivedLog(thread=>1,sequence=>10625); 
FOR i IN 1..v_maxPieces LOOP 
sys.dbms_backup_restore.restoreBackupPiece(done=>v_done,handle=>v_fileTable(i),params=>null); 
IF v_done THEN 
GOTO all_done; 
END IF; 
END LOOP; 
<<all_done>> 
sys.dbms_backup_restore.deviceDeallocate; 
END; 
/

The following values have to be adjusted to restore your archives:

v_fileTable(1):='E:\BACKUP\CAPE\CAPE_DLYBCK_2JI32DMM_1_1'; (name of backupset) 
sys.dbms_backup_restore.restoreSetArchivedLog(destination=>'E:\arch_'); (archive log location) 
sys.dbms_backup_restore.restoreArchivedLog(thread=>1,sequence=>10624); (name of archivelog) 
sys.dbms_backup_restore.restoreArchivedLog(thread=>1,sequence=>10625); (name of archivelog)

Kind regards

Edwin van der Weele

Your rating?: This reply is GoodExcellent
Goto: Reply - Top of page 

Archive log restore using RMAN for Logminer (http://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=26816)的更多相关文章

  1. How to delete expired archive log files using rman?

    he following commands will helpful to delete the expired archive log files using Oracle Recovery Man ...

  2. alter system [switch logfile]与[archive log current]的区别

    --alter system [switch logfile]与[archive log current]的区别 ------------------------------------------- ...

  3. alter system archive log current作用及和alter system switch logfile区别

    alter system archive log current 是归档当前的重做日志文件,不管自动归档有没有打都归档. alter system switch logfile 是强制日志切换,不一定 ...

  4. LOGMNR分析redo log和archive log教程

    自Oracle 11g起,无需设置UTL_FILE_DIR就可以使用LOGMNR对本地数据库的日志进行分析,以下是使用LOGMNR的DICT_FROM_ONLINE_CATALOG分析REDO和归档日 ...

  5. alter system switch logfile与alter system archive log current的区别

    以前知道 ALTER SYSTEM SWITCH LOGFILE对单实例数据库或RAC中的当前实例执行日志切换, ALTER SYSTEM ARCHIVE LOG CURRENT会对数据库中的所有实例 ...

  6. Oracle 11g的Redo Log和Archive Log的分析方法

    自Oracle 11g起,无需设置UTL_FILE_DIR就可以使用LOGMNR对本地数据库的日志进行分析,以下是使用LOGMNR的DICT_FROM_ONLINE_CATALOG分析REDO和归档日 ...

  7. DBA_Oracle Archive Log的基本应用和启用(概念)

    2014-11-15 Created By BaoXinjian

  8. DBA_Oracle日志文件 - altert / trace /audit / redo / archive log(概念)

    2014-07-26 Created By BaoXinjian

  9. [Oracle维护工程师手记]为什么flashback 的时候既需要 flashback log ,又需要 archive log?

    为什么flashback 的时候既需要 flashback log ,又需要 archive log 呢? 如果数据库的活动不是很频繁,可以看到,其flashback log 是比较小的.那么是通过怎 ...

随机推荐

  1. Retinex系列之Frankle-McCann Retinex 分类: Matlab 图像处理 2014-12-01 21:52 538人阅读 评论(2) 收藏

    一.Frankle-McCann Retinex Frankle-McCann算法选择一条螺旋结构的路径用于像素间的比较.如下图,算法沿着螺旋路径选取用于比较 像素点,这种路径选择包含了整个图像的全局 ...

  2. 将php中session存入redis中

    PHP 的会话默认是以文件的形式存在的,可以配置到 Redis 中,即提高了访问速度,又能很好地实现会话共享! 配置方式如下: 方法一:修改 php.ini 的设置 session.save_hand ...

  3. java内存查看与分析

    业界有很多强大的java profile的工具,比如Jporfiler,yourkit,这些收费的东西我就不想说了,想说的是,其实java自己就提供了很多内存监控的小工具,下面列举的工具只是一小部分, ...

  4. [安卓开发板]迅为IMX6 四核Android开发板

    工业级核心板-Android开发板 10层高速PCB设计,充分保证电磁兼容 处理器:开发板默认是四核商业扩展级芯片,可根据用户需求更换单核.双核.工业级.汽车级处理器,批量更省成本. 扩展引脚:320 ...

  5. 迅为I.MX6开发板工业级嵌入式开发平台

    迅为-i.MX6开发板是是基于ARM Cortex™-A9架构的高扩展性多核系列应用处理器, i.MX6系列芯片而且根据应用场合的不同,提供了可供选择的单核.双核和四核产品供客户选择.i.MX6系列的 ...

  6. create_module - 生成一条可加载模块记录

    总览 #include <linux/module.h> caddr_t create_module(const char *name, size_t size); 描述 create_m ...

  7. mysql5大引擎之间的区别和优劣之分

    数据库引擎介绍 MySQL数据库引擎取决于MySQL在安装的时候是如何被编译的.要添加一个新的引擎,就必须重新编译MYSQL.在缺省情况下,MYSQL支持三个引擎:ISAM.MYISAM和HEAP.另 ...

  8. SQLServer锁的概述

    SQLServer锁的概述   锁的概述 一. 为什么要引入锁 多个用户同时对数据库的并发操作时会带来以下数据不一致的问题: 丢失更新 A,B两个用户读同一数据并进行修改,其中一个用户的修改结果破坏了 ...

  9. Myeclipse下载

    地址:http://www.jb51.net/softs/593889.html#download

  10. SpringBoot 全局处理以及注入请求参数

    后端接口,经常会用token获取对应的账号信息.于是考虑将这个步骤封装起来. 之前项目使用ThreadLocal去做这样的事情,但昨天看SpringBoot的官方文档,发现借助框架的功能也可以做这样的 ...