Please visit www.oracle-class.com for Videos, Free posts, Books, Webinar and Free forum … ALL about Oracle!

Track the row change time

It is always useful to know when a row has been changed, this could be needed to extract some statistics regarding the table growth or at which specific time users are inserting or updating rows into the table (not deleting or selecting a row).

To test the tip below, you should create your table with the ROWDEPENDENCIES option.
More details about this option can be found below :

http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#SQLRF01402

“ROWDEPENDENCIES Specify ROWDEPENDENCIES if you want to enable row-level dependency tracking. This setting is useful primarily to allow for parallel propagation in replication environments. It increases the size of each row by 6 bytes.”

row change demo 1

row change 2

row change 3

change row 4

change row 5

Nice Reading,
Wissem

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: