---
title: "通过dbms_flashback找回误删除的数据收藏"
author: "tylgl"
date: "2009-01-21T11:35:56Z"
tags: []
slug: "dbms-flashback"
draft: false
lastmod: "2009-01-21T11:35:56Z"
id: 319599
url: "https://tylgl.iteye.com/blog/319599"
---

在使用DBMS_FLASHBACK时要首先注意以下几个事项：

1、首先需要给要执行闪回的用户纸型这个闪回包的权限，如下：

grant execute on dbms_flashback to scott;

2、在SYS用户下不能执行这个闪回包。

3、执行完闪回包以后要要执行DBMS_FALSHBACK.DISABLE()，不然无法执行其他操作。

 

执行闪回操作只需要如下语句即可：

EXEC DBMS_FLASHBACK.ENABLE_AT_TIME(SYSDBA-10/1440);

其中10为闪回10分钟前的数据。