oracle11g flashback archive feature新特性
/******flashback archive*****/
/***示例*****/
SQL> create flashback archive test_flashback tablespace tbs_16k quota 100 M retention 1 day;
Done
SQL> create table t_flashback(a int);
Table created
SQL> insert into t_flashback values(1);
1 row inserted
SQL> commit;
Commit complete
SQL> select current_scn from v$database;
CURRENT_SCN
-----------
11451980
/***此語法僅適用於預設的flashback archive****/
SQL> alter table t_flashback flashback archive;
alter table t_flashback flashback archive
ORA-55608: Default Flashback Archive does not exist
/*** 指定flashback archive***/
SQL> alter table t_flashback flashback archive test_flashback;
Table altered
SQL> insert into t_flashback values(2);
1 row inserted
SQL> commit;
Commit complete
/***flashback to before time***/
SQL> select * from t_flashback as of scn 11451980;
A
---------------------------------------
1
SQL> select current_scn from v$database;
CURRENT_SCN
-----------
11452186
/***ddl操作*****/
SQL> alter table t_flashback add b int;
Table altered
SQL> select * from t_flashback;
A B
--------------------------------------- ---------------------------------------
1
2
/***cross ddl依舊可以flashback to before time*****/
SQL> select * from t_flashback as of scn 11451980;
A
----------
1
/***下附一些各項操作語法****/
The next statement alters the default flashback data archive to extend the retention period to 1 month:
ALTER FLASHBACK ARCHIVE test_archive1
MODIFY RETENTION 1 MONTH;
The next statement specifies tracking for the oe.customers table. The flashback data archive is not specified, so data will be archived in the default flashback data archive, test_archive1:
ALTER TABLE oe.customers
FLASHBACK ARCHIVE;
The next statement specifies tracking for the oe.orders table. In this case, data will be archived in the specified flashback data archive, test_archive2:
ALTER TABLE oe.orders
FLASHBACK ARCHIVE test_archive2;
The next statement drops test_archive2 flashback data archive:
DROP FLASHBACK ARCHIVE test_archive2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-757602/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【FLASHBACK】Oracle flashback data archive 介紹OracleHive
- Flashback Data Archive原理詳解Hive
- v$archive_dest dataguard ORA-00439: feature not enabledHive
- Oracle 12.2新特性: PDB級閃回資料庫(Flashback PDB)Oracle資料庫
- GeminiDB Cassandra介面新特性FLASHBACK釋出:任意時間點秒級閃回
- [20200224]觀察使用TCP keep-alive feature特性.txtTCPKeep-Alive
- [20200225]觀察使用TCP keep-alive feature特性2.txtTCPKeep-Alive
- 新特性
- 【Flashback】Flashback Drop閃回刪除功能實驗
- Flashback Query(轉)
- 【Flashback】Flashback Database閃回資料庫功能實驗Database資料庫
- Swift iOS : ArchiveSwiftiOSHive
- React 新特性React
- 新特性介面
- Hadoop新特性Hadoop
- Java 11新特性Java
- Java 8 新特性Java
- Android 9.0新特性Android
- ES 2024 新特性
- Go 1.13 新特性Go
- Servlet 3.0 新特性Servlet
- MySQL 8.0 新特性MySql
- PHP 7.4 新特性PHP
- IDL 9.1新特性
- Java 8 新特性Java
- .NET 7新特性
- Prometheus 2.21.0 新特性Prometheus
- Java 17新特性Java
- PostgreSQL 13–新特性SQL
- C++新特性C++
- 玩轉iOS開發:iOS 11 新特性《Layout的新特性》iOS
- Kubernetes叢集部署Node Feature Discovery元件用於檢測叢集節點特性元件
- ORACLE Flashback Query偽列Oracle
- 2.6.2 Overview of Flashback PDB in a CDBView
- 【譯】ES2018 新特性:Rest/Spread 特性REST
- C++11新特性(一):語言特性C++
- C++11新特性(三):語言特性C++
- C++11新特性(二):語言特性C++
- Feature homophily metric