How to Recover From a DROP / TRUNCATE / DELETE TABLE with RMAN [ID 223543.1]

本文档介绍了如何使用RMAN从DROP或TRUNCATE表中恢复,包括恢复控制文件、恢复和恢复数据库子集、导出和导入表等步骤。适用于Oracle 8.1.5到10.2.0.1版本。
摘要由CSDN通过智能技术生成
How to Recover From a DROP / TRUNCATE / DELETE TABLE with RMAN [ID 223543.1]

  Modified 02-FEB-2011     Type FAQ     Status PUBLISHED  

In this Document
  Purpose
  Questions and Answers
     General overview of procedure to recover from a DROP or TRUNCATE table by using RMAN.
     Requirements
     1: Restore and mount the controlfile:
     2. Restore and recover a subset of the database:
     a. Connect to a mounted target:
     b. Use a 'SET UNTIL TIME':
     c. SET NEWNAME for all datafiles:
     d. Restore of the necessary tablespaces, RESTORE TABLESPACE:
     e. SWITCH DATAFILE ALL:
     f. ALTER DATABASE DATAFILE ... ONLINE:
     g. RECOVER DATABASE SKIP FOREVER TABLESPACE ......;
     h. ALTER DATABASE RENAME FILE all Online REDO log files:
     4: Export the table
     
     5: Import the export-dump
     6: Remove this AUX/DUMMY database
  References


 

 

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1.5.0 to 10.2.0.1 - Release: 8.1.5 to 10.2
Information in this document applies to any platform.
***Checked for relevance on 02-Feb-2011***

Purpose

This document describes how to recover from a DROP or TRUNCATE table by using RMAN.

In Oracle10g, you can use the Recyclebin to recover a DROP table,  as long as it has not been manually disabled. See:

Note 265254.1 Flashback Table feature in Oracle Database 10g

If the Recyclebin has been disabled or Database is running Oracle9i, there are three options available:

1. Restore and recover the primary database to a point in time before the drop.  This is an extreme measure for one table as the entire database goes back in time.

2. Restore and recover the tablespace to a point in time before the drop.  This is a better option, but again, it takes the entire tablespace back in time. This is the standard tablespace point in time recovery (TSPITR) which will require an auxiliary database, but will bring the entire tablespace ba

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值