What is the sql waiting for 9000+ sec ??

http://download.oracle.com/docs/cd/B19
306_01/server.102/b14237/dynviews_2094.htm#REFRN30229
Edited by: S2K on Dec 23, 2009 12:09 PM
Edited by: S2K on Dec 23, 2009 12:38 PM

skvaish1 wrote:
Hi,
Sorry I inferred as Simple view. You may increase the PGA to 500M or 1024M which may help you on HASH JOINS but it will be helpful on next session. Existing session will not get affected. Also you have to work on your query to reduce so many FULL table scans. I an not sure if you have updated statistics on the involved tables.
He's spent 9,946 seconds on the CPU without waiting - so sizing of the PGA to avoid spilling workareas to disk is not his problem and messing about with the PGA_AGGREGATE_TARGET is unlikely to help.
The most obvious guess is that the aggregate subquery with full tablescan indicated by the last three lines and the FILTER at line two (id 1) really is happening the 266 thousand times indicated by the ROWS in line 3 (id 2). (And it's happening in memory.)
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • HT1688 I'm trying to download a audiobook I got this morning with iTunes. However, the book is frozen on "waiting" status, what is the audiobook "waiting" for?

    I'm trying to download a audiobook I got this morning with iTunes. However, the book is frozen on "waiting" status, what is the audiobook "waiting" for?

    Hello Jose,
    I would be concerned too if the audiobook I purchased from iTunes was not downloading on my iPhone. I have a few suggestions to get it downloaded to your iPhone.
    First, I recommend checking to see if the download was interrupted:
    If your download was interrupted using your iPhone, iPad, or iPod touch
    From the Home screen, tap the iTunes app.
    For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password if prompted.
    Tap the blue download arrow to resume.
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If the audiobook still does not download, I recommend signing out and back into the iTunes Store on your iPhone:
    Changing your Apple ID account
    Tap Settings > iTunes & App Stores, then tap the Apple ID signed in.
    Sign out of the current Apple ID account and then sign in with another account or create a new Apple ID.
    The last step states to sign in with another account, but for the situation you described, I recommend just signing in with your same Apple ID.
    You can find the full article here:
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    If you are still not able to download the audiobook, you can report an issue with this purchase using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best,
    Sheila M.

  • What is the SQL Standard for passing back a 0 in an Amount Field

    So I have an Amount Column in my database. What is the best way and the SQL Standard to pass back a 0 if it is a <NULL>? With a COALESCE statement?
    Thanks for your review and am hopeful for a reply.

    This is UNBELIEVEABLE! I got rid of my TextBox13 all together...Deleted it to start from scratch. And it is still erroring on TextBox13!!! I even checked the Properties List and there is no TextBox13. What in God's name is going on here?!?!?
    Am I missing something???
    Hi ITBobbyP,
    As to this issue, I find that this is a known issue which you can see on the link below:
    http://connect.microsoft.com/SQLServer/feedback/details/649210/bids-sql-2008-r2-warnings-not-clearing
    According to the Feedback, we can workaround this known issue by Re-open the project. And if Warning was in fact resolved, it will no longer show on the Business Intelligence Development Studio (BIDS) "Error List".
    As to your former issue, please refer to the expression post by
    Jingyang Li.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • What is the sql statement for doing this?

    Hi,
    I am currently doing a simple search engine that allows a user to key in a filename and display all the files' name close to keyed filename(the first two letters are the same).What is the proper sql statement to select from Document according to DocumentType and the first two letters of the filename? Am i doing it the right way? I am currently use Access 2002, dunno if it will affects me.Thanks in advance
    [What i did]
    String filename="doc,txt"
    SELECT DocumentType from Rule where UserType='1' and Action='Search';
    DocumentType=1,5,9,13,17,21,25,29,33,37,41,45 // This is all the document Type the user can see.
    Next i used StringTokenizer break the DocumentType.
    DocumentType[0]=1;
    DocumentType[0]=5;
    SELECT * from Document where DocumentType and Name <<< I want to select from Document according to DocumentType and the first two letters of the filename

    One more try - from what I can follow?
    If I assume you have a table named for example "UserRules"
    which has fields UserID,UserType,UserAction
    and has records like this that controls the document types
    a user is allowed to see
    UserID UserType Action
    TOM 1 Search
    BILL 7 Search
    ROY 2 Search
    And if I assume you have a table named for example "AllowedUserDocumentTypes"
    which has fields UserType,DocumentTypes
    and has records like this that controls the document types
    a user is allowed to see
    UserType DocumentTypes
    1 1,3,4,5,6,19
    2 7,9,12,18
    3 1,19,33,27
    And you have the document table which has
    fields are DocNo,Name,Title,Date,Filename,DocumentType
    and it has records like this
    DocNo Name Title Date Filename DocumentType
    12345 BILL Cars CarTypes 18
    12346 ROY Trucks TruckTypes 2
    12347 TOM Toys ToyTypes 17
    12345 JACK Car Colors CarColors 19
    12345 TOM Car Shapes CarShapes 7
    Then the select statement
    Select DocumentTypes from AllowedUserDocumentTypes
    join UserRules where UserRules.UserType = AllowedUserDocumentTypes.UserType
    and UserRules.UserID = 'ROY' and UserRules.Action = 'Search';
    will return 7,9,12,18
    If the DocumentType field is numeric and the user entered "CarCrap" the
    select statement would have to look like this
    SELECT * from Document
    where left(Filename,2) = 'Ca' and DocumentType in (7,9,12,18);
    If the DocumentType field is say varchar
    select statement would have to look like this
    SELECT * from Document
    where left(Filename,2) = 'Ca' and DocumentType in ('7','9','12','18');
    You will have to build these select statements related to the user.
    Note you should also allow for upper and lower case differences. I
    would suggest you convert the user entry into uppercase and do a select
    like below
    SELECT * from Document
    where Ucase(left(Filename,2)) = 'CA' and DocumentType in (7,9,12,18);
    This is all written from memory, not tested and I have not done this
    in several years.
    I was showing approximately how to build the statements before.
    rykk

  • What is the sql command for SELECT with OR condition

    Hi
    What is the correct sql command for doing select with or condition??
    SELECT * from TempData
    WHERE port = '123'
    OR serialnumber = '555'
    So if there is a port = 123 or if there is a serialnumber = 555, I will get a successful select.
    Thanks for helping a newbie!!

    Hi
    What is the correct sql command for doing select with
    or condition??
    SELECT * from TempData
    WHERE port = '123'
    OR serialnumber = '555'
    So if there is a port = 123 or if there is a
    serialnumber = 555, I will get a successful select.
    Thanks for helping a newbie!!Make sure you bracket your OR conditions
    eg
    SELECT * from TempData
    WHERE column = 'VALUE'
    and port = '123'
    OR serialnumber = '555'
    is read as
    SELECT * from TempData
    WHERE (column = 'VALUE'
    and port = '123' )
    OR serialnumber = '555'
    which is not the same as
    SELECT * from TempData
    WHERE column = 'VALUE'
    and ( port = '123'
    OR serialnumber = '555' )

  • What is the sql query for the real time reports Resource Stats?

    Does anyone know what the query is that the real time report tool uses for the Resource Stats page?  Trying to develop a custom report that displays similar information that is updated regularly.

    Hi,
    009 wrote:
    Hi Frank,
    Just wanted your opinion on the above given SQLI'm not sure I understand it.
    I added some more formatting to help me read it:
    SELECT      A
    ,     CASE WHEN LAG(A,1) OVER (ORDER BY A) IS NULL
              OR A=LAG(A,1) OVER (ORDER BY A)
              THEN LAG(B,1) OVER (ORDER BY A)
         END B_LAG
    ,     B
    FROM     (
         SELECT A, B
         FROM
              SELECT '1'A,'Apple' B FROM DUAL UNION ALL
              SELECT '1'A,'cat'B FROM DUAL UNION ALL
              SELECT '2'A,'bat'B FROM DUAL UNION ALL
              SELECT '3'A,'rat'B FROM DUAL UNION ALL
              SELECT '2'A,'yellow'B FROM DUAL UNION ALL
              SELECT '1'A,'pin'B FROM DUAL
         CONNECT BY PRIOR A=B
         ORDER BY A
    );What is the purpose of the CONNECT BY in what you have so far?
    Is the idea that you will add another CONNECT BY query, using
    CONNECT BY  b_lag  = PRIOR b?
    Do you think that will be better than using ROW_NUMBER?
    Will it work if (a, b) is not unique?

  • What is the sql query for this

    table Employee
    EmpId
    Name
    MonthlySalary
    DateofJoining
    Suggest  a sql server query to find out the employee details whose having salary greater than their yers of experiance 
    nravhad

    Hi ,
      As this seems to be a kind of lab exercise question for learning purpose , i am giving you the pseudo code which will help to solve this problem and learn.
      select <the requeired columns> from employee table.
      where Find the no of years between dateofjoining and current date using DATEDIFF function< monthly salary
      if this is not a lab exercise problem for learning purpose , please forgive my ignorance.
    Best Regards Sorna

  • A simple query in My SQL what is the similer query for that in Oracle ???

    hello friends
    In My Sql if i have 1000 records in a table and i want to get the records from 400 to 550 then it is posible by giving the following query
    Select * from Table a , table b where condition "List 400,550" gives the records from 400 to 550
    what is the coresponding query for this in oracle database
    any one help me pls
    mail me to [email protected]

    Genericly, if you want records N through M from a SELECT statement, there's a wonderful article on asktom.oracle.com
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
    Justin

  • When syncing my iPad with my computer I keep getting the notice ' waiting for changes to be applied '.  What is this all about ?

    When syncing my iPad with my computer I keep getting the notice ' waiting for changes to be applied '.  What is this all about ?

    If everything is working OK, I believe it simply means that the iPad and iTunes are communicating and that any changes that you made to the sync configuration are waiting to go through. If you updated apps on the iPad and they get transferred into iTunes or if you download new songs onto the iPad and they are being transferred into iTunes, any app data that moves back and forth - those would be changes that need to be applied.
    If you can't finish the sync and that's why you are asking, can you provide more specific details?

  • HT4796 I´m trying to migrate from my old PC to my mac, but in the migration assistance of my PC, the legend "waiting for your mac to connect" continues ever for ever, never appears the passcode. What can I do?

    I´m trying to migrate from my old PC to my mac, but in the migration assistance of my PC, the legend "waiting for your mac to connect" continues ever for ever, never appears the passcode. What can I do?

    The transfer of content from sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve music files and playlists from your iPod. I use Senuti but have a look at the web pages and documentation for the others too, you'll find that they have varying degrees of functionality and some will transfer movies, videos, photos and games as well. This is just a small selection of what's available, you can read reviews and comparisons of some of them here:
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    Senuti Mac Only (Currently only the beta version is iPod Touch & iPhone compatible)
    PodView Mac Only
    PodWorks Mac Only
    iPodDisk PPC Mac Only (experimental version available for Intel Macs)
    TuneAid Mac only (iPhone and iPod Touch compatible)
    iPodRip Mac & Windows
    YamiPod Mac & Windows
    Music Rescue Mac & Windows
    iPod Music Liberator Mac & Windows
    iGadget Mac & Windows (iPhone and iPod Touch compatible)
    Floola Mac & Windows
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    TouchCopy Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide

  • My IPhone 4 won't turn on , I have tried holding the power button , the home button for 20 secs and it won't work , tried putting it into DFU mode and nothings happened , last night I updated it to 6.0.1 since then it hasn' t turned on , what should I do?

    My IPhone 4 won't turn on , I have tried holding the power button , the home button for 20 secs and it won't work , tried putting it into DFU mode and nothings happened , last night I updated it to 6.0.1 since then it hasn' t turned on , what should I do?

    I suggest charging it for several hours, then trying again.

  • What are the ideal specs for a DigiBeta master tape when authoring a "widescreen anamorphic" 16:9 SD DVD (original aspect ratio is 14:9)?

    I just received the masters for a new SD DVD. I would like to author a "widescreen anamorphic" SD DVD horizontally squeezed widescreen image stored in a standard 4:3 aspect ratio DVD image frame. (On 4:3 displays, mattes should preserve the original aspect ratio. On 16:9 displays the image will fill the screen at the highest possible resolution.)
    Below I've listed the specs of the Digi Beta master tapes the producers have sent to me for digitizing. I'd like to know this: What are the ideal specs for a DigiBeta master tape when authoring a widescreen anamorphic SD DVD, using material with an original aspect ratio of 14:9?
    I've also listed my guesses below. Please let me know if my guesses are right. If not, please suggest alternatives (and if possible explain why.)
    TECHNICAL SPECIFICATIONS OF EXISTING MASTER:
    Tape: DigiBeta
    Original Aspect Ratio: 1.55 (14:9)
    Vid Rate: 29.97 fps
    Pixel Aspect: NTSC - CCIR 601
    Frame Size: 720 x 480
    Anamorphic: Full-Height Anamorphic (16:9 image displayed in letterboxed, non-distored 4:3)
    Display Format: 4:3 Letterbox
    MY GUESS AT IDEAL TECHNICAL SPECIFICATIONS (for a DigiBeta, that is):
    Tape: DigiBeta
    Original Aspect Ratio: 1.55 (14:9)
    Vid Rate: 29.97 fps
    Pixel Aspect: Square
    Frame Size: 720 x 540
    Anamorphic: YES
    Display Format: 16:9 Anamorphic (horizontally squeezed widescreen image)
    Please feel free to ask for clarification or further information you need to answer my question.
    Thank you so much in advance for your help!
    Best, Noetical.
    BTW, I can't wait for the day when everything has gone digital and we get digital intermediates instead of tapes to digitize!

    Hi Nick...thanks for taking the time to reply to my question.
    Nick Holmes wrote:
    What you have there is a mess.
    NTSC pixels are never square.
    NTSC is 720x486, even when it is Anamorphic.
    You shouldn't be using an already letterboxed master to make an Anamorphic version. Get the master that was made before the letterboxing stage.
    When you make an Anamorphic DVD it should display as 16:9 full screen automatically on widescreen TVs.
    The same DVD will automatically letterbox on 4:3 TVs.
    Um yeah...duh. That's exactly what I was trying to explain in the preface of my question. I'm sorry if I didn't make it clear...all these things you mention are the reasons I'm putting together a list of the technical specs of the DigiBeta I need so I can have them send that instead of the stupid letterboxed version. 
    Look, I'm sending this request to some intern at their offices in England, asking for a master with which I can make an Anamorphic DVD. They already sent me this master, which as you and I both agree is an idiotic asset to use for these purposes. As such, I was hoping for advice on a more precise way of requesting the master that I need than asking for "the master that was made before the letterboxing stage." Upon reflection, perhaps I'll just do that. If you or anyone else has a suggestion about something I should add to my request that would improve the odds of them sending the tape I need, please repond. Thank you!
    BTW, It's been a long time since anyone has responded to something I've written or said as though I'm an idiot. I remember now that I don't really like it. (Moving along...)

  • What are the SQL server versions those are compatible with XI 3.0.

    Hi All,
    Please suggest,
    what are the SQL server versions those are compatible with XI 3.0.
    or with which SQL server versions XI 3.0 will interact using JDBC Adapter.

    Check in the [Product Availability Matrix |https://websmp201.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=DISP_NEW&00200682500000002804=01200314690900000192]in market place for more information on this
    Thanks
    SaNv...

  • What are the needed tools for JDBC???

    iam new to this field, i want to know what are the required tools for JDBC??
    i know that i need java.sql and javax.sql packages, but how can i get them???
    what about the drivers???
    thnx in advance

    You need to go to the vendor's web site such as Oracle and download the jar file for that particular database. Example: ojdbc14.jar for an oracle database and copy it to the 'lib' folder of your project and then include it with your project. Within that jar file, you will have datasource, preparedStatement, resultSet objects. You will need to read up on how to instansiate the datasource for that database from the vendor's documentation.

  • What is the best practice for inserting (unique) rows into a table containing key columns constraint where source may contain duplicate (already existing) rows?

    My final data table contains a two key columns unique key constraint.  I insert data into this table from a daily capture table (which also contains the two columns that make up the key in the final data table but are not constrained
    (not unique) in the daily capture table).  I don't want to insert rows from daily capture which already exists in final data table (based on the two key columns).  Currently, what I do is to select * into a #temp table from the join
    of daily capture and final data tables on these two key columns.  Then I delete the rows in the daily capture table which match the #temp table.  Then I insert the remaining rows from daily capture into the final data table. 
    Would it be possible to simplify this process by using an Instead Of trigger in the final table and just insert directly from the daily capture table?  How would this look?
    What is the best practice for inserting unique (new) rows and ignoring duplicate rows (rows that already exist in both the daily capture and final data tables) in my particular operation?
    Rich P

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> My final data table contains a two key columns unique key constraint. [unh? one two-column key or two one column keys? Sure wish you posted DDL] I insert data into this table from a daily capture table (which also contains the two columns that make
    up the key in the final data table but are not constrained (not unique) in the daily capture table). <<
    Then the "capture table" is not a table at all! Remember the fist day of your RDBMS class? A table has to have a key.  You need to fix this error. What ETL tool do you use? 
    >> I don't want to insert rows from daily capture which already exists in final data table (based on the two key columns). <<
    MERGE statement; Google it. And do not use temp tables. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

Maybe you are looking for

  • 2LIS_11_VAITM delta extraction missing line items

    Group, I'm having a bit of troubles with the 2LIS_11_VAITM extractor. We've been using this extractor for some time now to do daily delta loads and it seems to work fine 99% of the time, but recently we noticed a few orders here and there from the la

  • Miscellaneous tab  in User Decision step type ?

    Hi, How miscellaneous tab would be useful and in what case(scenario) we would be going for that.. Also it would be helpful how it could be used. Thanks Ganesh

  • My itouch only stays at 10% battery, why wont it charge anymore?

    I plugged my itouch in and left it for hours only to come back and find it has only charged to 10% of its battery. I tried plugging it into the ihome, my laptop, and my dads computer and its not charging. Will I have to buy a new battery?

  • E4200 as a Access Point/Bridge Mode

    I have spent most of the weekend trying to get this router to act as a proper Access Point. Has any got this to work correctly? When it does work (Stay connected) speeds and latency are rotten. If I go back to Routing Mode this thing kicks butt, but

  • Nokia 3600 Slide Outlook contact address not trans...

    I am using Nokia Ovi Suite 2.0.2.42 and although the contact address appear in the Ovi software they do not transfer to the phone. Everything else seems to! Chris