Automatic SAG&PGA

I’m confus about memeory parameter settings in 11g on windows server 2003. I have disable automatic memeory management by setting memory_target to zero. I have assign 4900M to PGA_Arregate_taget, SGA_MAX_TARGET = 4500M SGA_TARGET 4000M. now I wanted to switch automatic memory management for this I set memeory_target and memeory_max_target 9Gb out of 12Gb Ram. But when I query. show parameter sga, pga it still show all values which I set last time. I have restart the instance. Kindly tell me am I using Automatic memory management or not?

Hi..
But when I query. show parameter sga, pga it still show all values which I set last time. I have restart the instance. Kindly tell me am I using Automatic memory management or not?As you have set MEMORY_TARGET value Automatic memory management is enabled. The positive values for the SGA_TARGET and the PGA in you case will act as minimum values for the sizes of the SGA or instance PGA.You can set them to zero.They won't automatically get zero.
Refer to:-[http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/memory003.htm#ADMIN11200]
Anand

Similar Messages

  • Oracle 9i Automatic PGA Memory Management

    Hello,
    my team and me, we are facing difficulties to change the size of the PGA used by our server processes for HASH JOIN, SORT... operators,
    here you can see the results of "select * from v$pgastat":
    [pgastat dynamic view results|http://pastebin.com/m210314dc]
    We have been increasing consecutively our pga_aggregate_target parameter from 1.7 Gb initially to 4Gb then at the end 6Gb, the value of "Global memory bound" and " aggregate pga auto target" on the link above are still equal to 0.
    I have been reading threads on the forum and documentation see below, I understand how the global memory manager (CKPT) computest the sql memory target and then the global memory bound, as far as I understand I can only "play" on the pga_aggregate_target value in order to increase the size of our PGAs (I exclude to play with hidden parameters).
    - Joze Senegacnik: Advanced Management of working areas in Oracle 9i/10g : http://tonguc.yilmaz.googlepages.com/JozeSenegacnik-PGAMemoryManagementvO.zip
    - Dageville Benoit and Zait Mohamed: SQL memory management in oracle 9i
    Here different information that could be usefull:
    OS: solaris 10 (db running in a non global zone)
    Arch: 64-bit sparcv9 kernel modules
    Physical memory: 32 Gb (being shared between all non global zones)
    Oracle version: 9.2.0.5 32bits
    Values of init parameters and hidden parameters that could be relevant:
    [init parameters|http://pastebin.com/m40340cf4]
    [hidden parameters|http://pastebin.com/m50d74c53]
    Maybe useful queries:
    over work areas views, I use the following script:
    [wa_analysis.sql|http://pastebin.com/d606ebd9b]
    and the result of it:
    [result of script wa_analysis.sql|http://pastebin.com/m5f49a2e5]

    Joze Senegacnik wrote:
    - either your sessions are using a lot of memory for storing variables like pl/sql arrays which is subtracted from automatic management: PGA_AGGREGATE_TARGET - (aggregated persistent area + a part of the run time area of all server processes)
    - you are hitting a bug
    - or maybe something elseI am really happy you come to this conclusion too, they are the same we made with my team and we have submitting to Oracle support via metalink SR 3-1216060641, we were asking if we hit the following bug (in note 1) or we leak about pl/sql or java... or else indeed,
    note 1: PGA_AGGREGATE_TARGET Assigned Memory Is Left Unconsumed When Set High [ID 844542.1]
    Joze Senegacnik wrote:
    I would like to know:
    1.) what were the values for global memory bound and autotarget immediately (or in short time) after the database restart or when you have increased them Just after the restart of the database and just after the change of P_A_T, we query v$pgastat immediately after and the value of global memory bound and auto target were equal to 0 byte,
    2.) If you are able to change value of PGA_AGGREGATE_TARGET (P_A_T) to 10GB what happens with global memory bound and auto traget. They should be positive at least for a short time. As this is a dynamic parameter you can change it for a short time, run queries and set it back.We plan to do this tonight, we have an "heavy" ITIL change management procedures that allow us to make changes approved by change manager and only during night maintenance window on production system, I come back to you tomorrow. But we have been increasing from 1,7Gb to 4Gb to 6Gb, each time I have been querying v$sgastat in the next 2 mins and global memory bound and auto target were equal to 0 byte.
    3.) Have you checked on the OS level how much memory are using server processes - do these numbers come along with what Oracle says. Not during problematic activities, meaning active work areas performing HASH-JOIN, SORT... operators,
    unfortunately it is a production system, even if he performs poorly, we are not allowed to try or retry the poor queries, but if it comes again I'll do it,
    during low activities, here the results paste with the scripts I used:
    [pga processes info in oracle|http://pastebin.com/f2e540062]
    I spooled the result rows of this previous script in /var/tmp/pga_processes.log then I loop over all processes pid and display pmap output anon info like this:
    h5. cat /var/tmp/pga_processes.log | awk -F' ' '{print $5}' | xargs -n 1 -i pmap -x {}| grep -v 'Addres' |egrep 'Kb' 2>&1 > /var/tmp/pga_processes_os.log
    then I merge line by line the two files with unix paste command, here the results:
    [os and oracle pga informations|http://pastebin.com/f4135c8a6]
    4.) How many server processes are running on you system in average/max and are you using just dedicated processes or also shared?in average 250, we are only using dedicated processes,
    5.) At time of low activity is the global memory bound still 0 or becomes > 0. I have been querying every 15 min during more than 24 hours low activities, it still stay to 0,
    5.) Are you experiencing paging/swapping on OS level?No, here orca figures for details:
    [free memory|http://img509.imageshack.us/img509/5897/ohuron1asd2gauge1024xfr.png]
    swap
    [pagein pageout|http://img121.imageshack.us/img121/6946/ohuron1asd2gaugepginper.png]
    [memory usage|http://img19.imageshack.us/img19/2213/ohuron1asd2gaugeppkerne.png]
    6.) Please post the result of: select * from X$QESMMSGA ;during low activities, [results X$QESMMSGA|http://pastebin.com/f61df7093]
    While you will be answering to my questions I'll try to figure out what we can do to properly diagnose the problem. As you are on 9i it is a little bit harder.I am really kind of your help, as we say in my country, "if you need tow arms one day to carry something, call me."
    --Jeremy Baumont                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Automatic PGA Memory Management in 9i and 10g

    Hi,
    I read the Doc# 223730.1 for Auto PGA advisory.
    At one point in the document, there is given a query to calculate percentage of times work areas were executed in optimal, one-pass, or multi-pass mode since start-up.
    My question is why there is a clause low_optimal_size > 64*1024); ---- for 64 K optimal size
    Why it is safe to ignore all the workareas below 64 K.
    How to decide which entries should be ignored?
    Thanks,
    Neeraj

    I think 64K value used in that document is just an example.
    You can use the prior query (one above which you have cited here) for finding non-empty buckets and then view histograms for range of your concern (the range which is getting used more frequently in your environment).

  • Automaticly offer outstanding items of a business partner in journal entry

    One Customer ist a stright bookkeeper. Hi only likes to book in the journal and won't use the banking wizzard.
    Is there a possibility, that there will be automaticly an offer with the outstanding items of the business-partner when making a journal-entry like:
    GL 1.000,00 against BP
    Thanks for helping

    Good morning,
    thanks for your answer. I know this proceeding i've written from other ERP-Software (sage).
    When you make a journal entry, i'll get an offer of the outstanding items from the BP an i can choose, where i'll subtract the payed amount from.
    I see, there is no standard possibility to do so in SBO.
    Why you say, that it isn't a good practise to pass yournal entries on bp?

  • Pop-up saga & other pains in the butt

    Hi everyone,
    Am a total novice to web design, and have just concocted my
    first site...not without some headaches though.
    PLEASE pretty please will those of you more experienced be
    able to shed some light on these few irritations:
    (BTW I'm using Dreamweaver and Fireworks, both version 8)
    I've uploaded the culprit website for your reference...
    http://www.hatchtech.com.au/TEST/index.html
    1. I created a menu in FW (seemingly not the best way to do
    it, having read previous threads...but I'm stuck with it for now!!)
    and the pop-up menu ('Applications') previews functionally in
    FW...but then when I insert it into DW it seems to go haywire and
    the pop-up is really fast, so fast that you can't even click on the
    sub-menus! Is it something simple that I am overlooking?
    2. For some reason the body text is appearing in bold, but I
    have set it to plain old Arial in Page Properties...I've tried it
    on several browsers and it still shows as bold...any particular
    reason why this is happening?
    3. Instead of 'floating' on a white background, I would like
    the website to sit within a light grey background...just like this
    one:
    http://www.abgbiodiesel.com/
    Can someone kindly explain how I may do this?
    4. And finally: Obviously, I have simply delved into the
    programs with only rudimentary instruction. At this stage what is
    the best thing I can do for myself to make my next website less of
    a saga/ to increase my skills/avoid bugging you guys in the future
    : ) Please be kind and forgive my ignorance - I'm a daggy ole print
    designer who is new to this scene!
    Muchos muchos gracias in advance, for your time
    Kat

    The DW / FWs popup menus do not play nice with DW templates.
    You say you are stuck with this menu - can't you seriously
    rethink this -
    it's already biting you, you may as well change it now before
    you go any
    further.
    2. The bold text is due to the fact that you are using a
    table header <th>
    which automatically creates bold text. Move the text from the
    <th> to the
    <td> . The <th> is introduced because you must
    have had it checked in the
    dialogue box when you created the table.
    3. The background for your document is not set to grey... try
    this:
    body {
    background-color: #666; /* change the grey as needed */
    4. Quite a few errors in your html code - which certainly
    don't help the
    correct rendering of your page...
    http://tinyurl.com/e84mv
    You will need to fix those and then see where you are with
    your page.
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    |Tutorials|SEO |CSS Templates
    http://www.csstemplates.com.au
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    "kat06" <[email protected]> wrote in message
    news:[email protected]...
    : Hi everyone,
    : Am a total novice to web design, and have just concocted my
    first
    site...not
    : without some headaches though.
    : PLEASE pretty please will those of you more experienced be
    able to shed
    some
    : light on these few irritations:
    : (BTW I'm using Dreamweaver and Fireworks, both version 8)
    : I've uploaded the culprit website for your reference...
    http://www.hatchtech.com.au/TEST/index.html
    : 1. I created a menu in FW (seemingly not the best way to do
    it, having
    read
    : previous threads...but I'm stuck with it for now!!) and the
    pop-up menu
    : ('Applications') previews functionally in FW...but then
    when I insert it
    into
    : DW it seems to go haywire and the pop-up is really fast, so
    fast that you
    can't
    : even click on the sub-menus! Is it something simple that I
    am overlooking?
    : 2. For some reason the body text is appearing in bold, but
    I have set it
    to
    : plain old Arial in Page Properties...I've tried it on
    several browsers and
    it
    : still shows as bold...any particular reason why this is
    happening?
    : 3. Instead of 'floating' on a white background, I would
    like the website
    to
    : sit within a light grey background...just like this one:
    http://www.abgbiodiesel.com/
    : Can someone kindly explain how I may do this?
    : 4. And finally: Obviously, I have simply delved into the
    programs with
    only
    : rudimentary instruction. At this stage what is the best
    thing I can do for
    : myself to make my next website less of a saga/ to increase
    my skills/avoid
    : bugging you guys in the future : ) Please be kind and
    forgive my
    ignorance -
    : I'm a daggy ole print designer who is new to this scene!
    : Muchos muchos gracias in advance, for your time
    : Kat

  • SOA-- Invoking OSB Service Getting Error :ORA-00084: global area must be PGA, SGA, or UGA

    Hello Friends,
    Really appreciate your help/inputs on the below Error Message encountered while running a Concurrent Program--using SOA:Same encountered in recently refreshed DEV instance, Can it be related to some Developement Instance Configuration related to SOA, as same working as expected in PROD.PLEASE ASSIST
    Need your inputs on the Error Message we are getting which Invoking OSB Service.
    "Error inside invoke_osb_service -> Error Code : -84Error Message :ORA-00084: global area must be PGA, SGA, or UGA "
    Can you please review and confirm if the same encountered before or assist on the same:
    XXFIN_AP_INVOICES_INT_IB_PKG.invoke_osb_service
    -- Define the SOAP request according the the definition of the web service being called
    l_soap_request := 
                '<?xml version = "1.0" encoding = "UTF-8"?>'
            || '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prox="http://OmnicareFinance/ProxyInput/">'
             ||   '<soapenv:Header/>'
             ||     '<soapenv:Body>'
             ||       '<prox:InboundProcess>'
             ||     '<Source_system>'||g_source_instance||'</Source_system>'
             ||     '<Run_mode>'||g_run_mode||'</Run_mode>'
             ||     '<Batch_key>'||g_batch_key||'</Batch_key>'
             ||     '<Request_id>'||g_request_id||'</Request_id>'
             ||     '<Invoice_Header_File_name>'||g_file_name||'</Invoice_Header_File_name>'
             ||     '<Invoice_Line_File_name>'||NULL||'</Invoice_Line_File_name>'
             ||     '<File_location>'||g_file_location||'</File_location>'
             ||       '</prox:InboundProcess>'
             ||     '</soapenv:Body>'
             ||   '</soapenv:Envelope>';
    Oracle Apps Log File
    -->Entering XXFIN_AP_INVOICES_INT_IB_PKG.invoke_osb_service
    -->   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    -->Response> status_code: "200"
    -->Response> reason_phrase: "OK"
    -->Response> http_version: "HTTP/1.1"
    -->Response From OSB: <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:prox="http://OmnicareFinance/ProxyInput/"/><soapenv:Body xmlns:prox="http://OmnicareFinance/ProxyInput/"><prox:InboundProcessResponse><status>E</status></prox:InboundProcessResponse></soapenv:Body></soapenv:Envelope>
    -->OSB Response: E
    -->Error inside invoke_osb_service -> Error Code : -84Error Message :ORA-00084: global area must be PGA, SGA, or UGA
    -->   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    -->Entering XXFIN_AP_INVOICES_INT_IB_PKG.capture_error_info
    THANKS
    ANKUR

    Hi..
    >
    # symptom: ORA-00381: cannot use both new and old parameters for buffer cache size specification
    # cause: Both db_block_buffers and db_cache_size parameters are defined in the init.ora (instance parameter file). The db_block_buffers parameter has been deprecated and has been maintained only for backward compatibility. The db_cache_size parameter is one of the size parameters which defines the size of the cache for buffers. These parameters cannot be combined. Setting this along with the Dynamic SGA parameters errors out.
    >
    For sga_target refer to [http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams193.htm#REFRN10256]
    which quotes
    >
    SGA_TARGET specifies the total size of all SGA components. If SGA_TARGET is specified, then the following memory pools are automatically sized:
    *Buffer cache (DB_CACHE_SIZE)
    * Shared pool (SHARED_POOL_SIZE)
    * Large pool (LARGE_POOL_SIZE)
    * Java pool (JAVA_POOL_SIZE)
    * Streams pool (STREAMS_POOL_SIZE)
    If these automatically tuned memory pools are set to non-zero values, then those values are used as minimum levels by Automatic Shared Memory Management. You would set minimum values if an application component needs a minimum amount of memory to function properly.
    >
    So, the what ever the value are set for the parameter will act as minimum value when sga_target is set.
    HTH
    Anand

  • Suggestion  in increasing the SGA and PGA after increase in the RAm of the machine .

    Hi All,
    Need an expert suggestion on the change's  in the SGA and PGA of the oracle database after increasing the size of the machines RAM .
    We have 64G of RAM in the machine .
    There are 9 DB's running on  oracle 10g  and 11g  on  this machine
    The total SGA of all the database's is around 18G .
    DB1  has 2G of MAX_SGA_SIZE
    DB2 has  8G  of MAX_SGA_SIZE
    DB3 has 1G   of MAX_SGA_SIZE
    DB4 has 2G    of MAX_SGA_SIZE
    DB5  has 676M   of MAX_SGA_SIZE
    DB6   has 1.5G   of MAX_SGA_SIZE
    DB7 has  1.2 G   of MAX_SGA_SIZE
    DB8 has  675M   of MAX_SGA_SIZE
    DB9  has 672 M   of MAX_SGA_SIZE
    Now the machine RAM is up  to  96G  64+ 32
    what would be the suggestion on the increase in the SGA and PGA max size .
    Any expert suggestion is highly apprciated .
    Thanks in Advance

    Thanks for this Justin.
    Here the exercise is to add 4 CPU's  and 32G RAM to the server  earlier it was with 4 CPU's and 64G RAM  this was decided  by the server support team .
    here is the stats from SAR   command ..
    The platform is
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    04:00:01          CPU     %user     %nice   %system   %iowait    %steal     %idle
    04:10:02          all     86.47      0.00     12.52      0.99      0.00      0.02
    04:20:01          all     84.83      0.01     11.80      3.21      0.00      0.15
    04:30:01          all     76.23      0.00     10.30     12.34      0.00      1.12
    04:40:01          all     79.14      0.00     12.07      8.30      0.00      0.49
    04:50:01          all     77.63      0.00     12.19      9.40      0.00      0.77
    05:01:01          all     75.95      0.00     10.50     12.80      0.00      0.75
    05:11:01          all     83.21      0.00     11.98      4.54      0.00      0.26
    05:21:01          all     76.37      0.01     11.20     11.49      0.00      0.94
    05:31:01          all     77.97      0.00      9.04     10.30      0.00      2.69
    Average:          all     79.72      0.00     11.28      8.20      0.00      0.80
    Now that the 4 CPU's and RAM is been added , my request is how to  calculate the required kernal parameters for oracle  to this new configuration  for some improvement in the oracle performance .
    like kernal.shmmax
          kernal.shmall
    /dev/shm file system
    largest value of MEMORY_MAX_TARGET or MEMORY_TARGET of all instances
    the oracle is set as automatic memory management . it is not an RAC environment .
    Any Expert suggestion is highly apprciated .
    Thanks in advance .

  • SGA/PGA best practice

    With an XE limitation of 1GB for the PGA and SGA, how would one best preserve this limitation?
    In other words, how would one minimise the PGA and SGA usage via ones interface with Oracle?
    For instance, in a SQL query I was building I could either (The query has multiple aggregates on multiple tables in a 'one to many' join relationship):
    1) Use WITH clauses
    2) Use inline views
    3) Use standard views
    4) Use temporary tables
    5) Maybe more possibilities
    Without much of an insite into how Oracle 'works' it's difficult to gauge which of these is less 'resource hungry'.
    Possibly there is a reference on how to use the PGA & SGA efficiently?
    Or possibly a more definitive explanation on what's actually stored in these memory areas (rather than just 'prorgam' and 'system' data).
    Regards all,

    SGA is used in 2 main areas: parsing the SQL and avoiding disk reads by having stuff in memory. There is one SGA for all of XE instance.
    PGA is used heavily for sorting, hash joining and 'working stuff'. The PGA is created for each Dedicated Server process. Much of the PGA is inside the SGA for Shared Server processes
    SGA: (There are exceptions to each of these 'Rules Of Thumb' or 'ROT' statements)
    Good coding technique will allow reuse of SQL and avoid as much as possible reparsing;
    Use bind variables;
    Do not create SQL on the fly;
    Avoid dynamic SQL (concat strings to create SQL on the fly);
    Forget about tweakiing the buffer cache as it is mainly a performance thing that you can't do much about in XE;
    WITH clause is nice as it may reduce the count of subqueries;
    Leave it with 'automatic memory management' (again a perf hit, but it will attempt to optimize mem availability);
    Don't reinvent - Use the features that are loaded as they will likely get statements out faster, releasing memory faster;
    Stored Views may (often do) grab unneeded table data. When joining to stored views, see whether they can be replaced by cleaner code;
    Do not create SQL on the fly.
    PGA:
    Use shared server when feasible (at risk of performance hit);
    Global Temp Tables go into PGA, watch the use;
    Maximize reuabale SQL, minimze all other languages (remote or in DB) including PL/SQL;
    Watch for PGA wasters such as UNION vs the better UNION ALL, and unneeded sorts;
    PGA is 'swapped out' to Temporary tablespace. Make sure temp tablespace big enough ... it's not counted in the 4GB disk;
    Avoid using COMMIT except at end of transaction. Avoid COMMIT in loops. Make sure undo tablespace is big enough ... it's not counted in the 4GB disk ;
    Did I mention it's not a good idea to create SQL on the fly?

  • Why it automatically deduc 1.98$ from my debit card?

    I didn't buy anything, why it automatically deduc 1.98$ from my debit card?
    Please kindly check ASAP
    It's not much money, but I quite not happy about that
    detail:
    Order ID: MH6T3WJ71L
      Receipt Date: 02/08/13
    Order Total: $1.98
    Billed To: Visa .... 2639
    Item
    Developer
    Type
    Unit Price
      Candy Crush Saga, Extra Moves 
         Report a Problem     
      King.com Limited 
      In App Purchase 
    $0.99
      Candy Crush Saga, Extra Moves 
         Report a Problem     
      King.com Limited 
      In App Purchase 
    $0.99
    Order Total:
    $1.98

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    Have you got the Candy Crush game on your iPhone and have you (or anybody who has access to your account or phone) made in-app purchases in it ? If not then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    You can turn off in-app purchases on your phone via Settings > General > Restrictions > In-App Purchases 'off'

  • Huge long time direct path read temp, but pga size is enough, one block p3

    Hi Gurus,
    Can you please kindly provide some points on my below questions. thanks
    my env
    select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    OS: Linux 4 2.6.39-100.5.1.el5uek
    session operation: update a partition which have 4 partitions and total 16G
    session trace info:
    the session keep at active status and waiting for below wait event for more than 70 hours, and os iostats and cpu are almost idle on most time.
    WAIT #8: nam='direct path read temp' ela= 7615 file number=202 first dba=105072 block cnt=1 obj#=104719 tim=1344850223569499
    WAIT #8: nam='direct path read temp' ela= 5989 file number=202 first dba=85264 block cnt=1 obj#=104719 tim=1344850392833257
    WAIT #8: nam='direct path read temp' ela= 319 file number=202 first dba=85248 block cnt=1 obj#=104719 tim=1344850399563184
    WAIT #8: nam='direct path read temp' ela= 358 file number=202 first dba=85232 block cnt=1 obj#=104719 tim=1344850406016899
    WAIT #8: nam='direct path read temp' ela= 349 file number=202 first dba=85216 block cnt=1 obj#=104719 tim=1344850413023792
    WAIT #8: nam='direct path read temp' ela= 7975 file number=202 first dba=85200 block cnt=1 obj#=104719 tim=1344850419495645
    WAIT #8: nam='direct path read temp' ela= 331 file number=202 first dba=85184 block cnt=1 obj#=104719 tim=1344850426233450
    WAIT #8: nam='direct path read temp' ela= 2641 file number=202 first dba=82880 block cnt=1 obj#=104719 tim=1344850432699800
    pgastat:
    NAME VALUE/1024/1024 UNIT
    aggregate PGA target parameter 18432 bytes
    aggregate PGA auto target 16523.1475 bytes
    global memory bound 1024 bytes
    total PGA inuse 75.7246094 bytes
    total PGA allocated 162.411133 bytes
    maximum PGA allocated 514.130859 bytes
    total freeable PGA memory 64.625 bytes
    PGA memory freed back to OS 40425.1875 bytes
    total PGA used for auto workareas 2.75195313 bytes
    maximum PGA used for auto workareas 270.407227 bytes
    total PGA used for manual workareas 0 bytes
    NAME VALUE/1024/1024 UNIT
    maximum PGA used for manual workareas 24.5429688 bytes
    bytes processed 110558.951 bytes
    extra bytes read/written 15021.2559 bytes
    Most operation in PGA via query on V$SQL_WORKAREA_ACTIVE
    IDX maintainenance (sort)
    My questions:
    1. why 'direct path read temp' just read one block every time, my understanding is this event can read one block and multiple blocks at one read call, why it keep read one block in my session?
    2. my pga size is big enough, why this operation can not be treated with in PGA memory, instead of read block from disk into temp tablespace?
    Thanks for you inputs.
    Roy

    951241 wrote:
    since the session(which was from hard code application) is completed.First of all, you showed wait events from sql trace in the first post. Is the tracing was disabled in the latest execution?
    >
    I just generated the AWR for that period, as get long elapsed time SQL as following
    Elapsed Time (s) Executions Elapsed Time per Exec (s) %Total %CPU %IO SQL Id
    3,075.35 0 85.10 91.03 8.68 duhz2wtduz709
    524.11 1 524.11 14.50 99.29 0.30 3cpa9fxny9j35
    so I get execution plan as below for these two SQL,
    select * from table(dbms_xplan.display_awr('&v_sql_id')); duhz2wtduz709
    PLAN_TABLE_OUTPUT
    | Id  | Operation         | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT  |             |       |       |     4 (100)|          |
    |   1 |  UPDATE           | WORK_PAY_LINE |       |       |            |          |
    |   2 |   INDEX RANGE SCAN| WORK_PAY_LINE |     1 |    37 |     3   (0)| 00:00:01 |
    Note
    - automatic DOP: Computed Degree of Parallelism is 1 because of parallel thresholdI am not sure the why elapsed time in AWR is different with time in execution plan. Column "Time" in an execution plan is estimated time. In this execution plan Oracle expects to get 1 row, estimated time is 1 sec.
    So, you need to check why estimated cardinality is such low, check statistics on the table WORK_PAY_LINE.
    You update 10Gb from 16Gb table via Index Range Scan, it looks inefficient here by two reasons:
    1. when a table updated via Index Range Scan optimized index maintenance is used. As a result some amount (significant in your case) of workareas is required. Required size depends on size and number of updated indexes and "global memory bound", 1Gb in your case.
    2. if required table buffers will not be found in the cache it will be read from disk by single block reads. If you would use Full Table Scan then buffers for update most likely will be found in the cache because before it read by multiblock reads during Full Table Scan.
    Figures from your AWR indicate, that only ~ 9% the session waited for I/O and 91% it worked and used CPU
    Elapsed Time (s) Executions Elapsed Time per Exec (s) %Total %CPU %IO SQL Id
    3,075.35 0 85.10 91.03 8.68 duhz2wtduz709 This amount of CPU time partially required for UPDATE 10Gb of data, partially for sorting during optimized index maintenance.
    I would propose to use Table Full Scan here.
    Also you can play around and create fake trigger on update, it will make impossible to use optimized index maintenance, usual index maintenance will be used. As a result you can check the same update with the same execution plan (with Index Range Scan) but without optimized index maintenance and "direct path .. temp" wait events.
    Alexander Anokhin
    http://alexanderanokhin.wordpress.com/

  • HT204380 My phone (iPhone 5S) getting green display after one second going to switch off then automatically ON during FaceTime

    My iPhone (iPhone 5S) getting green display after one second going to switch off then automatically ON during FaceTime call. My OS version now 7.0.4. I think recent update actually to fix the above issue but still continues.

    Similar issue Andrew.  After installing 8.0, the IOS deleted 225 songs from one of my playlists, and I'm still "recalling"  songs that are no longer in my Music Library.  Fortunately, although the playlist of 235 had only 6 songs left on it ( on my  Mac), the Playlist was not erased from my I -Phone.  I was able to recreate the Playlist on my Mac, using the intact playlist on my phone.  When I synched however, I was back to square one.  I went to the Apple store, and I had to reset the phone .  We also downloaded IOS 8.02.  They saved my playlist in the Cloud, deleted it from my Mac, then synched it.  Lo and behold, the playlist I recreated on my Mac, synched to my I Phone.  After the reset, I had like 11GB of free space.  (Its been 5 days since the "reset" and the number of GBs fluctuates from day to day !!)
    When I got home from the Apple store I spent after  hours reinstalling all the apps, synchng the phone to the Bluetooth in my car ( you know the rest of the saga) , I purchased a song from I Tunes.  I "drag and dropped" it into a Playlist, and synched.  Didn't work.  Song shows in "Recently Added", but the drag and drop feature doesn't work.  Bottom line,  I'm not willing to "reset" my phone every time I add a song !  I've tried any number of fixes posted to this support community, but none have worked for me.
    Furthermore,  it took me 3 hours to get the phone re-synched to the Bluetooth system  in my car.  However every time I connect to "Bluetooth Audio", the system needs to "find" and "reconnect to" my phone.    If you ( or anyone else ) finds  something that might work for both the music synch and /or the Bluetooth, I'd appreciate your input. 
    Thanks, Lorenzo

  • Oracle 11g SGA & PGA setup

    Hi I installed oracle 11g & create database , now i want to use fully optimize database.
    Currently my DB server RAM is 16GB, how should i allocate SGA for this.If i used oracle 11g automatic memeory management feature to allocate SGA+PGA, how should i use them.Currentlymy SGA is set to 4GB, Please advise

    Hi,
    It is depends upon the workload which you have in your organization(future and present situation)
    SGA+PGA size will be automatically managed by Oracle. No need to worry about this.
    If you need to increase Memory_Max_Size, you can also increase the Memory size in the future.
    Thanks

  • Investigate session PGA for one process

    Windows server 2003 with Oracle 9.2.0.8.0
    In this server there's a process (myprocess.exe) that runs every night at 4:00.
    The process is always running, but only does actually work between 4:00 and 5:00. The rest of the day is present, with doing anything (idle).
    Running this query:
    SELECT
    s.sid sid
    , lpad(s.username,12) oracle_username
    , lpad(s.osuser,9) os_username
    , s.program session_program
    , lpad(s.machine,8) session_machine
    , (select ss.value/1024/1024 from v$sesstat ss, v$statname sn
    where ss.sid = s.sid and
    sn.statistic# = ss.statistic# and
    sn.name = 'session pga memory') session_pga_memory
    , (select ss.value/1024/1024 from v$sesstat ss, v$statname sn
    where ss.sid = s.sid and
    sn.statistic# = ss.statistic# and
    sn.name = 'session pga memory max') session_pga_memory_max
    , (select ss.value/1024/1024 from v$sesstat ss, v$statname sn
    where ss.sid = s.sid and
    sn.statistic# = ss.statistic# and
    sn.name = 'session uga memory') session_uga_memory
    , (select ss.value/1024/1024 from v$sesstat ss, v$statname sn
    where ss.sid = s.sid and
    sn.statistic# = ss.statistic# and
    sn.name = 'session uga memory max') session_uga_memory_max
    FROM
    v$session s
    ORDER BY session_pga_memory DESCI can see that myprocess.exe has:
    154Mb of session_PGA_memory
    163Mb of session_pga_memory_max
    104Mb of session_UGA_memory
    111MB of session_UGA_memory_max
    For a idle process, this is just to much. So I think there are a lot of cursors not being close.
    If I kill the myprocess.exe, immediaty I can see the oracle.exe memory used drop... around ~150MB.
    If I restart myprocess.exe, PGA only has 4MB... until the next morning, where it has ~150Mb.
    Getting the SID for myProcess.exe, and running this query:
    SELECT s.machine, oc.user_name, oc.sql_text, count(1)  FROM v$open_cursor oc, v$session s
    WHERE oc.sid = s.sid
    AND s.sid=38
    GROUP BY user_name, sql_text, machine
    HAVING COUNT(1) > 1 ORDER BY count(1) DESC I was expecting to find a lot of cursors... but I did not! Only 9 rows are returned, and all with similat Sql_Text
    "DELETE from GT_A "
    "DELETE from GT_B "
    "DELETE from GT_C "
    (9 rows returned)
    This GT_* are 9 global temporay tables, used in the PL/SQL execution.
    1) Why are this 9 "DELETE from GT_" still present in open_cursors, if the process is idle since 5:00?
    2) Checking the code, I found that they are created with: "On commit delete rows"...
    but could this 9 global temporary tables justify the 154MB of PGA not release in the session?
    Thanks in advance;
    Edited by: PauloSMO on 6/Set/2011 4:20

    The fact that the work area policy is set to auto and that you're on dedicated server of course invalidates the setting here. It's just a little odd that it was set given the docs state that it is defaulted to 0 and is recommended to be used in shared server environments.
    Oracle does not recommend using the SORT_AREA_RETAINED_SIZE parameter unless the instance is configured with the shared server option. >Oracle recommends that you enable automatic sizing of SQL working areas by setting PGA_AGGREGATE_TARGET instead. >SORT_AREA_RETAINED_SIZE is retained for backward compatibility.
    PauloSMO wrote:Still active looking for a way to find why a idle process, has is session with 160MB in PGA.
    Why does it not free memory to the Operating System!The pga_aggregate_target is a target. It will be exceded if necessary. If the memory is being used it can't be returned to the OS. The issue is finding out where it is using the memory. As you can see it's not particularly easy to dig into the real detail of what's contained in the PGA for that particular session, so why not set up a simple job to query the stats for that session every 10 seconds or something? That way you'll be able to get a profile of when the memory usage is going up and hopefully be able to correlate that with what the process is doing. It's not ideal but that's essentially what something like active session history is doing. If you have a decent level of instrumentation via things like dbms_application_info, it will make the job a little easier.
    HTH
    David

  • Working of pga

    hi
    please tell me the internally working of pga ..im confused how it is work...
    working of PMON..
    which type of lock release by pmon and how the lock held...

    Forget internals, there is no need to go for it.
    Ok let me try this. When you write some thing in your copy, do you allow or will you allow some one else write in that copy? I guess not, reasons may be, the other person may write something same which you have written creating duplicasy, the other person may write some thing which you wont want to write andlastly and more unlikely in the copy example of mine, he may want to write on the sme localtion where you have written.So will you let that happen? No right?
    Now if we talk about database, when you issue an order by clause to see EMPs table data in the sorted mannter, does eveyrbody see it in the same manner?No right.Only you see it. So it means that there is some thing which is specific to the session of yours. I like to call it my private copy, my space which is given to my process by the help of PGA, Process Global Area. Its basically some thing which is meant for your session only, for example hot cursors opened by your session.
    PGA is prepared with the help of the areasize paramters prior to 9i and from 9i onwards, PGA_AGGREGATE_TARGET, a more automatic way of managing its memory.
    Hope that clears some fog. Read concepts guide which explains in more detail about it. Here is the link for the same,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/memory.htm#sthref1416
    HTH
    Aman....
    PS: Ask one question in one thread,it would make people concentrate on your thread and their replies in a better way.
    Edited by: Aman.... on Nov 1, 2008 11:33 AM

  • Sage Pay Bug list / ETA on mending them

    Hi can someone at BC give me an Estimated Completion date on this list of sage pay bugs. For other forum users I thought maybe you might want to add your Sage pay bug list here too so we can have one overall bug list of sage pay issues and hopefully get some mended!
    Bug # 2980769  Submitted 15-Sep-2011
    Sage Pay - Customers are not automatically subscribed to the secure zone when they purchase an item
    Bug #  3316320  Submitted  23-Aug-2012
    Whenever a payment is processed through SagePay with a CC that has 3D Secure enabled the recorded payment does not take into account any gift vouchers used, even though the amount actually charged is correct.
    Unfortunately I cant locate the bug number on this one however I submitted a case last year. The bug was a customer who made a purchase and then signed up to a list on check out wasn't signed up to the list! (sorry I know I should have the bug number so i will try and replicate this one and submit it again!)
    Anyone else have any?
    Thanks
    Karl

    if they are unable to update all languages in a normal time gap (it is now 6 months ago they released firmware 4.22 for the first product code (actually mine and maybe a few others)), they should not offer those many versions. the huge bug with out of memory in nokia navigator with firmware 3.58 is not fixed yet for those people. really absolutely not acceptable.
    besides that, currently my phone is in a nokia service center, microphone doesnt work anymore (the one who i call just hears a very loud noise). my brother got the same phone, his one is in nokia service center since 2 weeks now, because it doesnt charge anymore as there seems to be a connection broken inside the phone).
    well that will be fun if the phone returns (approximately 4 weeks), as I guess the phones will have new IMEIs as they will send 2 new phones and not fix the problem (would cost them more). but as i got a western europe with nordics-map licence locked to the imei, the next problem will be there after I get a nokia 6110navi with another IMEI back. i get really upset with this really slow support.

Maybe you are looking for

  • Error 109

    Hello, I have recently purchased my registered version of CS6 Extended which is expected to be in the mail in a few days. However, i felt it would be a good idea to try to install the trial version so when it came i can just enter the code. It keeps

  • Why won't my iMessage activate again?

    My Imessage has been acting up so I turned it off and back on again to see if it would help but now it will not activate again

  • Will OS-X Tiger for eMac work with PowerMac G4 800mz?

    I was about to purchase CD install, since I don't have a DVD, when I noticed it was labelled eMac. Will this work? I realize eMac needs special OS, but wondered if it would work the other way around.

  • IHow to force display of trailing zeros for fixed point numbers?

    I have an 8 bit unsigned fixed point number, with 7 integer bits and 1 fractional bit, so the desired delta is 0.5. I want it to always display the fractional bit, even when that bit is 0. In other words, as this number is incremented, I want to see:

  • What is exact meaning of the perimeter?

    I trouble about the particle information. In my application, After processed the blob, and I reported area and perimeter each indexed particle. but In the first image, the area is 6, and the perimeter is 8. What happen? Before I knew, the perimeter i