How Oracle recovers stored procedures that are overwritten

Source: Internet
Author: User

If you accidentally overwrite the previous stored procedure, it's time to flash back, and the longer it is, the less likely it is to flash back. The principle is very simple, the definition of the stored procedure is a data dictionary, modify the data dictionary and modify the data of the ordinary table is not different, this time will be modified before the contents of the undo, we can according to this point to flash back, so I said to be as soon as possible, otherwise could not find back.


CREATE TABLE P_temp as

SELECT *

From Dba_source as of timestamp to_timestamp (' 2014-05-14 09:30:00 ', ' yyyy-mm-dd HH24:MI:SS ')

where TYPE = ' PROCEDURE '

and owner = ' dbsnmptest '

and Name = ' P_sc_mon ';



Select text

From P_temp

where Name = ' P_sc_mon ';

and owner = ' dbsnmptest '

Order by line;



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.