---
title: "oracle数据update后怎么恢复到以前的数据"
author: "jatter"
date: "2017-12-25T11:52:19Z"
tags: []
categories: ["数据库"]
slug: "oracle-update"
draft: false
lastmod: "2017-12-25T11:52:19Z"
id: 2405634
url: "https://jatter.iteye.com/blog/2405634"
---

1、select FIRST\_LOAD\_TIME from V$SQL where SQL\_TEXT like '%update MAP\_OPTCBL\_POINT\_70 set shape%'--查出你需要恢复的时间点

2、

create table t\_table\_recove --新的表

as select * from MAP\_OPTCBL\_POINT\_70 --你误操作的表

as of timestamp to\_timestamp('2013-09-23 11:38:46','yyyy-mm-dd hh24:mi:ss');--时间点

--得到你想要的数据

3、delete MAP\_OPTCBL\_POINT\_70;--将原表的数据全部删除

4、insert into MAP\_OPTCBL\_POINT\_70 select * from t\_table\_recove;--恢复数据