How to tune a package

Hi,
I have 5 Packages and each package has more than 3500 rows. I want to tune package. How many ways I can tune. Is there any process to tune package. Please help me to solve this.

< dont have privilages to use Sys user>
you don't need to be SYS to use DBMS_PROFILER. SYS needs to install it, so that's a DBA job. Once its installed you need EXECUTE privilege on the package (another DBA job) and you can use it once you create the source tables in your schema; Oracle provides a script for that with the Oracle installation.

Similar Messages

  • How to tune "Buffer Get"  offender

    QUESTION: How to tune following sql
    SELECT *
    FROM trans
    WHERE accountid = NVL (NULL, accountid)
    AND transtypeid = 171
    AND NVL (description, '-1') = NVL ('Card Activation Fee ', '-1')
    AND ABS (transamt) = ABS (9.95)
    AND accountid <> 7689966
    AND postdate BETWEEN ( TO_DATE ('03/14/2006 00:17:43',
    'mm/dd/yyyy hh24:mi:ss'
    - .00011574
    AND ( TO_DATE ('03/14/2006 00:17:53',
    'mm/dd/yyyy hh24:mi:ss'
    + .00011574
    DETAILS:
    Statspack has shown this piece of SQL as the largest contender for "Buffer Gets" chewing up 513.28 seconds of CPU time out of 3,475 (See Top 5 Timed Events below)
    However, when I run the sql statement by itself in TOAD, it takes 90ms to complete and has a cost of 202 (See plan below). TRANS table has over 18m rows.
    Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    SELECT STATEMENT Optimizer Mode=CHOOSE          1           202                     
    TABLE ACCESS BY INDEX ROWID     SVOLTP.TRANS     1      65      202                     
    INDEX RANGE SCAN     SVOLTP.TRANS_POSTDATE_NIDX     1 K          7                     
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~ % Total
    Event Waits Time (s) Ela Time
    CPU time 3,475 49.99
    db file sequential read 1,340,884 3,197 45.99
    db file scattered read 180,048 70 1.01
    db file parallel write 3,983 49 .70
    log file sync 20,593 43 .63

    here is the actual statement taken from the package:
    select transid
    into lFromTransID
    from trans
    where accountid = nvl(lacctid, accountid)
    and transtypeid = lToTrans.transtypeid
    and nvl(description, '-1') = nvl(lToTrans.description, '-1')
    and abs(transamt) = abs(lToTrans.transamt)
    and accountid <> lToTrans.accountid
    -- Transactions must be posted within 10 seconds of each other
    and postdate between (lToTrans.postdate - .00011574) and (lToTrans.postdate + .00011574);

  • How could I transport package with all content within

    How could I transport package with all content ( I do not get it with se80->"write transport entry") or by entering in se10 in transport request object R3TR DEVC.

    go to SE03
    choose the third item "include objects in a request" by double-clicking
    there you set the first parameter "Package" to your package and execute
    note: you can also deselect the radiobutton "All objects" and set "Selected objects" then you will be able to fine-tune the list of objects

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to open a package body in Oracle sql developer

    How to open a package body in Oracle sql developer..any shortcut for that

    I need another way to get to my package body. I'm on a locked down system, so the only way I can reference anything is if I already know the name of it. I accidentally overwrote my text document that I was using to work on it and I closed out of the package body in sqldeveloper. There must be a command, like an alter or some such. Anyone know the old fashioned way of looking at a package?

  • How to create a package in ECC 6.0.

    Hi,
    Can you tell me how to create a package in ECC 6.0 system?
    Thanks in advance,
    Regards,
    Arnab.

    Hi,
    Thank you for your replies.
    Can you tell me the difference and uses of the two types of package I can create from SE21.
    i.e. : Package and package interface. any sap link would also be helpful. I need to know where i can use what and what would be helpful for my case.
    Regards,
    Arnab.

  • How to Install UTL_SMTP Package in Oracle 8.1.5

    Hi
    We are trying to use UTL_SMTO package to send mail.
    Will this package runs in Oracle 8.1.5? Any restriction on using this package?
    How to install this package? Where the SQL for this package is residing.
    If anyone can answer for this, we will be thankfull to you.
    regards
    Santhosh

    Hi,
    Run d:/oracle/ora81/rdbms/admin/utlsmtp.sql as SYS user. It create the package UTL_SMTP.
    Hope this helps.
    rukmini

  • Query takes long time 41 seconds to run how to tune

    my query is simple as follows...i dont know how to tune it..
    cur_memb_count (p_as_of_date IN date)
    is
    select
    count(ip.individual_id) membercount,
    --lpad(re.region_id,2,'0')||lpad('000',3,'0')||lpad( pb.plan_cd,3,'0') group_id,
    substr(pb.plan_cd,1,1)||lpad(re.region_id, 2,'0')||'0000' group_id,
    ipp.legal_entity_id,
    bus.gl_bus_unit_a,
    bus.lob,
    loc.gl_loc_nbr_a,
    prod.gl_product_cd_a,
    prod.gl_fin_argmt_a,pb.plan_type_id ,pb.plan_cd
    from
    plan pb ,region_map re , state_plan_billing spb,
    insured_plan_profile ipp , insured_plan ip ,
    ods.oods_gl_bus_unit bus, ods.oods_gl_loc_nbr loc,
    ods.oods_gl_product_line prod,
    household h,
    employer_household eh
    where
    ipp.residence_st_plan_billing_id = spb.state_plan_billing_id
    and ipp.insured_plan_id = ip.insured_plan_id
    and ip.plan_cd = pb.plan_cd
    and pb.plan_cd=spb.plan_cd
    -- and pb.plan_type_id = loc.lob
    and spb.state_cd = re.state_cd
    and p_as_of_date between ip.insured_plan_effective_date and
    nvl(ip.insured_plan_termination_date,'31-dec-9999')
    and ip.insured_plan_effective_date <>
    nvl(ip.insured_plan_termination_date,'31-dec-9999')
    -- the condition below is necessary. but not enough data to test.when
    uncommented will only give
    -- a few records. try testing it just by uncommenting it.
    --and p_as_of_date between re.region_map_start_date and re.region_map_stop_date
    and loc.lob=prod.lob and loc.lob=bus.lob(+) and loc.company_cd=bus.company_cd(+)
    and p_as_of_date between pb.plan_start_date and pb.plan_stop_date
    and p_as_of_date between ipp.ins_plan_profile_start_date and
    ipp.ins_plan_profile_stop_date
    -- and lpad(re.region_id,2,'0')||lpad('000',3,'0')||lpad(pb.plan_cd,3,'0')
    = loc.group_id
    and substr(pb.plan_cd,1,
    1)||lpad(re.region_id,2,'0')||nvl(employee_id,'0000') =loc.group_id
    and p_household_id_param = h.household_id
    and h.household_id = eh.employer_household_id
    and p_date_param between eh.emp_hhold_start_date and eh.emp_hhold_stop_date
    and insplan.individual_id=housmemb.individual_id(+)
    and eh.delete_ind = 'N'
    group by
    --lpad(re.region_id,2,'0')||lpad('000',3,'0')||lpad(pb.plan_cd,3,'0'),
    substr(pb.plan_cd ,1,1)||lpad(re.region_id,2, '0')||nvl(employee_id,'0000'),

    If many full table scans on big tables consider creating indexes. Or if many index reads consider forcing full table scans :)
    Ah, I just love these tuning questions. "My query is slow. Please make it go fast". Sure, put on these red shoes, click your heels three times and make a wish. Alas, tuning is rather more complicated than that, more of a science than a voodoo rirtual. We would like to help. But we need more data, some concrete figures. Otherwise we're just guessing.
    So, first off, please read the Performance Tuning Guide. Apply some of its techniques. If you still don't understand why your query is running slow, come back to us with table descriptions, volumetrics, indexes, explain plans, stats, timings and tkprof output.
    Good luck, APC

  • How to remove a package from package structure?

    Hello profs,
    i have a problem. I add a package 'A' to another package 'B' in the package builder.
    Now i don't know how to remove package 'A' from the list of package 'B'.
    I have not found in the docu of package builder how to remove a package from the included list.
    Has somebody an idea how to do it?
    Thanks a lot.

    I found out that the relation between the packages saved in table TDEVC.
    Field PARENTCL contains the surrounding package 'B' of the package 'A' field DEVCLASS.
    At the moment the only way to remove the package is to modify the table.
    But i look for another possibility for this issue.
    Best regards
    Waldemar

  • How to resolve AVCHD package problem in mountain lion

    how to resolve AVCHD package problem in mountain lion

    Thanks, David. I know this workaround. And one more with creating right-click Service. That's why I've used "uncomfortable" instead of "impossible". In my opinion, Apple should leave ability to choose OS's behavior, and I hoped somebody knew where to find it .

  • How to upgrade Support Package for NSP (Netweaver Sneak Preview) server?

    hello guru,
    I have installed Netweaver Sneak Preview on my notebook. This ABAP Application Server 7 's support package is 12. Can I upgrade it to the newest support package? Can I do it in the normal way, just like normal SAP server, use SPAM?
    Thanks a lot.

    Hi, is there any way, how to aply enhancement package 1 on abap trial 7.0? Thanks for reply

  • How to create the package.

    Hi ,
    How to create the package.
    Thanks

    Hi Mahaboob,
    Goto SE80 Transaction
    Select Package and below give the package name and click on enter.
    then u get a pop up asking to create package. Click yes. then u get a pop up  Package Builder: Create package
    Give the description and the Application component and click on create.
    Best regards,
    raam

  • How to Execute SSIS package through MySQL Procedure

    Hi Everyone,
    How to Execute SSIS package from MySQL Stored Procedure.
    Please share your suggestions on this.
    Regards,
    Vaishu

    I am not sure whether you have SSIS license version installed in the system where MYSQL is there. In order to run SSIS package we need to have DTEXEC executable file and it comes with SSIS license version.
    An SSIS package can be executed from command prompt as,
    C:\>dtexec /f E:\package.dtsx
    I am not expert in MYSQL however in TSQL we can run dos command or scripting language such as vbscript.
    Similarly you need to check in MYSQL. This is MSSQL Server forum.
    Refer
    http://www.ehow.com/how_8789576_call-ssis-package-vbscript.html
    http://www.mssqltips.com/sqlservertip/1775/different-ways-to-execute-a-sql-server-ssis-package/
    Regards, RSingh

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

  • How to include IHREP package?

    Hi Experts,
          The package IHREP is not available in our server. How to include that package?
    Regards
    K Arasu

    Hi
    Since this is a Std Package and the IW37N is a Std transaction, it should by default will come along with the std software?
    Which version of SAP are you working?
    In ECC6.0 it is there? may be you are working in Lower version of SAP?
    Chek whether IW37 is there or not? I think it will be there.
    Check with the Basis person for this..
    Regards
    Anji

Maybe you are looking for

  • Choose default Search Help in a collective Search Help

    Hello, In a collective search help, when it was launched, I want to open the same search help by default. In fact, the SAP standard keep in memory the last search help opened and when we re-opened it, the last search help in open. Thanks in advance.

  • Exporting images from iPhoto to a Blogger Blog

    I have just set up a Blogger blog and am having soem issues with sizing my images correctly for the blog. When I export them even as large images, I have to resize within the post in Blogger, the images then lose their clarity and just look terrible,

  • Mac Firefox starts but no window

    Firefox starts on my iMac, but no window appears. I try File > New Window, but no window appears. I tried rebooting my iMac and I downloaded and reinstalled Firefox -- still no window. I've been using Firefox for years and have never had a problem li

  • Place to put swing.jar to enable Swing for IE?

    I know I can extend the JVM in Netscape 4.7, or any of the JRE's from Sun by sticking extra JAR files into the lib/ext directory. Is there a similar place to do so to extend the Microsoft JVM for IE. Specifically, I want to do that for Swing. I know

  • How can I stop QuickTime from streaming all internet videos?

    HI When I updated my ITunes all the media file associations were changed to QuickTime. I want the Windows Media Player to keep the associations. What I did so far is: I have disabled all associations in QuickTime player options (except .mov) and turn