Practical Skills Sharing Restore Oracle's overwritten stored procedures

Source: Internet
Author: User

When writing or modifying a stored procedure, it is easy to run into a bit of caution, and the code behind it overwrites the previous stored procedure. How to recover, the quickest and most convenient method, Flash query!

1. Change the timestamp to before overwriting
CREATE TABLE Huifu_procedure as
SELECT *
From Dba_source as of timestamp to_timestamp (' 2014-11-26 14:00:00 ', ' yyyy-mm-dd HH24:MI:SS ')
where TYPE = ' PROCEDURE '
and owner = ' emply '
and Name = ' checkdata_2014emply ';


2. Locate the text, which is the code that is overwritten:
Select text from Huifu_procedure;

This article is from the "Hunter Oracle World" blog, so be sure to keep this source http://hunter8888.blog.51cto.com/1850277/1613785

Practical Skills Sharing Restore Oracle's overwritten stored procedures

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.