Overview of Oracle Flashback Query II (367)
You set the date and time you want to view. Then, any SQL query you run operates on
data as it existed at that time. If you are an authorized user, then you can correct
errors and back out the restored data without needing the intervention of an
administrator.
With the AS OF SQL clause, you can choose different snapshots for each table in the
query. Associating a snapshot with a table is known as table decoration. If you do not
decorate a table with a snapshot, then a default snapshot is used for it. All tables
without a specified snapshot get the same default snapshot.
For example, suppose you want to write a query to find all the new customer accounts
created in the past hour. You could do set operations on two instances of the same
table decorated with different AS OF clauses.
DML and DDL operations can use table decoration to choose snapshots within
subqueries. Operations such as INSERT TABLE AS SELECT and CREATE TABLE AS
SELECT can be used with table decoration in the subqueries to repair tables from
which rows have been mistakenly deleted. Table decoration can be any arbitrary
expression: a bind variable, a constant, a string, date operations, and so on. You can
open a cursor and dynamically bind a snapshot value (a timestamp or an SCN) to
decorate a table with.
Oracle閃回查詢II
1. 可以使用as of子句為每張表選擇不同的快照 , 可被認為是表裝飾
2. DML 及 DDL 操作可以在其子查詢中使用表修飾來選擇快照.
INSERT TABLE AS SELECT 及 CREATE TABLE AS SELECT 操作可以用於恢復誤刪除的資料
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-993546/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Overview of Oracle Flashback Query I (366)ViewOracle
- ORACLE Flashback Query偽列Oracle
- oracle 10g flashback version query 和 flashback transaction query實驗Oracle 10g
- oracle10g之flashback version query 和flashback transaction query 實驗Oracle
- Oracle10g的Flashback之Flashback Transaction QueryOracle
- ORACLE 11G Flashback Versions QueryOracle
- flashback version query in oracle 10gOracle 10g
- Oracle閃回技術--Flashback Version QueryOracle
- Oracle Flashback query查詢的侷限Oracle
- Oracle10g的Flashback version QueryOracle
- 【Flashback】Flashback Query功能實踐
- flashback技術之---flashback query
- flashback version query和 flashback transaction query簡單應用
- 2.6.2 Overview of Flashback PDB in a CDBView
- flashback技術之---flashback Transaction Query
- flashback技術之---flashback version query
- Flashback Query Benefits (368)
- flashback總結四之Flashback_Query
- flashback總結六之Flashback_Transaction_Query
- 【實驗】【Flashback】Flashback Transaction Query功能實踐
- oracle flashback特性(1.4)--閃回查詢之Transaction queryOracle
- 閃回之 Flashback Query (dml表、過程、函式、包等)、Flashback version Query函式
- flashback總結五之Flashback_Query_Version(上)
- flashback query閃回資料
- flashback drop/query/table/database/archiveDatabaseHive
- Flashback Query閃回查詢
- Business Objects Query Builder – Part IIObjectUI
- Flashback Query的應用(轉帖)
- oracle檢視flashback_transaction_query中列operation為unknownOracle
- Oracle OCP 1Z0 053 Q704(Flashback Versions Query)Oracle
- Oracle OCP 1Z0-053 Q252(Flashback Version Query)Oracle
- flashback總結五之Flashback_Query_Version(下)_補充
- Oracle OCP 1Z0 053 Q387(FLASHBACK_TRANSACTION_QUERY)Oracle
- Oracle OCP 1Z0 053 Q63(flashback_transaction_query)Oracle
- 全面學習oracle flashback特性(1.4)--閃回查詢之Transaction queryOracle
- Oracle OCP 1Z0 053 Q677(Flashback Transaction Query)Oracle
- 使用flashback query巧妙抽取指定資料
- 閃回版本查詢(Flashback Version Query)