Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: updated rows
On Wed, 26 Jan 2005 11:28:17 -0500, "hastenthunder"
<hastenthunder_at_hotmail.com> wrote:
>Hello,
>
>Is there a easy way for a DBA to get all the rows in a particular table that
>have been updated since a specified timestamp?
>
>Thanks
>
>
>
Just a supplement to what Thomas wrote :
If you only need to track changes within "recent time", you can flashback directly by means of the handy view FLASHBACK_TRANSACTION_QUERY : SQL> create table foo as select * from dba_objects where rownum <=100;
Tabel er oprettet.
SQL> update foo set object_id=-1 where rownum = 1;
1 rµkke er opdateret.
SQL> commit;
Bekrµftelse er udf°rt.
SQL> select undo_sql from flashback_transaction_query where table_name = 'FOO';
UNDO_SQL
This way you can track all DML's on the table and not just updates.
Be prepared for some response time on this, because FLASHBACK_TRANSACTION_QUERY fetches data directly from the undo segments ==> no indexing.