---
title: "在oracle中恢复一个表的数据到某个时点"
author: "wysaijun1314"
date: "2012-02-09T17:04:51Z"
tags: []
categories: ["企业架构"]
slug: "oracle"
draft: false
lastmod: "2012-02-09T17:04:51Z"
id: 1399635
url: "https://vsp.iteye.com/blog/1399635"
---

在oracle中恢复一个表的数据到某个时点
有时候一不小心就将ORACLE表中某些数据删除，如想恢复可通过时间点方式进行

1、执行下列语句可查询出相关时间点

```java

select * from sys.smon_scn_time order by time_dp desc;

```

2、执行下列语句可将某个时间点的数据恢复

```java

insert into 表名 select * from 表名 as of scn 需要恢复的时间点

```