Oracle 11g - Memory used for sorting

Hi everyone,
I would like to know how I could analyze memory used for sorting in Oracle 11g. When I run the below query, it returns 1531381.
select value from v$sysstat where name like 'sorts (memory)';But when I check sort_area_size parameter from v$parameter, it returns 65536. Does it mean my database is using more memory for sorting than sort_area_size. Or is the way I interpret v$sysstat view and sort_area_size wrong? What is the best way to monitor the memory usage for sorting? Thanks in advance.
Regards,
K.H
Edited by: K Hein on Apr 5, 2012 8:16 PM

check the valuse of pga_aggregate_target
http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams157.htm
Note:
Oracle does not recommend using the SORT_AREA_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_SIZE is retained for backward compatibility.
What is the best way to monitor the memory usage for sorting? try v$sort_usage
or v$tempseg_usage
col sid_serial for a44
col size for a22
col SID_SERIAL for a22
SELECT b.tablespace,
        ROUND(((b.blocks*p.value)/1024/1024),2)||' MB' "SIZE",
        a.sid||','||a.serial# SID_SERIAL,
        a.username,a.osuser,
        a.program
   FROM sys.v_$session a,
        sys.v_$sort_usage b,
        sys.v_$parameter p
  WHERE p.name  = 'db_block_size'
    AND a.saddr = b.session_addr
ORDER BY b.blocks;

Similar Messages

  • Is there any limitation of memory uses for apps in iPad2 or iPad3 ?

    Hi,
       Is there any limitation of memory uses for apps in ipad2 or ipad3 .For example an application can use 10% or 20% of available memory , is there anything like that or the apps can use the total available memory or like 90% of it ?
    I want to know about the memory distribution to the apps in ios .
    Would anyone suggest a right way ?
    Thanks

    iOS manages all memory. You should test your app in Instruments to be sure it is playing nice.
    See Advanced Memory Management Programming Guide

  • 1Z0-050  Oracle 11g New Features for Administrators

    Which release are the exam 1Z0-050 - Oracle 11g New Features for Administrators, release 1 or release 2?
    I need to study Oracle University Material Release 1 or Release 2?

    Hi,
    I have a question too.
    I am 10g certified and looking to take the 11g New Features For Administrators course in the new year.
    Previously when I certifed from 8i to 9i and then to 10g it was only required to take the exam and the course was optional although my company sends me anyway.
    Looking on Oracles website it seems to be that to do the 11g New Features you now have also have to attend another instructor led course. I have posted a link.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getlppage?page_id=212&path=DBAU
    Can someone confirm if this is the case and that Oracle have changed the format of the New Features upgrade path,
    cheers

  • Oracle 11g on Linux for Power?

    Hi All,
    Does Oracle today has support for Oracle 11g on Linux for Power?
    I couldn't find it from the website, only has Oracle 10gR2..
    Please advice..
    Thank you..
    Regards,
    Alson Ang
    First Solution Sdn Bhd

    Just found Oracle Support document 1310584.1, last updated August 5, 2011:
    Says:
    Oracle will not be releasing Oracle Database 11g on IBM Linux on Power systems. Customers can continue to run the terminal patch set of Oracle Database 10g Release 2 (10.2.0.5)....
    Extended Support is offered through July 21, 2013
    Limited Extended Support offered until July 31, 2015
    Hope this helps.
    Matt

  • Connecting to oracle 11g XE using forms 6i

    Dear sir
    i would like to connect to my database in oracle 11g xe using forms 6i; i have tried with normal procedure of defining a service name locally and connecting thru that, but it didn't work, forms 6i crashes while tring to connect to database. can anyone help me to do that?
    thanks in advance
    uday

    911781 wrote:
    yes tnsnames.ora i have configured accordingly
    please find below the contents of respective tnsnames.ora
    forms tnsnames.ora
    CRMXE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.9)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = xe)
    database tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-E929IBU4N98.derivequity.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )Hello, Uday
    copy bellow TNS to your forms TNS
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-E929IBU4N98.derivequity.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )It's just TNS Problem...
    Hope it works...
    If someone's response is helpful or correct, please mark it accordingly.

  • HT4623 my iPad has over 5GB of memory used for "other." What is this and can I reduce size?

    my iPad has over 5GB of memory used for "other." What is this and can I reduce size?

    gregorfromny wrote:
    my iPad has over 5GB of memory used for "other." What is this and can I reduce size?
    See Here  >  maclife.com/how_remove_other_data_your_iphone
    Other is usually around 1 GB...
    A  ' Large Other ' usually indicates Corrupt Data...
    First Try a Restore from Backup...
    But... if the Large Other Persists, that is an Indicator of Corrupt Data in the Backup...
    Then a Restore as New is the way to go...
    Details Here  >  http://support.apple.com/kb/HT1414
    More Info about ‘Other’ in this Discussion
    https://discussions.apple.com/message/19958116

  • My iPhone 4S shows I have over 6 GB of memory used for mail yet the mailboxes are more or less empty.  Where is the memory going and how can I reduce it?

    My iPhone 4S shows I have over 6 GB of memory used for mail yet the mailboxes are more or less empty.  Where is the memory going and how can I reduce it?

    I found a post with this solution that worked for me - .Do a backup, then download ibackupbot. It lets you look into the contents of that backup. Look in system files>mediadomain>library>sms>attachments. I found a ton of huge files related to long deleted texts. ibackupbot let me delete all that old crap. I then restored the phone with that now modifec backup and Bingo! freed up 9 GB. No problems.
    But note, if you are not technically inclined you probaly don't want to be digging around and deleting back up files. You delete the wrong thing and you could jack up your phone badly. Be careful.

  • Oracle 11g ASM - looking for some answers

    Hello,
    I reviewed a bunch of stuff about Oracle 11g ASM from various sources, but still haven't figured out some answers. Perhaps someone could help me to find the missing links please.
    Q1) ASMLib seems to require partitions. ASM recognizes partitions as well as disk devices. So why not using partitions in general? At least I could use ASMLib later without having to reconfigure the drives and loosing all data. Correct?
    Q2) The ASMLib driver is not installed by default, and unlike other ASM components is not available from the public yum repository for OEL 5.5. After some searching I found it available for download, but why is it not more obvious. Should it not be used anymore? http://www.oracle.com/technetwork/topics/linux/downloads/rhel5-084877.html
    Q3) ASM will not see drives or partitions unless the device ownership is set to Oracle. When Enterprise Linux starts, it resets all block devices to the owner of root. The solution is to create a udev rules file: e.g.:
    /etc/udev/rules.d/99-oracle.rules:
    KERNEL=="sda", OWNER="oracle", GROUP="dba", MODE="0660"
    KERNEL=="sdb", OWNER="oracle", GROUP="dba", MODE="0660"
    Before using ASMLlib, I need to configure the driver, which will ask me for the default user and group who owns the partitions (/etc/init.d/oracleasm configure)
    I conclude that using ASMLib will therefore not require a udev rules file, correct?
    Q4) The Oracle documentation outlines that ASMLIB is an application programming interface (API) developed by Oracle to simplify the operating system–to-database interface and to exploit the capabilities of vendors' storage arrays on Linux-based systems. What does this mean, examples? Isn't this what ASM does in general, why ASMLIB?
    Q5) I installed ASM and would like to re-configure it. Apparently ASM alone does not provide an interface other than sqlplus. In order use ASM with Enterprise Manager, I need to install a database or EM 11g (?) Grid control. Correct?
    Thanks,
    Markus

    Hi,
    So you got answers for 3 4 and 5
    Q1) ASMLib seems to require partitions. ASM recognizes partitions as well as disk devices. So why not using partitions in general? At least I could use ASMLib later >without having to reconfigure the drives and loosing all data. Correct?Using ASMLib, you can use your understandable disk partitions names rather than creating raw devices and adding entry in /etc/raw file and changing rights on every startup, so it makes life easier. Read post of "wcoekaer" from following thread
    ASMLib and Linux block devices
    Q2) The ASMLib driver is not installed by default, and unlike other ASM components is not available from the public yum repository for OEL 5.5. After some >searching I found it available for download, but why is it not more obvious. Should it not be used anymore? http://www.oracle.com/technetwork/topics/linux/downloads/rhel5-084877.html
    I am not sure about OEL 5, but i have seen it in OEL 4 and i can install this package during OEL 4 installation. But i believe you should be able to find this package in one of the Disks of OEL 5
    Salman

  • Difference between Oracle 10g and Oracle 11g when using Distinct in SQL

    Hi All,
    When I use Distinct in Oracle 10g, the result would be sorted in ascending order automatically, while there is no sorting in the result set in Oracle 11g.
    I was using plsql developer to run my sql.
    May I know if anyone have the same experience before?
    Is there any kind of setting in 11g that I can make the result in order? Thanks!
    Edited by: user5810051 on 2011/4/6 下午 8:47

    As acadet says, if you want your result ordered you must specify an ORDER BY clause in your query. Just because previous versions of oracle included some ordering as part of the processing of a query, that was not a guaranteed ordering, but just a side-effect. Now that Oracle have improved the internal workings, they've removed the side-effect, and that's why you're not getting the ordering you want, because you were relying on that side-effect rather than explicitly stating the order you wanted.

  • Unable to connect to Oracle 11g server using instantclient_11_1 in AIX

    Hi,
    I downloaded instantclient-basic-11.1.0.7.0-aix-ppc64.zip from oracle site and used the same for connection to 11g server for testing my application on AIX 5.3 machine. I am also using easysoft driver for the connection. But I am uhnable to connect to Oracle 11g server from AIX 5.3 using instantclient_11_1 client
    libraries. I get the error "Could not load oracle libraries". Error is as below:
    WARNING: Setup was unable to contact your ORACLE
    WARNING: server by using the connection options
    WARNING: you specified.
    WARNING: Error connecting to DB: -1
    WARNING: HY000: [unixODBC][Easysoft][Oracle]Could not load oracle libraries
    But I could connect to the same server from AIX 5.3 machine using instantclient_10_2 libraries and same eaysoft drivers successfully.
    Looks like there is issue with connecting with instantclient_11_1 client libraries from AIX 5.3. I also tried with using 11.1.0.6.0. Same issue is observed.
    Did anybody else face similar issue?
    Thanks and Regards,
    Prema S
    Edited by: user6404935 on Jan 27, 2010 9:47 PM

    I you find nobody who has the same problem, here are some hints:
    - Try to connect using "sqlplus" from the instant client. If that fails, there is probably a problem with your setup.
    - Look if the Easysoft driver supports Oracle 11.1 as client.
    Yours,
    Laurenz Albe

  • Can Oracle XE be used for small business organizations.

    I want to ask with reference to licencing of software. my question is whether Oracle XE can be used for a small size business organizaion, cuz it needs no license for any purpose.
    Please also guide if there are some limitations in this version with reference to functionality as compare to 8i and 10g.
    Regards,
    Aslam

    Hey
    check this article:
    http://www.oracle.com/technology/pub/articles/cunningham-database-xe.html
    Regards

  • How to Install Oracle 11g on Linux for Power?

    I've installed RedHat Enterprise Linux 5.4 on IBM PowerPC server.
    Now I want to install Oracle 11g on it. But there are no Oracle 11g downloads for Linux for Power.
    Is there any workaround so Oracle 11g can be installed on Linux on Power?

    Hi,
    I think you can forget it. Oracle 10g R2 was the last version supported on Linux PowerPC.
    Cheers,
    David
    OCP 9i
    http://www.oratoolkit.ch/knowledge/howto/installation/otn.php

  • The amount of memory used for data is a lot larger than the saved file size why is this and can I get the memory usage down without splitting up the file?

    I end up having to take a lot of high sample rate data for relativily long periods of time. When I save the data it is usually over 100 MB. When I load the data for post-processing though the amount of memory used is excessively higher than the file size. This causes my computer to crash because 1.5 GB is not enough. Is there a way to stop this from happening withoput splitting up the file into smaller files.

    LabVIEW can efficiently handle large files, far beyond 100Mb, provided that care is taken in the coding of the loading/processing routines. Here are several suggestions:
    1) Check out the resources National Instruments has put together (NI Developer Zone > Development Library > Measurement and Automation Software > LabVIEW > Development System > Optimizing Applications > Managing Memory), specifically the article entitled "Managing Large Data Sets in LabVIEW".
    2) Load and process the data in chunks if possible.
    3) Avoid sending the data to front panel indicators, using local/global variables for data storage, or changing data types unless absolutely necessary.
    4) If using LabVIEW 7.1, use the "show buffer" tool to determine when LabVIEW is creating extra
    copies of data in memory.

  • Can not Unzip oracle 11g zip file for x64

    Hi,
    I have downloaded oracle 11g file from (window 2008 server with x64)
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win64soft.html
    File Name      win64_11gR1_database_1013.zip
    when i try to unzip this file I got an error like:
    Archive: win64_11gR1_database_1013.zip
    End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.unzip: cannot find zipfile directory in win64_11gR1_database_1013.zip,and cannot find win64_11gR1_database_1013.zip.zip, period.
    error indicates me towards two ways
    1] File is invalid - I have downloaded same file twice
    2] File is distributed in multiple files- site have only downloadable link
    Can any one please help me to get out of it?
    Thanks and Regards
    B.Sandeep

    If you are really on Windows 2008, this file is wrong , you need
    Oracle Database 11g Release 1 (11.1.0.7.0)
    for Microsoft Windows Server 2008 x64
    Of course that doesn't necessarily solve your general unzip problem, compare the size of the downloaded file with the size on the download site. If there's a difference,download is not complete for whatever reason.
    Werner

  • No rootpre.sh file found in Oracle 11g r1 download for AIX

    I downloaded the 11.1.0.6.0 version of Oracle 11g from the website and unzipped it with the unzip_aix on a Power7 system. The files were unzipped into a directory called database. I could not find the rootpre.sh script anywhere. What am I missing?
    The download site mentions a rootpre_aix.zip file for downloads prior to January 2008... confused and unexperienced. Wouldn't any download be after 2008?
    Edited by: user8962451 on Apr 2, 2010 7:34 AM

    Same here. The installation instructions for Oracle in AIX is asking to run the preRoot.sh. Where can I get it this file, since I do not have Oracle CD.

Maybe you are looking for

  • Cannot recall how to open iBook G3 14-Inch DVD tray

    I just gave my ancient iBook to my neice. She called and asked how to eject the DVD tray? I could not recall. I thought it had a small oval button on the right side that ejected it? Thanks in advance for assistance.

  • Oracle 9i External Tables

    Helllo Everyone. I am new to external tables concept and I have only used using flat files. Is there a complete reference on on external tables somewhere? Also, instead of .csv or text based datafiles, can I use XML as data source for these external

  • Access to this place or content is restricted.

    Hello, For some reason our account always has issues getting access to docs that are on the community.netapp.com site, I have access to the site as i can login but when i click this link I get the following error: Access to this place or content is r

  • Usage GR-based IV in PO invoice tab

    In import PO,  GR-Based IV  is have to be untick, Question 1)     Why should untick for GR-Based IV  for import PO?. Is that mandatory to untick in Import PO? what happen if process by tick of GR-Based IV in Import PO 2)     What is the usage of tick

  • How do I get audio for my apps without headphones?

    How do I get audio for my apps without headphones?  For some reason I can only hear the audio for many of my apps through my headphones. I've got the latest version of the OS so I'm not sure what else to do.  Volume works fine for all apps that use v