How to Recover from a Truncate Command [ID 117055.1]
来源:互联网 发布:网络电视台搜索 编辑:程序博客网 时间:2024/05/16 00:39
修改时间 21-OCT-2010 类型 BULLETIN 状态 PUBLISHED
PURPOSE
-------
By accident you issue a truncate command on the wrong table.
Since there is no undo command for this truncate, you will need to
recover the database to get the data back in the table.
This document outlines the steps to follow to recover
from the truncate command.
SCOPE & APPLICATION
-------------------
This document is intended to give a step by step guide for experienced
users.
It assumes that the some basic knowledge about backup and restore of an
Oracle database is available.
Step by Step solution
---------------------
*NOTE: Always backup the database before starting to recover or restore old
backups.
1. Is there an export dump of the table which I can use to restore the data?
a. yes -> import the file
b. no -> go to step 2.
2. Is the database is archivelog mode ?
a. yes -> go to step 3.
b. no -> go to step 4
3. The database is in archivelog mode. This makes it possible to recover the
database until a moment just before the truncate command.
a. restore a backup of the database to another location.
b. recover this database to a moment in time BEFORE the truncate command
RECOVER DATABASE UNTIL TIME .....
c. export the table data from this recovered database.
d. import the data back into the original database
e. remove the restored database.
4. Since the database is not in archivelog mode, there is no way to recover
the database to a time just before the truncate command.
Contact Oracle Support to discuss the possible options left.
RELATED DOCUMENTS
-----------------
Backup and recovery guide
- How to Recover from a Truncate Command [ID 117055.1]
- How to Recover from a Lost or Deleted Datafile with Different Scenarios [ID 198640.1]
- How to Deleting a Storage Repository From the Command Line?
- How To Recover From Corrupted OCR Disk
- [游泳] How to Quickly Recover from Swimming
- How to recover from USB pipe errors
- How to get an X11 Window from a Process ID?
- How to recover a SQL Server Database
- How to move a datafile from a file system to ASM (Doc ID 390274.1)
- How to move a datafile from a file system to ASM (Doc ID 390274.1)
- How To Execute Shell Command From Java
- How to recover deleted data from SQL Server 暴强
- Unable to Drop a Datafile From the Tablespace Using Alter Tablespace Command (Doc ID 1050261.1)
- how to sync windows time from a ntp time server in command
- How to Execute a Command in C# ?
- How to Execute a Command in C# ?
- How to copy a datafile from ASM to a file system not using RMAN (Doc ID 428893.1)
- How to Edit a Stored Outline to Use the Plan from Another Stored Outline (文档 ID 730062.1)
- linux下request_mem_region的粗略理解
- Linux的df、du、dd命令
- Oracle常用命令
- 无法访问内网WEBServices服务的问题
- Zoundry配置CSDN账户方法暨更新博客立志贴
- How to Recover from a Truncate Command [ID 117055.1]
- 单源最短路dijkstra算法
- 地图缓存与瓦片切割步骤
- VS2008下LibTomCrypt 1.17的编译和使用
- 经典签名
- socket和多线程可移植性编程基础
- API之位图、图标和光栅运算函数
- 献给csdn的初次。
- 淘宝网的实习生笔试题以及经历--2011 4 1(转载请注明出处,即原创网址)