FDA

 Flashback added in Oracle 11g: Flashback Data Archive feature. This technology is different from the previous implementation mechanism of Flashback. By storing the changed data in the created Flashback Archive to distinguish it from undo, a separate storage policy can be set for the Flashback Archive. Make it possible to flash back to the old data before the specified time without affecting the undo strategy. And you can specify which database objects need to save the historical change data, instead of saving the change data of all objects in the database, which can greatly reduce the space requirement.

            Flashback Data Archive does not record all changes in the database, but only records the data changes of the specified table. Therefore, Flashback Data Archive is an object-oriented protection and a powerful complement to Flashback Database.

 

            Through Flashback Data Archive, you can query the data of the specified object at any point in time (as long as the protection policy is satisfied), and you do not need to use undo. This is an environment that requires auditing or a high-availability database where security is particularly important. A very nice feature. The disadvantage is that if the table changes frequently, the space requirements may be high.

 

Create tablespace

SQL> create tablespace tbs1 datafile '/u01/app/oracle/oradata/orcl/tbs01.dbf' size 200m;

Create FDA, tablespace is tbs1

SQL> create flashback archive default fla2 tablespace tbs1 quota 100m retention 2 year;

SQL> create tablespace FDA001 datafile '/u01/app/oracle/oradata/orcl/fda01.dbf' size 500m;

// FDA administrator

SQL> create user FDA_ADMIN identified by fda_admin default tablespace FDA001;

SQL> grant FLASHBACK ARCHIVE ADMINISTER to FDA_admin;

SQL> grant connect,resource to FDA_ADMIN;

 

SQL> CREATE FLASHBACK ARCHIVE fla1 tablespace FDA001 quota 500m retention 1 year;

 

Authorize FDA to sh users

SQL> grant flashback archive on fla1 to SH;

SQL> alter table sh.promotions flashback archive fla1;

 

View FDA specific configuration

SQL> select * from dba_flashback_archive;

SQL> select * from dba_flashback_archive_tables;

 

SQL> select * from dba_flashback_archive_ts;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326395952&siteId=291194637
FDA