How do i know if my query using  SORT_AREA_SIZE   or temporary tablespace ?

Good Morning  Everyone !
My DB version is 10.2.0.1
I have large table  exactly 3 million records.
SQL> select count(*) from tab1;
COUNT(*)
   300000
SQL> select * from tab1 order by no DESC;
sorting  ... in process
300000 rows selected.
in Terminal 2 : I tried to find  sorting details -   ( No rows  selected - why ? )
SQL> select USERNAME , USER , TABLESPACE , SQL_ID from v$tempseg_usage  ;
no rows selected
SQL> /
no rows selected
When i google i have seen this ;
If  Oracle cannot do the sort in memory  (SORT_AREA_SIZE initialisation parameter), space will be allocated in a temporary tablespace for doing the sort operation.
REF_LINK : TEMPORARY Tablespaces and TEMPFILES | Oracle FAQ
MY DOUBT QUESTION :   How do i know if my query using  SORT_AREA_SIZE   or temporary tablespace ?
Thanks in advance.

@ JohnWatson
I have seen some articles from ORA - FAQ. Good.
SQL> select USERNAME , USER , TABLESPACE , SQL_ID from v$tempseg_usage;
USERNAME                       USER   TABLESPACE                      SQL_ID
   SCOTT                               SYS          TEMP                            fh9vqgyd6m0d1
PGA management means that sorting only 300000 rows  may well occur in memory
            Is this (3 million rows) -  standard  value for 10g version ?
Thanks JohnWatson

Similar Messages

  • How can i know if my query is using the index ?

    Hello...
    How can i know if my query is using the index of the table or not?
    im using set autotrace on...but is there another way to do it?
    thanks!
    Alessandro Falanque.

    Hi,
    You can use Explain Plan for checking that your query is using proper index or not. First you need to check that Plan_table is installed in your database or not. If it is not there THEN THE SCRIPT WILL BE LIKE THIS:
    CREATE TABLE PLAN_TABLE (
    STATEMENT_ID VARCHAR2 (30),
    TIMESTAMP DATE,
    REMARKS VARCHAR2 (80),
    OPERATION VARCHAR2 (30),
    OPTIONS VARCHAR2 (30),
    OBJECT_NODE VARCHAR2 (128),
    OBJECT_OWNER VARCHAR2 (30),
    OBJECT_NAME VARCHAR2 (30),
    OBJECT_INSTANCE NUMBER,
    OBJECT_TYPE VARCHAR2 (30),
    OPTIMIZER VARCHAR2 (255),
    SEARCH_COLUMNS NUMBER,
    ID NUMBER,
    PARENT_ID NUMBER,
    POSITION NUMBER,
    COST NUMBER,
    CARDINALITY NUMBER,
    BYTES NUMBER,
    OTHER_TAG VARCHAR2 (255),
    PARTITION_START VARCHAR2 (255),
    PARTITION_STOP VARCHAR2 (255),
    PARTITION_ID NUMBER,
    OTHER LONG,
    DISTRIBUTION VARCHAR2 (30))
    TABLESPACE SYSTEM NOLOGGING
    PCTFREE 10
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 10240
    NEXT 10240
    PCTINCREASE 50
    MINEXTENTS 1
    MAXEXTENTS 121
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE;
    After that write the following command in the SQL prompt.
    Explain plan for (Select statement);
    Select level, SubStr( lpad(' ',2*(Level-1)) || operation || ' ' ||
    object_name || ' ' || options || ' ' ||
    decode(id, null , ' ', decode(position, null,' ', 'Cost = ' || position) ),1,100)
    || ' ' || nvl(other_tag, ' ') Operation
    from PLAN_TABLE
    start with id = 0
    connect by
    prior id = parent_id;
    This will show how the query is getting executed . What are all the indexes it is using etc.
    Cheers.
    Samujjwal Basu

  • In DBI , how to find out the Source Query used for the Report

    Hi All,
    How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
    In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
    If anyone has ever worked on it...Please help me in finding it.
    Thanks,
    Neeraj Shrivastava

    Hi neeraj,
    You can see the query used to display reports.Follow these steps to get the query.
    1)Login to oracle apps
    2)Select "Daily Business Intelligence Administrator" responsiblity.
    3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
    4)now open the report which you want to see the query of
    5)In view source it displays query along with the bind varilables.
    Feel free to ping me if you have any doubts
    thanks
    kittu

  • How can I know the database is using Cost Based or Rule Based?

    Hi all expertise,
    How can I know the database is using Cost Based or Rule Based?
    If cost based it is using, what methods are need to use to minimize the cost when database is running? And which tables I can see the performance of the database?
    Thanks
    Amy

    how to see database setting ?
    use this
    SQL> sho parameter optimizer
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 1
    optimizer_features_enable string 9.2.0
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 2000
    optimizer_mode string CHOOSE
    choose means if table statistics is available then it will use cost
    else
    use rule based optimizer
    for seeing performnace of table use
    set autotrace on
    and run your query
    if it doen't show cost.it means it use rule based
    for using cost based
    u will calculate table statistics
    9i
    dbms_stats.gather_table_stats('owner','table');
    8i
    analyze table <table_name> compute statistics;
    hope it will help you
    kuljeet pal singh

  • How could I know if my applications use HRMS?

    Hi,
    How could I know if my applications use HRMS? Is HRI (Human Resources Intelligence) the same thing as HRMS? Could anybody tell me how could I find the aliases for all the products available (not neccesarily registered) in Oracle Applications?
    thanks,
    Paul

    you can find the complete details of how to find the list of products installed in the following thread
    Query for Appliation Products Installed
    Hope this helps
    Regards
    Ramesh Kumar S

  • How do you know what classes to use ?

    Hello,
    This may sound daft - but how do you know what classes to use to do a particular task ? For example to do password-related stuff - how would I know which classes are all relevant to that ? Am I supposed to buy a book on the classes as the API documentation doesn't really tell you WHEN to use which classes.

    If you're using JSP, then your password field is likely going to be implemented in HTML. So that's nothing to do with Java. (And you can't use a JPassword field in a JSP page.) But when that field comes back to your server, you may be using Java to authenticate it. Even there, the question is not yet what Java method you are going to use, but what methodology. You could have a database to authenticate against, or an LDAP directory. Or you could have the web server use its built-in authentication, which means you don't have to do any Java coding at all. And there are other ways.
    So the question before yours is, how do you know what methodology to use? Again, that comes down to experience.

  • I'm not able to see all the tabs words on itunes window. I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?

    I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?
    I'm using Win Vista 64b - but I try already to install all my fot library but nothing happen,, still not able to see some menu's from lists, tabs titles, etc.
    I search through itune's web site and not sign of info about how can I fix this problem...
    help!

    It has something to do with Segoe fonts in your system.
    Refer this link for solution
    iTunes 10.1 Missing Text

  • I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    Please refer below link for more information
    Education FAQ

  • How to create search function (af:query) using method in java

    hi All..:)
    i got problem with search custom (af:query), how to create search function/ af:query using method in java class?
    anyone help me....
    thx
    agungdmt

    Hi,
    download the ADF Faces component demo sources from here: http://www.oracle.com/technetwork/testcontent/adf-faces-rc-demo-083799.html It also has an example for creating a custom af:query model
    Frank

  • How can I know which file is using by the self-service workflow?

    Dear all:
    In my directory, there are two HRSSA.wft and How can I know which source is using by the workflow of the self-service ?
    my environment is oracle 11.5.9 | self-service 4.1 | workflow builder 2.6
    Thanks
    regards
    Terry

    One way would be to download the HRSSA workflow to a wft file (using the WFLOAD utility - see MOS Doc 578248.1), then comparing this downloaded wft file with the two files you have (using a utility such as diff in Unix). The comparison that reports no differences will identify the wft that was uploaded into the database.
    HTH
    Srini

  • How will you know if someone is using video chat?

    How will you know if someone is using video chat? Does the green camera indicator turns red?

    Hi,
    You Buddy List will show two types of AV icons.
    "Single" type which indicates the person can only do 1-1 Chats.
    "Stacked" icons indicating they can do Multi-way chats.
    Example pic
    If they appear feint or "greyed out",  so to speak, then they are Busy to someone else.
    (if they are chatting with you they will appear dark again once connected)
    9:01 PM      Tuesday; November 15, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to find out if your query uses the indexes?

    How can one tell if the query being issued is using your indexes or doing full table scans?
    Thank you.

    Thank you.
    Ok, let me see if I understand it. So, having an
    index may not speed things up.True
    Full table scans are not bad at all -- as I have it
    in my head. The query I ran before was: select *
    from table1;In that case an index would only slow things down; you are asking it to get all the information from the table - it has to read all of the table ( a full scan).
    >
    So full table scans and index have to do with the db
    block size and the size of the row correct?
    Block size and row size don't have a huge amount to do with it, but they do play a role.
    Let me ask: How does one know the size of a row and
    then the best option for the db blocks? Block size is a global setting (at the tablespace level I think). You would not likely change the block size based on the average row length in any one table. It would be about the last thing you might look at in terms of tuning (though you might consider it up-front if you had a huge amount of very predictable data).
    >
    And if, I create indexes and queries have the where
    clause and the database uses full table scans then
    does it means that either:
    The database believes that the best execution plan is
    to either do FULL SCANS OR USE INDEXES -- ALL UPTO
    THE DATABASE?
    No. There is another piece of information that the database needs to make good decisions. If for example you have a WHERE clause "WHERE not_paid = 1" and you have an index on not_paid. To make a good decision the database needs to know about how many of the rows are likely to be not_paid =1. If it's 90% then a full table scan will be cheaper than looking up the addresses of 90% of the rows and then getting the data. If it's 10% using the index will be cheaper. You need to use Analyze Tables to get the database to store this information. Looks like you need to use a bit of time with the manuals.
    Jon
    -J

  • How do I know if an app uses password encryption?

    Hi,
    With all the apps in the App Store, how do I know what kind of security they use?  Will it be in the T's and C's before accepting the app?  I do try to read those, but I've missed this.  Here's the reason for my question.
    A few months ago I downloaded an App called ATT Call International which offered a lower rate for international calls.  I used it a few times, it bills to a credit card.  This morning I tried to use it and I didn't remember my password.  I was emailed a new password which I copied and pasted into the browser but it still wouldn't let me in.  I called the support number for the ATT app and the agent asked me what I wanted my new password to be.  That was odd, but I made up a temp password to work with her and we got me signed on.  I immediately went in to change my password but the app wouldn't let me.
    I called back, got the same woman who told me that even if I do change my password, it's not encrypted so she can see it.
    Really?  And this is an ATT app?  She tells me that this is an ATT app but it's supported by a third party.
    So, I asked her to delete my account but I'm feeling VERY EXPOSED to think that in some database somewhere they have my credit card information and with an unencrypted password on my account. There is no delete option for me to delete it myself.
    What questions do I need to ask before I download?

    Eddie,
    To see what apps are "running" in the background, double click the HOME button (it's the round one at the bottom of the phone's front... not being sarcastic here, had to look at the manual myself just to be sure!). To me it's the coolest looking if done from one of the icon (desktop?) pages, as the dock will slide up and get grayed out, but i've done it from within open apps, it works but not nearly as neat looking to me! Anyhow, if you have a bunch open, you'll have to scroll them sideways to see all of them, plus there are ipod controls and a screen lock all the way to the left. To actually close out an app, press and hold one of them until they start shaking, like when you want to delete an app from your phone, the difference is there will be a "-" instead of an "x" on the icon and when you touch the icon it will disappear and stop "running".
    I put "running" in quotes, because from what i've read, some of the apps aren't really running, iOS4 has actually saved it's place in the app that you left off, but i'm pretty sure the gps type apps ARE working, using up precious memory and battery life.
    HTH
    John

  • HT201209 how do i know if my child used their itunes gift cards

    How do I know if my child actually USED their itunes gift cards or if they just scratched off the strip and put it aside ?

    Thank you again for all of your help!! I really appreciate it!
    I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
    Thank you for letting me know about my contacts! How do I know if I have the contacts app?
    Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
    How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
    Sync Contacts:
    Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
    Sync Calendars:
    Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone

  • Verizon iPad 3 gen: How do I know when I am using 4G or WiFi?

    I purchased the pre-paid Verizon data plan for my new iPad WiFi/4G.  When the cellular LTE service and WiFi are enabled, the iPad shows Verizon LTE and the WiFi signal.  How do I know which one is being used?  Does the iPad default to WiFi when it is enabled? Do I need to turn off cellular data service when I am on a WiFi to avoid being charged for cellular data?

    I was in an area where the iPad is set to recognize the wifi network and log into it automatically, which is does (at least when cellular data is turned off).  I didn't realize cellular data was turned on, so I didn't check, but as soon as it told me that it had used up all of the cellular data, I checked and it had indeed automatically connected to the wifi network like it was supposed to do.  The problem is that the iPad is prioritizing cellular data ahead of recognized and available wifi networks.  I haven't found anything in any of the forums discussing how to change that, and there appears to be no way to determine which is being used without constantly checking your cellular usage (looking to see how much of your plan has been used and how much is left).  That data is not updated in real time and could take up to 72 hours to post, so even that doesn't tell you that the iPad is using cellular at any given moment instead of wifi.  Consequently, it's worth warning other unsuspecting iPad users that they need to turn cellular data off when not in use unless and until they determine that their iPads are not experiencing what at least several hundred of us are experiencing now.

Maybe you are looking for

  • Different pages in a portal aplication

    Hi all, I am using EP on Abap site and want to develop different tabs(Pages Eg. Home, forum, wiki etc..). I already created a page, Iview and a page laout and it's working fine. Now my query is: 1) How to create different tabs on ep and assign differ

  • No drilldown option for Formulas in structure

    Hi Experts, Could you throw some light on the following issue. My char structure is as follows,I have a grouping done on GL and when i drill down I shd see the GL only for selections and not for formula i.e. the formula should not drilldown and show

  • Copy paste problems - bootcamp

    The copy and paste functions don't seem to be working in dreamweaver 8 in bootcamp ... does anyone have a solution to this? I have tried deleting this file "WinFileCache-7A9586CB" as discussed in another thread ... but this made no difference. thanks

  • Where are my pictures?

    I had the iphone 3G and then got the iphone 4. i synced my iphone 4 with my computer and it has been working just fine with everything uploaded properly for the past month. iphone os 4.0.1 downloaded to my phone and screwed up phone. just went to app

  • I am finding all the Apple TV apps are gone

    I am finding all the Apple TV apps are disappeared except settings and computer. I have setup automatic software upgrade and I an am not sure if one of the auto upgrades went wrong. I have tried to restart and reset, but no luck. Any help is apprecia