Pga and temp

Hi
Sometimes I hit unable to extent temp errors.
My db version is oracle 9i.
I guess the pga is not set. I am not sure why total PGA inuse has a value in second query..
Is there any impact if I set pga?
SQL> show parameter pga
NAME TYPE VALUE
pga_aggregate_target big integer 0
SQL> select name,value,unit from v$pgastat where name like'total PGA%';
NAME VALUE
UNIT
total PGA inuse 29602816
bytes
total PGA allocated 69943296
bytes

If your PGA_AGGREGATE_TARGET is set to 0 that means you are using automatic work area management.
your *area_size are in effect.
http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1158.htm#REFRN10165
However your temp tablespace can't extent usually not directly related to the setting of this parameter. Your temporary tablespace usually will be 5 times or more bigger than this setting. You should find out what's SQL using so much temporary space and tune that query. If you had better query with wild sort no matter how much you increase the PGA setting and temporary tablespace it's still gonna bump out.

Similar Messages

  • Question about PGA and TEMP usage

    hi,
    we had a situation whereby OEM was reporting that because the PGA was too small during a time frame that extra I/O on the TEMP was being created. Does this then mean that the TEMP was acting as a pseudo PGA.
    regards

    Have a look at these threads
    Re: PGA memory problem - Oracle 10.2.0.4 on windows 2003
    Re: PGA Memory Usage Details
    <br>
    Oracle Database FAQs
    </br>

  • What is the diffrence between PGA and UGA?

    Hi All
    Just one question
    "What is the diffrence between PGA and UGA?"
    Thanks

    PGA Memory
    The Program Global Area (PGA) is a memory region that contains data and control information for a single process (server or background). The PGA is made up of the following:
    Stack Space
    A PGA always contains a stack space, which is memory allocated to hold a session's variables, arrays, and other information.
    Session Information - (UGA)
    A PGA in an instance running without the multi-threaded server (named Shared Server in Oracle9i) requires additional memory for the user's session, such as private SQL areas and other information. If the instance is running the multi-threaded server, this extra memory is not in the PGA, but is instead allocated in the SGA (the Shared Pool).
    Shared SQL Areas
    Shared SQL areas are always in shared memory areas of the SGA (not the PGA), with or without the multi-threaded server.
    Non-shared and Writable
    The PGA is a non-shared memory area to which a process can write. One PGA is allocated for each server process; the PGA is exclusive to a server process and is read and written only by Oracle code acting on behalf of that process.
    UGA Memory
    The UGA, or User Global Area, is allocated in the PGA for each session connected to Oracle in a dedicated server environment. The PGA is memory allocated at the client to hold a stack which contains all of the session's variables, etc. In a Shared Server environment, Oracle allocates this memory in the Shapred Pool (the shared pool is contained in the SGA), for all sessions. This helps to reduce the PGA (client) memory footprint of Oracle, but will increase the SGA (shared pool) requirements.

  • Basic question on log and temp files

    Hi,
    I need to create a new database in this way:
    - 2 GB for the data file
    - 1 GB for log and temp files
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;
    How can I say the size of log and temp files?
    Thank you
    Nicola
    Ps-I'm on windows platform

    user575754 wrote:
    - 1 GB for log and temp filesWhat's the link between log file size and tempfile ?
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;This command does not actually create a database, but a tablespace. If you ran it, that means your db aleady exists.
    So, not sure to follow you on this thread.
    Nicolas.

  • How to exclude UNDO and temp tablespace using monitoring template

    hi,
    as per MOS note id 816920.1 undo and temp tablespace is excluded from monitoring starting version 11G onwards.It says that thresholds will need to be explicitly set if undo and temp needs to be monitored
    we have grid 12C implemented now with monitoring templates which sets thresholds for all tablespaces. does it apply that thresholds to undo and temp too?? we are receiving alerts for undo and temp tablespaces and we wish to disable them. We have undo tablespaces with different names in many databases as per naming conventions for that line of business.
    How can i exclude undo and temp tablespaces from monitoring using grid 12C monitoring templates. is there a way through templates where i can set thresholds of permanent tablespaces only???

    In EM12c, go to the 'Enterprise' menu, then 'Job', then 'Library'. There should be an out-of-the-box job called "DISABLE TABLESPACE USED (%) ALERTS FOR UNDO AND TEMP TABLESPACES" that you can run against your database targets, and that job will disable database-generated alerts.
    If a previous admin has set up EM12c-generated alerts for undo and temp, then yes, a monitoring template will take care of disabling them. Either remove those alerts from the existing monitoring template and apply them to your targets, or create a new monitoring template based on one database's current settings, remove those warning/critical thresholds for your undo and temp tablespaces, and apply it to your targets.

  • Clip Paths and temp-files

    I guess that clip paths are needed for all the files I've
    pasted from Illustrator, but do I need all the temp-files?
    How can I clean up the clip paths, bitmaps and temp files I
    don't use in my project? Flash freezes a couple of seconds now when
    I add, remove or edit an item in the Library...

    Now I may be wrong (see my sig), but there is only one way I
    know to get only the files you use into the library. Copy all of
    the frames in the main timeline (highlight all frames - right-click
    copy frame), then create a blank document, right-click on frame one
    and paste the frames. That will only bring across items from the
    library that are used, leaving behind the garbage. Save your new
    document.

  • SGA, PGA and... little extra?

    Will oracle process use some extra "non oracle" memory for OS related stuff?
    Mean, not considering SGA, I connect a database process and I see:
    SQL> select p.program,
      2  p.spid, pm.category, pm.allocated/1024 allocated, pm.used/1024 used, pm.max_allocated/1024 max_allocated
      3  from V$PROCESS p, V$PROCESS_MEMORY pm
      4  where p.pid = pm.pid
      5  and p.spid =2650;
                                                                                                            Max
                                                                              Allocated       Usedd   allocated
    PROGRAM                        SPID                     CATEGORY                 Kb          Kb          Kb
    oracle@uxlabhost11             2650                     SQL                      14           9          42
    oracle@uxlabhost11             2650                     PL/SQL                   56          34          57
    oracle@uxlabhost11             2650                     Other                  1501                    1501That's allocated PGA after having connected and done nothing else
    So it somehow allocated 1.4 Mb upon start-up...
    Now question is. Do oracle processes use OS memory which cannot be considered as SGA or PGA?
    Reason being my trying to estimate memory needs for a database server. Many I've read correct formula should be SGA + max allocated PGA + some_extra_just_in_case...
    Is there an estimate on how much that "some_extra_just_in_case" would be per process?
    If OS dependent, I'm implementing on RHEL 6...
    thanks

    So, I've used pmap...
    Got 257 enties in the form "4096K rw-s- /dev/shm/"
    since we are using AMM , that should do for PGA and SGA ... some 1052672 Kb, which process is attached to...
    yet pmap then continues to display other entries....
    0000002a95557000      4K r-x--  /opt/oracle/product/11g/lib/libodm11.so
    0000002a95558000   1024K -----  /opt/oracle/product/11g/lib/libodm11.so
    0000002a95658000      4K rw---  /opt/oracle/product/11g/lib/libodm11.so
    0000002a95659000      4K rw---    [ anon ]
    0000002a9565a000    392K r-x--  /opt/oracle/product/11g/lib/libcell11.so
    0000002a956bc000   1024K -----  /opt/oracle/product/11g/lib/libcell11.so
    0000002a957bc000     40K rw---  /opt/oracle/product/11g/lib/libcell11.so
    0000002a957c6000      4K rw---    [ anon ]
    0000002a957c7000    864K r-x--  /opt/oracle/product/11g/lib/libskgxp11.so
    .. TRUNCATED...
    0000003fb810a000     64K rw---    [ anon ]
    0000003fbbd00000     84K r-x--  /lib64/libnsl-2.3.4.so
    0000003fbbd15000   1020K -----  /lib64/libnsl-2.3.4.so
    0000003fbbe14000      4K r----  /lib64/libnsl-2.3.4.so
    0000003fbbe15000      4K rw---  /lib64/libnsl-2.3.4.so
    0000003fbbe16000      8K rw---    [ anon ]
    0000007fbffde000    136K rwx--    [ stack ]
    ffffffffff600000      4K r-x--    [ anon ]
    total          1276452KNotice "total 1276452K"
    So you saying non SGA/PGA would be 1276452 - 1052672?
    That would be too much... yet if pmap another process, almost all flags (hex column) but [ stack ] are the same....
    So how to tell which of those are shared and which are "exclusive" to the process, i.e: The "some extra just in case" mem...
    thanks

  • Disk space transaction  and temp table lock  in oracle

    Hi,
    Today many sessions used to get disk space transaction lock and temp table lock and i am seeing these locks first time in my Production database,
    is there any workaround to avoid this contension.
    Thanks
    Prakash GR

    Post your version (all 3 decimal places).
    Post the SELECT statement and results that have led you to this conclusion.
    Other than the fact that you have seen a number what, precisely, is the issue.

  • When opening a sealed file, are the Autosave-File and Temp-Files encrypted?

    Hi, when opening / editing a sealed file (e.g. a MS Word document), are the Autosave-File and Temp-Files encrypted?

    Hello,
    Yes they are. If they weren't, it would be relatively easy to leak an unsealed version of the file. In older versions of the Desktop IRM opened all files in browser, so theIRM Desktop had to encrypt and copy around these files manually. Nowadays, the IRM Desktop is embedded in the Office applications themselves so we leave the temporary file creation to the application but manage the encryption depending on the nature of the file. So the autosave and temp files (where content may reside) are encrypted, but the lock file (which is only for ownership, not content) is not encrypted for example.
    In fact, the autosave/temp files which are encrypted are actually treated as sealed files, so they contain all the metadata fields you would expect. For example, open a sealed document in Word and set the autosave to every minute and make some changes. wait a minute and you'll see the autosave file (which is a .asd) update automatically (the default location is C:\Documents and Settings\<youruserid>\Application Data\Microsoft\Word\). Make a copy of the file and close Word. If you open the file and Select a Program from a List and choose Word you'll see the file open as a sealed document. If you rename the extension to .sdoc or .sdocx (depending on what the original file was), then you can right click Properties and see the metadata is there too.
    Nicely secure.
    Regards,
    Frank.

  • UNDO and TEMP usage by a schema

    Hi,
    How can I findout UNDO and TEMP space usage by a schema? do we have any tables for this?
    If I want to get UNDO,TEMP space or any other resource used by a schema for 24 Hours period,can get this info.
    Can you please suggest the procedure to know the high resource consumption application?
    I am using Oracle 9.2.0.4 in SUN cluster environment.
    Thanks very much in advance.I apreciate your help
    Thanks
    Thanks

    Hi,
    About UNDO, you can check the status of the undo segment currently used by active transactions.
    select s.username, t.xidusn, t.ubafil, t.ubablk, t.used_ublk
    from v$session s, v$transaction t
    where s.saddr = t.ses_addr;About others user session's information, you can try this below:
    select osuser,
           machine,
           username,
           segment_name,
           sa.sql_text
    from   v$session s,
           v$transaction t,
           dba_rollback_segs r,
           v$sqlarea sa
    where  s.taddr = t.addr
    and    t.xidusn = r.segment_id(+)
    and    s.sql_address = sa.address(+)
    order by osuserAbout TEMP:
    To monitor tempspace eating by sessionSELECT a.sid,b.BLOCKS FROM v$session a , v$sort_usage b
    WHERE a.saddr=b.SESSION_ADDR;
    To monitor tempspace eating by SQLSELECT a.sql_text,b.BLOCKS FROM v$sql a , v$sort_usage b
    WHERE a.sql_id=b.sql_id;Cheers

  • How to rebuil undo and temp tbspc

    Hi hussein/helios
    Our apps undo and temp tablespaces got so big ( like 10Gb each) that it almost run out of space. Ho do i resync in back to 2Gb each.
    Is there a system commnad like > alter tablespace undo resync?
    Thanks a lot
    msK

    Hi,
    Please refer tech note *262066.1 : How To Size UNDO Tablespace For Automatic Undo Management*
    Hope helps.
    Regards,
    X A H E E R

  • How to exclude undo and temp from "Tablespace Space Used (%)"

    Dear All
    Is it possible to exclude undo and temp tablespace monitoring from "Tablespace Space Used (%)" matric?
    Thanks & Regards
    Quazi Abdur Rab

    If you use TEMP >=100 as Warning, this warning can still be raised.
    What version of the database is it? If Oracle 10g, Grid Control (the agent) searches the alert table in the database for alerts, so the database raises the alert and the agent just passes this alert to Grid Control.
    If you are using Oracle 10g, you can use the following statement (connected as sys):
    DBMS_SERVER_ALERT.SET_THRESHOLD(
    metrics_id => DBMS_SERVER_ALERT.TABLESPACE_PCT_FULL,
    warning_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    warning_value => '90',
    critical_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    critical_value => '100',
    observation_period => 1,
    consecutive_occurrences => 1,
    instance_name => NULL,
    object_type => DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,
    object_name => 'TEMP');
    This will create the GT (Greater Than) instead of GE (Greater Equal).
    Kind regards,
    Dave
    ps. I'm using GC 10.2.0.3.0, so thanks for the note that 10.2.0.4 doesn't take 100+ values.

  • Queries regarding SGA, PGA and parsed SQL Queries

    Hi
    I am new to Oracle server architecture.
    Please correct me if am wrong.
    As per my understanding, the data that we retrieve from a SQL query is stored in SGA in Database buffer cache.
    I have some queries:
    1. Does the database buffer cache store only data from SQL queries or anything else also? What is its size? Can we set the size?
    2. Where are the parsed SQL queries stored - SGA or PGA? And where exactly? I want to know if all the users connected in an Instance have access to each other's parsed SQL queries?
    3. SGA is shared by all users in an Oracle Instance? PGA and UGA are local to a specific user in an instance? Is it correct?
    Thanks
    Abhi

    AB312062 wrote:
    Hi
    I am new to Oracle server architecture.
    Please correct me if am wrong.
    As per my understanding, the data that we retrieve from a SQL query is stored in SGA in Database buffer cache.
    I have some queries:
    1. Does the database buffer cache store only data from SQL queries or anything else also? What is its size? Can we set the size?
    2. Where are the parsed SQL queries stored - SGA or PGA? And where exactly? I want to know if all the users connected in an Instance have access to each other's parsed SQL queries?
    3. SGA is shared by all users in an Oracle Instance? PGA and UGA are local to a specific user in an instance? Is it correct?
    Thanks
    AbhiThe questions you have are all good ones, but require far too much to be explained (properly) in a forum such as this.
    I would highly recommend picking up a book by Tom Kyte and reading through that.
    Cheers,

  • Pga and sort area size both are set in parameter file

    Hello,
    Both the pga and sort area size are set in the parameter file. Is this an issue? Are there conflicts? Can both be set and only pga will take effect? Db is 10.1.0.5.

    hi,
    might also be worth looking at metalink note Note:223730.1
    rgds
    Alan

  • Time machine backups cache and temp files?

    Just bought a new external usb disk and used it as the time machine backup volume. All time machine configurations are remained as default, so it would backup all my current HD. While watching it estimating the time that the first backup would take, a question jump out in my mind:
    Will time machine backup all files "honestly"? Will it make a copy of every file including the Internet cache and temp files when I'm browsing websites? I'm used to watch youtube a lot, and the temp flv file would be large (though I don't know where it is stored on Leopard). If these files would be backup-ed as well, I think it would be a great waste of disk space.
    Can anyone confirm that those caches and temp files would be copied or not? If it would, how to prevent this? Thank you.

    If you wish to exclude anything from the backup simply drag the item into the Exclude list. For example, you can save considerable space by excluding the /System/ folder. Cache files would be found in the /Library/ and /Home/Library/ folders. Each folder contains a folder named Caches. There is no specific folder in which temporary items as stored that is visible to the user because the operating system will usually delete temporary files on its own. This may not be the case for a specific program, however. Browsers may maintain their own reserved cache and temporary files, and manage them on their own.
    I do not think, however, that TM backs up caches or temporary files. I find no such items in my TM backup - only the folders. I do not back up my /System/ folder.

Maybe you are looking for

  • BPS vs. Integrated Planning

    Hey everybody, could you give me in some short points the most obvious differences between BW BPS and Integrated Planing? Thanks in advance! Philipp

  • Reg: Universe Design

    Hi.. I am using 8 tables in the Universe Design. If at all I use 7 tables and one table left like that... can i use the left over table in reporting with out including here........ Regards L K Vepuri

  • Unable to download JNLP in internet explorer.

    I am not able to download JNLP using internet explorer. It is showing message as Internet Explorer cannot download <jnlp file name > from <server ip>. Internet Explorer was not able to open this internet site.The requested site is either not avalilab

  • Video size in iDVD

    I've got some old film clips on video and they look bad full-screen. How can I get iDVD to play them back half screen or less? thanks DB

  • How do I change sentences in lower case to upper case?

    How do I change sentences in lower case to upper case, and vice versa?