---
title: "误删oracle数据恢复（闪回查询）"
author: "zhouleye"
date: "2012-08-01T15:51:22Z"
tags: ["SQL", "timestamp"]
categories: ["编程语言"]
slug: "oracle"
draft: false
lastmod: "2012-08-01T15:51:22Z"
id: 1615708
url: "https://zhouleye.iteye.com/blog/1615708"
---

闪回后，把删除的表，及索引都会恢复

```sql
flashback table t1 to before drop;
```

闪回到某时间点

```sql
select * from t as of timestamp to_timestamp('2012-06-29 22:57:47', 'yyyy-mm-dd hh24:mi:ss');
```