Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_FLASHBACK, 2 of 2
This procedure enables Flashback for the entire session. The snapshot time is set to the SCN that most closely matches the time specified in query_time.
DBMS_FLASHBACK.ENABLE_AT_TIME ( query_time IN TIMESTAMP);
This procedure takes an SCN as an input parameter and sets the session snapshot to the specified number.
In the Flashback mode, all queries return data consistent as of the specified wall-clock time or SCN.
DBMS_FLASHBACK.ENABLE_AT_SYSTEM_CHANGE_NUMBER ( query_scn IN NUMBER);
Parameter | Description |
---|---|
|
The system change number (SCN), a version number for the database that is incremented on every transaction commit. |
This function returns the current SCN as an Oracle number datatype. You can obtain the current change number and stash it away for later use. This helps you store specific snapshots.
DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER ( RETURN NUMBER);
This procedure disables the Flashback mode for the entire session.
DBMS_FLASHBACK.DISABLE;
The following example queries the salary of an employee, Joe, on August 30, 2000:
EXECUTE dbms_flashback.enable_at_time('30-AUG-2000'); SELECT salary from emp where name = 'Joe' EXECUTE dbms_flashback.disable;
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|