---
title: "Oracle Flashback技术"
author: "caihualin"
date: "2013-06-25T18:58:32Z"
tags: []
categories: ["数据库"]
slug: "oracle-flashback"
draft: false
lastmod: "2013-06-14T21:20:44Z"
id: 1887062
url: "https://chblog.iteye.com/blog/1887062"
---

1、看是否打开闪回功能  
 SQL&gt;select log\_mode,open\_mode,flashback\_on from v$database;

2、打开闪回功能  
 SQL&gt; shutdown immediate  
 SQL&gt; startup mount

 SQL&gt;alter database archivelog;  
 SQL&gt; alter database flashback on;  
 SQL&gt; alter database open;

 

3、授权

 grant create procedure to fbpub;  
 grant create flashback any table to fbpub;  
 grant create flashback archive administer to fbpub;  
 grant create select any transaction  to fbpub;

 grant select on v\_$parameter to fbpub;  
 grant execute on dbms\_flashback to fbpub；

 

4、系统参数设置

 alter system set job\_queue\_processes=600 scope=both;  
 alter system set undo\_retention=10800 scope=both;