Print Thread
how to restore a procedure or Packages after compilation
#46164 02/20/13 08:00 AM
Joined: Dec 2012
Posts: 17
G
Member
OP Offline
Member
G
Joined: Dec 2012
Posts: 17
How to restore a procedure or packages with whatever we have modified as of yesterday..whereas I dont need of current change in procedure or packages as of todays date. Will it possible to restore based on time ??pls advise me

Re: how to restore a procedure or Packages after compilation
gshari23 #46166 02/20/13 08:50 AM
Joined: Mar 2008
Posts: 29
Oslo, Norway
S
Member
Offline
Member
S
Joined: Mar 2008
Posts: 29
Oslo, Norway
In general no. When compiling code in database the old code is lost. At least to my knowledge.

Unless you have an versioning file system and saved the file yesterday.

I am not sure if database flashback restores packages but it would have to be enabled before hand.

Regards
Stian



Regards
Stian
Re: how to restore a procedure or Packages after compilation
Stian #46172 02/20/13 10:51 AM
Joined: Oct 2005
Posts: 587
Belgium
Member
Offline
Member
Joined: Oct 2005
Posts: 587
Belgium
If your flashback is large enough you can query the user_source view in the flashback.


Roeland
Re: how to restore a procedure or Packages after compilation
Roeland #46209 02/22/13 12:19 PM
Joined: Dec 2012
Posts: 17
G
Member
OP Offline
Member
G
Joined: Dec 2012
Posts: 17
In user view, only existing procedure is there...How can i retrieve old scripts??

Re: how to restore a procedure or Packages after compilation
gshari23 #46235 02/25/13 02:32 PM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
Member
Joined: Sep 2003
Posts: 387
London, UK
I think you would need FLASHBACK ANY TABLE privilege to see a flashback view of data in another schema - in this case SYS, which owns obj$, source$ etc. Alternatively connect as the SYS user, although most sites understandably won't let you do that unless you're a DBA. Then you could try calling DBMS_FLASHBACK.ENABLE_AT_TIME(). (Untested as I'm not near a system where I have privileges right now.)


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.086s Queries: 14 (0.008s) Memory: 2.5136 MB (Peak: 3.0394 MB) Data Comp: Off Server Time: 2024-05-15 07:25:02 UTC
Valid HTML 5 and Valid CSS