Hash join, how to know how much of pga is using?

Good Day everybody...
Is there a way to know if i have enough pga for a given hash join??'
so far i have PGA_AGGREGATE_TARGET = 200MB
WORK AREA SIZE POLICY = AUTO
The advisor from EM looks good, but i know that the query im interested on its expensive.
so reworking the question...
¿how can i get the propper ammount of bytes needed by a given hash join?

Its complicated - There are pages of stuff in the manual, histograms, forecast histograms.
But I think you can get a long way with:
SELECT name profile, cnt, decode(total, 0, 0, round(cnt*100/total)) percentage
FROM (SELECT name, value cnt, (sum(value) over ()) total
FROM V$SYSSTAT
WHERE name like 'workarea exec%');
The output of this query might look like the following:
PROFILE CNT PERCENTAGE
workarea executions - optimal 5395 95
workarea executions - onepass 284 5
workarea executions - multipass 0 0
If all executions are optimal, who can ask for more?
Also:
V$PGA_TARGET_ADVICE
This view predicts how the statistics cache hit percentage and over allocation count in V$PGASTAT will be impacted if you change the value of the initialization parameter PGA_AGGREGATE_TARGET. Example 14-8 shows a typical query of this view:
Example 14-8 Querying V$PGA_TARGET_ADVICE
SELECT round(PGA_TARGET_FOR_ESTIMATE/1024/1024) target_mb,
ESTD_PGA_CACHE_HIT_PERCENTAGE cache_hit_perc,
ESTD_OVERALLOC_COUNT
FROM V$PGA_TARGET_ADVICE;
The output of this query might look like the following:
TARGET_MB CACHE_HIT_PERC ESTD_OVERALLOC_COUNT
63 23 367
125 24 30
250 30 3
375 39 0
500 58 0
600 59 0
700 59 0
800 60 0
900 60 0
1000 61 0
1500 67 0
2000 76 0
3000 83 0
4000 85 0
As far as I understand if, if the overallocation count is nonzero, Oracle will override your pga_aggregate_target anyway. (Having said that, dont forget, this parameter is a target, not a hard & fast limit)

Similar Messages

  • How to know how much size we need in a tablespace to create index

    Hi,
    can anybody plz let me know,
    how to know how much space i need in a tablespace to create an index.
    thanks in advance

    Estimate Index Size and Set Storage Parameters
    http://www.camden.rutgers.edu/HELP/Documentation/Oracle/server.815/a67772/indexa.htm#388
    Estimating Bitmap Index Size
    http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch6_acce.htm#3625
    HTH
    Girish Sharma

  • How to know how much quantity is available for the batch ?

    hi all,
    I am doing a batch split on delivery item....but when i enter the batch and quantity ( say 500qty) it says Zero quantity available for the batch....
    <b>How to know how much quantity is available for the batch for that material</b> so that can we use the batch during batch split.....because batches are attached to a handling unit as well.....
    regards,
    Subba

    HI Subba,
    You can know this Thr MMBE Transaction Code
    Reward if it helps
    regards
    Srini

  • How to know whether the current database is using a password file or not?

    How to know whether the current database is using a password file or not?

    The remote_password_file is the parameter that determines if you can use or not a password file. The values this parameter can have are NONE, SHARED, EXCLUSIVE. It is pretty obvious, if it is set to either SHARED or EXCLUSIVE the oracle instance has enabled the access through a password file for the SYSDBA and SYSOPER roles.
    ~ Madrid

  • How to know how many equipments can be produced?

    Hello friends,
    One equipment is having bill of material.  How to know how many equipments can be made with the stores stock? How to know for making min. no. of materials reqd for making optimum no. of equipments?
    bye,
    srinivas.

    Hi,
    Please have a look at the Rules of Engagement before posting to these forums. The link is here:
    [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Once you have read the above, please provide the necessary information.
    Regards,
    Amit

  • HOW TO KNOW HOW OLD IS THE PHONE

    How to know how old is the iphone

    Plug the SN in here:
    http://www.chipmunk.nl/klantenservice/applemodel.html
    This will tell you when your phone was made.

  • How to know which type of jdbc driver used in my application

    How to know which type of jdbc driver used in my application.

    My approach will be....
    Type1: you have to have ODBC s/w install on your machine...even the connection string starts with jdbc:odbc....so it can be identifed easily
    Type2: you have to install client s/w in your machine...if you are using oracle oci driver ...you need to install oracle client s/w
    Type3: you use servername / port to connnect to middleware
    Type4: you do not need any client s/w
    So, If your application works without any client s/w on your machine....you might be using Type4/Type3 driver.....otherwise Type2
    Someone pls add more ....

  • How to know how much we have to pay to a bank monthly

    in import purchase, how to bring that L/C process in SAP
    i need a report how to know that a company how much they need to pay to that particular bank?
    Edited by: Praveensap23 on Nov 18, 2010 1:30 Pm

    One post,one question.
    Please close this thread. Post your question in subject in ERP-Financials forum.

  • How to know how much I can shrink the table

    How can I know how much I can shrink the table after firing the delete statement?

    Hi,
    alter table table_name shrink space;
    For example:
    create table HWM_TEST(
      ID      NUMBER,
      DB_USERVARCHAR2(12),
      TARIH   DATE
      STORAGE(
              MAXEXTENTS       UNLIMITED
    insert into HWM_TEST
      select level   id,
              user    db_user,
              sysdate tarih
       from dual
      connect by level<100001;
      commit;
      100000
    rows created.
      Commit complete.
      insert into HWM_TEST
      select * from HWM_TEST;
      insert into HWM_TEST
      select * from HWM_TEST;
      insert into HWM_TEST
      select * from HWM_TEST;
      insert into HWM_TEST
      select * from HWM_TEST;
      insert into HWM_TEST
      select * fromHWM_TEST;
      commit;
      100000
    rows created.
      200000
    rows created.
      400000
    rows created.
      800000
    rows created.
      1600000 rows created.
      Commit complete.
    select count(*) from hwm_test;
       COUNT(*)
    3200000
       1 row selected.
      Elapsed: 00:00:02.26
    delete from HWM_TEST;
      commit;
      COUNT(*)
    0
      1 row selected.
      Elapsed: 00:00:02.42
      alter table HWM_TEST enable row movement;
      alter table HWM_TEST shrink space;
      set timing on
      select count(*) from hwm_test;
    COUNT(*)
    0
       1 row selected.
      Elapsed: 00:00:00.01
    Thank you

  • How to know how many carts have been ordered as "bought on behalf of"

    I'm looking for a way to know how many carts have been order in the past six months as "bought on behalf of" I've looked at tables CRMD_PARTNER and BUT000 but, I'm not sure how to determine what are the key fields and the SAP queries that I'll need to obtain such count. Any help will be appreciated. Thanks,

    I'm in Classic scenario which means that the PO and other relevant documents are stored in ECC. A programmer here helped me to obtain the information that I was looking for by querying the PO header and PO items tables (EKKO, EKPO) for those orders where the requestor and the bought on behalf of persons where different (ERNAM, AFNAM):
    SELECT DISTINCT EKKO~EBELN EKKO~ERNAM EKPO~AFNAM
    FROM EKKO
    INNER JOIN EKPO ON EKKO~EBELN = EKPO~EBELN
    WHERE EKKO~BSART = 'EC'
    AND EKKO~ERNAM <> EKPO~AFNAM
    AND EKKO~AEDAT > '20110101'
    Thanks All for your help,
    Oscar.

  • How to know how many users uses Report Designer?

    Dear Experts,
    Somebody knows if it's possible to know how many users have made look ups in Report Designer on one period or how many modifications?
    Thanks in advance.

    Hi,
    If the cube is checked for Statistics, there is a option settings for BI Statistics under tools, then all the user related info is stored in Techincal Content Cubes. Based on TCT(technical Content Cubes), you need to create a report based on the requirement. From then we can know user log info for the particular queries.
    Hope this helped you
    Thanks
    PT

  • How to know whether infotype record is created using PA30 or PA40

    Hi,
    can any one suggest is there any way to know how a record is created in database i.e by performing actions in  PA40 or from PA30.
    Thanks
    Deepthi

    Hmmmm...
    are you asking Record or actions???
    If records then forgot about PA40 it will perform actions not records.
    Coming back PA30-> TO create , modify display
                          PA20 -> TO DISPLAY.
    For PA30 -> after record is created come back to original pa30 screen input the Pernr number , Select/input  infotype number
    then click on the icon Overview button (or SHift + F8) then you can see the data , records.
    or you go and see in SE11 OR SE16 another direct method
    Regards
    sas

  • How to know whether a particular query is using the aggregates

    hi all....
    im very new to this group so plz help me out.....anyway hi to all ....
    There are many aggreegates are there but how to know which query is using perticular a?gregates

    Hi,
    use query monitor screen RSRT and select the option execute + debug . and u can have the option of checking display aggreagates for that query!
    cheers,
    ravi

  • How to know what level of optimization to use / which symbols to remove

    I probably should have asked this question along time ago, but how do you know what level of optimization to use and what symbols you can safely remove when compiling

    EDLundquist wrote:
    I probably should have asked this question along time ago, but how do you know what level of optimization to use and what symbols you can safely remove when compiling
    I have no direct experience with development for Macs, but based on my experience on other platforms, I'd use lower optimization and symbol removal early in the debugging process, increasing those as the program becomes more stable.

  • How to know how many process chains were scheduled?

    Hi guys,
    Is there any table o transaction to know how many process chains per client were scheduled?
    I need to know per client how many pchains were scheduled and the technical name of each one.
    Thks and regards,
    EV

    Hello,
    SM37 - Search for BI_PROCESS_TRIGGER scheduled jobs.
    Regards,
    Jorge Diogo

Maybe you are looking for

  • ORA-00604: error occured at recursive SQL level 1 ORA-12705: Cannot access

    Oracle Database 10g Express Edition Release 10.2.0.1.0 on OS Linux Debian 3.1_r4_stable SQL> select userenv('LANGUAGE') from dual; USERENV('LANGUAGE') RUSSIAN_RUSSIA.AL32UTF8 Client OS MS Vista Ultimate EN , region=RUSSIAN.RUSSIA Oracle Developer sui

  • Putting a still image in a menu frame

    Hello, I am making a DVD menu using a standard template. There is a frame in the template to take a still image. When I put an image in this frame only part of the original still is shown. I have tried resizing the image but to no effect. Can anyone

  • Document attachment to Purchase Requisition

    Hi Folks, For attaching a document within Purchase Requisition, there is an option at line item level. Can contract documents be attached there? Also, I presume the doucment can be 'viewed'/ downloaded by the buyer for whom the PR was created. I am c

  • Need Help Choosing Tag & Rename Software

    I'm looking for a T&R software that not only works well with iTunes, But also *writes the changes back to the playList.* If you change something in the song file name then the play list may not work if it's not changed to match? I'm manually managing

  • Possiblely a bug - windows update error when using NAT between Hyper-V Virtual Ethernet Adapter

    I'm using SCVMM managing my Hyper-V machine. I have three physical network adapter on my hyper-v host as below: I'm using SCVMM 2012 SP1 to create two virtual network adapter base on each Realtek controller, Bridge the traffic from the physical adapt