In this tutorial i'll show you how Oracle Flashback Technology works and as well as inside how to use flashback version query.
In Oracle there are Seven Technology as given below.
In the Flashback Technology, It include database related group of features that manage a state of your data in the database.
This Technology works on the undo data so you can get all those transaction, query as well as data from undo segments thus, your can recovery your data which had been lost or damage as well as you can see the query which had been perform on a specific time or SCN.
In this Technology you can see all the of two row between two times.
And you can also see the transaction that change the row.
The Flashback Version Query enable you to use the VERSIONS clause to retrieve all version of all the row that exist between two point in times or SCN no.
This technology only retrieves those data which has been committed and you can't retrieve without committed data.
You can use this technology to retrieve row history
Version Query use undo data but you can not modify data.
Note
The VERSIONS_XID is a pseudocolumn that returns the transaction id of the corresponding version of row.
The VERSION clause can not work as below,
In Oracle there are Seven Technology as given below.
In the Flashback Technology, It include database related group of features that manage a state of your data in the database.
This Technology works on the undo data so you can get all those transaction, query as well as data from undo segments thus, your can recovery your data which had been lost or damage as well as you can see the query which had been perform on a specific time or SCN.
- Flashback Query.
- Flashback Transaction.
- Flashback Transaction Query.
- Flashback Version Query.
- Flashback Table.
- Flashback Database.
- Flashback Data Archive [ Total Recall ].
- See the query had been perform.
- See the transaction information.
- See the past state data.
- You can perform rollback entire table without performing database recovery.
- If you delete or drop the table by mistake and you perform DDL or commit without knowing the previous transaction. and so on...
In this Technology you can see all the of two row between two times.
And you can also see the transaction that change the row.
The Flashback Version Query enable you to use the VERSIONS clause to retrieve all version of all the row that exist between two point in times or SCN no.
This technology only retrieves those data which has been committed and you can't retrieve without committed data.
You can use this technology to retrieve row history
Version Query use undo data but you can not modify data.
Note
The VERSIONS_XID is a pseudocolumn that returns the transaction id of the corresponding version of row.
The VERSION clause can not work as below,
- Temporary Table
- Fixed Table
- External Table
- Views
VERSIONS {BETWEEN {SCN | TIMESTAMP} start AND end}
Example as below,
That's was a Flashback Version Query in Oracle 11g,
SELECT versions_startscn, versions_starttime, versions_endscn, versions_endtime, versions_xid, versions_operation, last_name, salary FROM employees VERSIONS BETWEEN TIMESTAMP TO_TIMESTAMP('2016-12-18 14:00:00', 'YYYY-MM-DD HH24:MI:SS') AND TO_TIMESTAMP('2016-12-18 17:00:00', 'YYYY-MM-DD HH24:MI:SS') WHERE first_name = 'John';
That's was a Flashback Version Query in Oracle 11g,
No comments:
Post a Comment
Thank you for give me feedback : )