How to revert old plsql?

╄→гoц情女王★ 提交于 2019-12-23 04:53:35

问题


yesterday i altered a procedure "MAIL_INSERT_CRON". but now i want my old procedure back.. It is possible to retrive old content of my procedure ?


回答1:


You can recover the code from the view all_source if:

  • you have flashback on,
  • you have the privilege to use flashback on data dictionary views (which is granted by the SELECT_CATALOG_ROLE role),
  • the data is still in the flashback area.

It seems you don't have flashback on, or the data has been overwritten already. In that case you'll have to fallback to regular lost data retrieval:

  • you can restore a backup from before the drop,
  • you can use LogMiner to analyze your redo log files.


来源:https://stackoverflow.com/questions/21872886/how-to-revert-old-plsql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!