Connecting Tech Pros Worldwide Forums | Help | Site Map

Need Table's Alter History

OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#1: Aug 24 '09
Hi All,

Does Oracle keep the audit trail for the alterations happen on the tables?
For e.g. add column,drop column,increase/decrease in column size etc.
If yes then how can get such info?

Thanks!
Bhushan

amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Aug 24 '09

re: Need Table's Alter History


If you are using a TOAD or SQL Developer then you can get History of the list of commands you have executed in last few days.
OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#3: Aug 24 '09

re: Need Table's Alter History


Quote:

Originally Posted by amitpatel66 View Post

If you are using a TOAD or SQL Developer then you can get History of the list of commands you have executed in last few days.

Thanks for reply. I know that but my alterations happened before very long time.
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,509
#4: Aug 24 '09

re: Need Table's Alter History


better define triggers on DDL event to keep track, define the trigger at schema level to keep track of all such changes. on each event keep track by making an entry into a log table. make it an autonomous trigger so that you can commit.
OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#5: Aug 25 '09

re: Need Table's Alter History


Quote:

Originally Posted by debasisdas View Post

better define triggers on DDL event to keep track, define the trigger at schema level to keep track of all such changes. on each event keep track by making an entry into a log table. make it an autonomous trigger so that you can commit.

Thanks. But my problem was i didn't write any trigger for the same. I followed that practice when this issue came to me.
Reply