How can I compile all functions, procedures and packages with a script?

I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
How can I do it?
Thanks!

you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
Cheers, APC

Similar Messages

  • How can I transfer all my music and apps from my computer to my new iphone?

    how can I transfer all my music and apps from my computer to my new iphone?

    This is one of the most basic of functions of the iPhone.  This is a good time for you to read the User Guide.  All the instructions on how to operate yor phone are included.  I suggest you read through it.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How can i delete all my photos and music easily?

    how can i delete all my photos and music easily?
    I have changed to a new macbook and given the old one to my partner (generous?) and want to delete a lot of my stuff on the old one (iphoto and itunes) without losing safari and mail data, settings etc so I dont want to a clean reinstall.
    Jo

    Jhunior wrote:
    HI
    I need help
    Please
    But i need talk too you, i don´t speck english very well, I´m a Brazilian Guy
    Then post your question in your native language.  This is a multi-lingual forum.

  • How can I merge all of my iTunes libraries with my wife and kids so we can all share the music?

    how can I merge all of my iTunes libraries with my wife and kids so we can all share the music?
    There are 3 accounts that I want t o transfer all the music to
    Joe

    Welcome to the Apple Community.
    You can't merge accounts.
    You can however share or import content from another library/account using homesharing.

  • How can I remove all my preferences and settings from mail and do a clean install of mail app?

    How can I remove all my preferences and settings from mail and do a clean install of mail app?

    Open mail > Preferences > Accounts
    Select the account and click the minus button at the bottom of the column.
    Quit mail
    ~/Library/Preferences/com.apple.mail.plist move this file to the trash and empty it.
    ~/Library/Mail/ and move all of the items in that folder to the trash and then empty it.

  • How can i transfer all my datas and email form old Mac G5 to new iMac ?

    How can i transfer all my datas and email form old Mac G5 to new iMac ?

    Generally Mugration Assistant will suffice importing all Data ito a new user, but you can manually import it...
    Users/YourUserName/Library/Mail
    Users/YourUserName/Library/Mail Downloads
    (Could be a different folder here if you chose such in Mail Prefs)

  • How can I install all my music and movies that I bought into my computer?

    How can I install all the musics and movies that I bought from iTunes into my computer?

    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store

  • I have a hand me down iphone 3, how can i erase all the data and pictures from it?

    i have an iphone 3gs from my son, how can i erase all his data and photos from the phone so I can start transfering my own and use it

    Restore as New  >  http://support.apple.com/kb/HT1414

  • Hi i just buy a macbook how can i transfer all my musics and apps from my iphone to my new itune?

    hi i just buy a macbook how can i transfer all my musics and apps from my iphone to my new itune?

    1) authorize iTunes on the new machine for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    for everything else, check out this post by Zevoneer.
    also, there are PhoneView and iRip.

  • How can i sync all my music and playlists from my iphone to my new computer

    how can i sync all my music and playlists from my iphone to my new computer

    Yes.  You can sync everything that is currently on your iPod Touch to your newer one. Just plug it in and sync it like you did with the old one.
    If you want to retain your App data, see this article for information on backing up your current iPod Touch and restoring the backup onto a new one.
    http://support.apple.com/kb/ht1414
    If you purchase the iPad, keep in mind that some Apps may not be compatible with it.
    B-rock

  • I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps and data to the new iphone 4 and keep facetime etc on the new iphone 4.  If I do a restore of the iphone 3GS I only get the 3GS apps (i.e. no facetime)

    I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps including saved levels in games etc. and data and folders to the new iphone 4 and keep facetime etc on the new iphone 4. When I have done this for someone else they got all their data etc but lost the Face Time App and teh iphone 4 looked like the iphone 3 screen.

    There is no FaceTime app for the iphone, FaceTime is built into the iOS. Follow the directions here:
    http://support.apple.com/kb/HT2109

  • How can I move all my info and apps from my old Ipad to a new one

    I use to have a 32 Gb iPad2 and I just bought a new 64 Gb iPad2 and want to move all that I have to the new one and reset the old one to sell it... how can i do that?

    Reset and Erase before selling
    Settings>General>Reset>Erase all Content and Settings

  • How can I transfer all my mail and mail boxes to another computer using the same Mac OS 10.7.5?

    I have 2 computers with the same OS 10.7.5. How can I transfer all my Mail & Mail boxes from one to the other?

    Hello Gene,
    It sounds like you would like to transfer your mail and mailboxes from one computer to another.  I recommend exporting the mailboxes from one Mac and then importing them to the destination Mac.  You can find steps in the following articles:
    Lion Mail: Export mailboxes
    http://support.apple.com/kb/PH4811
    Lion Mail: Import mailboxes
    http://support.apple.com/kb/PH4853
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I erase all photos from my iPhone with ios 8?

    I want to clean up my iPhone 5 before creating a back up so I can restore my new iPhone 6 with a clean backup. I only want to retain text messages, email accounts etc. but do not want my photos. How can I erase all the photos in my iPhone using ios 8?
    Any help is much appreciated

    To delete all of the photographs from your device, do the following:
    Open Photos.
    Open the Photos tab.
    If the Moments view isn't visible, then switch to it by zooming in.
    Press Select.
    Select each group of photographs.
    Press the delete button and then confirm the action.

  • How can I call a function/procedure in VBA?

    Hallo,
    can somebody help me with this topic? I have vba-code and wanna call a oracle-procedure/function. Does this work? And how does this work?
    Thanks, Katrin

    Hallo,
    now I tried to reach my aim with a procedure and a trigger but I get error-messages.
    create or replace procedure updateNutzGeo (objnr integer, kat integer) AS
    sqlStmt varchar2(500);
    begin
    sqlStmt := 'UPDATE NUTZUNG SET GEOMETRIE=(SELECT F'||Kat||'_GEOM FROM UG_F'||Kat||'_GEOM F, Nutzung N WHERE N.OBJNR='||Objnr||' AND F.F'||Kat||'_OBJNR='||Objnr||' AND GETFEATUREID(F.F'||Kat||'_FID) IN(SELECT MSLINK FROM FEATURE WHERE FCODE like '%0000')) WHERE N.Objnr='||Objnr||'';
    EXECUTE IMMEDIATE sqlStmt;
    end;
    create or replace trigger update_nutz_geo_aft_upd
    before insert or update on nutzung
    for each row
    begin
    updateNutzGeo(:new.objnr,:new.kategorie);
    end;
    The error-messages I get:
    ORA-00904: invalid columnname
    ORA-06512: in "pilot.updatenutzgeo", line 5
    ORA-06512: in "pilot.Update_Nutz_geo_Aft_Upd", line2
    ORA-04088: Error while execution of trigger pilot.update_nutz_geo_aft_upd
    Any help?

Maybe you are looking for

  • Trial balance report - general question

    Hi, This is the first time that I am using the trial balance report (to compare it with a Discoverer report that was built for another purpose). If I am running a trial balance for the end of May, and an account has a payment due in June, then the ac

  • Help with Spry, acting weird in Mac Os 10.5 10.6, 10.7 and Ios Devices

    I use Dreamweaver CS4 for designing our school website.  The url is http://www.stpiusxschool.org The menu bar on the left is built with a Spry Asset, it is to expand to different choices on some of the lines.  The issue started about a month ago, if

  • Reg. checkboxgroup in NWDS

    hii all, I am developing an application in NWDS, in which i have to put checkboxgroup in a view. I did it. but when the Appl. is deployed in th view I am getting only one check box.without any name.plz give me an idea to insert checkboxgroup through

  • APEX on top of SQL Server

    Hello, We have a custom developed J2EE Financials App sitting on SQL Server. New reports and forms are costly for us from a development perspective. We are considering surfacing some of that data through APEX. From what I've found generating reports

  • How can I use ios internal music player for playing music?

    Hi All, I know how to play MP3s using Adobe Air, but I have no idea how can I possibly use the INTERNAL MUSIC PLAYER of iOS with Adobe Air? Is tha possible? Is there any native extentions for this purpose or some codes?? Thanks a lot and I appreciate