Go back to previous PL/SQL code with using Flashback Features

Be sure your database is enabled  FLASHBACK DATABASE.

grant flashback on user_source to <user_name>;

During the Flashbackback Retention Time,you can easily reach your previous code.

select *  from user_source as of scn timestamp_to_scn(systimestamp – 15/1440)   where name = ‘<MY_PROCEDURE_NAME>’;

Advertisements

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s