How to reduce the cost of procedure?

hi,
Suppose i have a procedure of more than 1000 lines,during normal processing it takes few seconds.So, how can one reduce the processing for the same.
Thanx ,
Piyush

DBMS_PROFILER is one way to analyse where the time is being spent. You can use this from the command line, or many GUI tools such as PL/SQL Developer provide a convenient interface.
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/tuning.htm
http://www.dbasupport.com/oracle/ora10g/Unleashing-DBMS_Profiler.shtml
http://www.allroundautomations.com/plsprofiler.html

Similar Messages

  • How to reduce the cost for this select script

    Hi,
    "select id from order where cmd like 'Error ID %'"
    This s my script. And the order table has morethan *5lakhs* records, when i select id for the above condition, my sql script cost is - *2200*,and cpu_cost is -- *235660697* i got this above information thro' plan_table, could anyone plz give suggestion to reduce the cost. (fyi -- cmd field has index with not null constraint).
    Thanks.

    user13294228 wrote:
    "select id from order where cmd like 'Error ID %'"
    This s my script. And the order table has morethan *5lakhs* records, when i select id for the above condition, my sql script cost is - *2200*,and cpu_cost is -- *235660697* i got this above information thro' plan_table, could anyone plz give suggestion to reduce the cost. (fyi -- cmd field has index with not null constraint).What does these cost numbers mean? Do you know what it means and what measurement unit is used for these costs? Will a cost of 2000 be fine? 1500? What specific number will make you sit back and think that the cost is now acceptable?
    Or instead, do you not think it is more important to rather look at what the query does and why.. and then determine if there are methods to do that better and faster?
    So let's look at what the query does. It uses a a LIKE predicate. This means that if an index is available, it cannot be used to find a specific indexed value... as the query is not sure what the value is. All that the query knows is what the first couple of characters are for the value.
    So how would an index be used? Have you looked at the execution plan? Do you understand why the CBO made the decision it did?
    Now - how do you expect the CBO to find the relevant rows any faster? The index benefits the query how? As the CBO cannot put the index to any better use than what it is already doing, what other options are there? Can alternative indexing or data structures be considered? Can parallel processing be used?
    These questions are intended to make you analyse the problem - and understand the problem. That is always the 1st step.. solving the problem only comes after this 1st step.

  • How to reduce IO COST???

    Dear All,
    Any one know how to reduce the IO COST?
    Thanks In advance.

    Your question is as generic as it could possibly be, and therefore it's not easy to help you. But in a nutshell, IO can be improved by spreading your tablespaces on different different disk readers/writers (not the correct word I'm sure, but hopefully you understand what I mean). Might be good for example to store your indexes in a different tablespace (disk) than the tables, so that there is not too much contention when using the index and table concurrently for a query. You could also reduce the amount of IO by creating new indexes when FTS against large tables are run (if enough of the rows are filtered out). Sorry, that was a very generic answer to a very generic question.
    Daniel

  • How to reduce the size of cloned Oracle Applications Instance

    How to reduce the size of cloned Oracle applications instance, so as to save the storage space for the cloned systems.
    How can we remove unimplemented modules in the instance so that we can reclaim the space occupied by them.
    can any please suggest on this..?

    mumbai,
    I would recommend to leave it as it is.
    If you can add some inexpensive HDD to your test system then do so.
    The Apps DB storage decreasing process is quite painful and isn't straightforward.
    You can’t just delete unused schemas & tablesapces (if they are not used than they are not consuming reasonable space anyway). The modules in Apps are using each other procedures and objects. The effect of deleting one module (schema) is highly unpredictable.
    If you will do something like that than you will not be able to patch your cloned system after that.
    Some things can be done however in order to reduce size of a testing Apps system:
    - Decries UNDO & TEMP tablespaces. Normally you do not need that big tbs in test system as you have got in the production.
    - If your REDO LOG files are quite big and you have got a lot of redo groups you can recreated smaller REDO log files.
    - On Apps tier you can delete OUTput and LOG files
    In case you still would like to decrease data volume in your testing system you need to take a look on some tools which provide data subtracting capabilities from Apps DB. This process has to be quite intelligent. The tool have to know the data structures in APPS DB and subtract data in the way to not harm logical relationships between records. After a subtracting process you will need to make multiple FULL exp/imp cycles in order to reduce physical space consumed by the database. Beside the fact that those tools are quite expensive you will need to spend a lot of your time to implement those.
    BTW: That is the size of you production DB? Have you analyzed which module takes most of the space? May be you can identify top 10 objects and try to archive a data from those object preventing the future grow of the production database.
    Just my 0.02£
    Yury
    Check this out:
    A.
    http://www.freelists.org/archives/ora-apps-dba/05-2006/msg00000.html
    B.
    - Users can subscribe to your list by sending email to
    ora-apps-dba-request_at_freelists.org with 'subscribe' in the Subject field
    C.
    http://www.freelists.org/archives/ora-apps-dba/05-2006/threads.html

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • How to reduce the level of free text / direct purchasing

    A common problem at all sites is how to reduce the level of free text / direct / non catalogue based purchasing. This is where users enter an account assignment and free text instead of using an existing material number.
    This is often the case because it is too "dificult" for the user to search and find the correct material number.
    How have other sites handled this?
    has anyone found a solution that if a user enters lets say "paper" into the free text box, a pop up appears with a match on possible materials with the word "paper" in the short description? This sounds like a pretty easy function to implement? Does anyone have the code?
    Cheerio

    >
    Ravi.or.raj wrote:
    > The search function you ask for is pretty much a standard functionality.
    > In ME21N , click on  "Personal Settings"    , and select the check box "int search help on"  .
    Yes this works, but you have to tell that the user has to enter the text  in the material number field, then SAP will search thru the database.

  • How to determine the cost center

    Dear experts:
    Could you give me some suggestions about how to determine the cost center depending on the different
    storage location when we use the t-cdoe MI07
    Thanks in advance.
    Rong

    Hello experts!!!
    how have you resolved this issue???
    I have the same situation, and i dont know how to manage this.
    Thank you very much in advance.
    Best regards,
    M. Cecilia Vacatello.

  • How to reduce the  width of  OVS view layout

    Hi All,
           In   ESS-Bank Information-Bank Payee  field we have a  OVS View UI .Can any one please let me know how to reduce the  width of OVI  view layout (Search Screen)
    Regards
    Alex

    Check this [thread|restrict input field size;
    Hope this helps.

  • How to reduce the size of a pdf?

    How to reduce the size of a pdf?

    Not do-able with Reader. Acrobat Pro can reduce PDF file size, but... if it's text only (no media or images) it won't reduce any more than it already is.

  • Web report for opening it takes long time how to reduce the time?

    HI Experts,
    I created report using webi. For next time while opening it takes more time. How to reduce the time.

    Hi Manikandan,
    There could be multiple reason behind the bad performance.
    1. Are you using supported JVM version to run Webi reports?
    2. Do the reports contain prompts? Are the LOVs set to "Automatic refresh before use"? If yes, uncheck it.
    3. How many queries do the report has? Can you run the queries one by one and check which query is taking much time?
    4. If it based on relational database, copy and run it against the database directly and check how much time it takes. If more, you may have to fix the issue at database level like using temporary tables, indices, etc.
    5. Also check if there are firewalls or proxy server between client and server communication. if yes, try to refresh the report directly on BO server and check.
    6. Check if there is any hinderance between BO server and Database server communcation.
    Hope it will help.
    Regards,
    Yuvraj

  • My iPhone 6 plus screen was crashed, how much is the cost if I want to repair it at Apple? FYI: I didn't bought Applecare

    My iPhone 6 plus screen was crashed, how much is the cost if I want to repair it at Apple? FYI: I didn't bought Applecare+. I bought my iPhone 6 plus 3 months ago in Singapore.

    $129 US. https://www.apple.com/support/iphone/repair/screen-damage/ For local pricing call your nearest Apple store. If you live somewhere other than Singapore you'll have to send the phone to someone you trust in Singapore and have them take the phone in to have it repaired. iPhone's do not have an international warranty and can only be serviced in the country they were purchased.

  • How to reduce the coulmns width for Timesheet in ESS ?

    Hi,
    In ESS Timesheet, how to reduce the columns width for professional self service?
    It is looking fine for weekdays, but when the user is assigned as professional self service at back end, few more sales order columns are added dynamically to timesheet for professional self service user. Now these extra coulmns are jumbled and also wide.
    I tried the OSS notes 989453 in 'listviewerslim.java' , but it doesn't work. Is there any other alternative work around for this. Do I need to work at backend to solve this, If so, please let me know the work around.
    Points will be awarded.
    Regards,
    Raj.

    Dear Friend
    Really need ur help as we are upgrading from 4.7 to ECC6.
    Our client want to implement tiem sheet. Request you to provide gudiance wheher CATS i.e CATSRegular orESS timesheet would be useful.
    if would be great if u could provide a kind of advantages adn disadvantages of both.
    Suitable points would be rewarded
    Sam

  • How to reduce the barcode size

    hi
    How to reduce the barcode size in smartforms
    Thanks & Regards
    krishna rao

    Hai,
    Go to se73
    select system barcodes radi button
    click change button
    it wil moves to another screen .In that screen it wil show all Bar codes.
    select u r barcode from the list  click and change button.
    in this way u wil change barcode size.
    Reagards.
    kishore ale

  • How to Make the Cost Center filed Mandatory ?

    While entring the Doc in FI  for Expense A/c, How to Make the Cost Center filed Mandatory?

    Hi,
    Got to field status groups and select cost center field as required field.
    Refer to this documentation
    http://www.sap-basis-abap.com/sapfi012.htm
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

Maybe you are looking for

  • Mail taking up too much iCloud backup space; deleting emails doesn't help

    My iCloud backup said yesterday that over 500 MB was being used by the Mail portion of the backup. So I went into iCloud.com, deleted all of the mail in my Sent Mail folder, then emptied the trash entirely. When I did that, it got worse; it said that

  • So many Yosemite issues

    Hi, all — It seems that Yosemite has killed (or at least gravely wounded) a number of connectivity issues with my Mac and other devices. I'm running Yosemite on a mid-2011 27-inch iMac with 2.7 GHz Intel Core i5 processor(s) and 8GB RAM. My phone is

  • I can't get Flash Player to install

    I'm using Windows 7 (64 bit) and I'm running IE9 and Opera for my browser. I cannot use anything that requires flash player, as it says I need to update mine. When I go to download the new one, it simply refreshes my page with no further instructions

  • How to embed JApplet in to web page

    Hello friends, I hv the problem in embedding the JApplet into the web page. Can anyone tell me how to do it.

  • My ipad2 is not connecting to the internet

    I bought an ipad2 yesterday it connected to the internet and app store no problem to begin with but now it keeps saying it cannot connect to the internet even though on my settings it is saying the wifi is connected.  I have a sky router - netgear an