|
- select * from flashback_transaction_query f
- where f.table_name='TAB
- and f.table_owner='SYS'
- order by 4 desc;
- /*
- 3902349
- 3902347
- 3902344
- */
- select versions_xid,versions_operation, versions_startscn , salary
- from hr.employees
- versions between scn minvalue and maxvalue
- where employee_id=101;
-
- ---
- select * from dba_objects o
- where o.owner='HR' and o.object_name='T05310_DDL';
-
- --75885
-
- drop table hr.t05310_ddl purge;
- ---
- select d.SUPPLEMENTAL_LOG_DATA_MIN,
- d.SUPPLEMENTAL_LOG_DATA_PK,
- d.SUPPLEMENTAL_LOG_DATA_UI,
- d.SUPPLEMENTAL_LOG_DATA_FK,
- d.SUPPLEMENTAL_LOG_DATA_ALL
- from v_$database d;
-
- alter database add supplemental log data (primary key) columns;
-
- select f.xid, count(*) from flashback_transaction_query f
- where f.table_name='EMPLOYEES' and f.table_owner='HR'
- and f.logon_user='HR'
- group by f.xid;
-
- select * from flashback_transaction_query f
- where f.table_name='T_CASCADE' and f.table_owner='HR'
- order by 4 desc;
-
- begin
- dbms_flashback.transaction_backout(1,xid_array('0500110070090000'),
- options =>dbms_flashback.cascade
- );
- end;
- select * from dba_flashback_txn_report;
- select * from dba_flashback_txn_state;
- commit;
复制代码
|
|