Order by cause query to hang

Dear all,
I have a simple query to join two tables. Table schema are as follows
==============================================
Table A
id number,
name varchar(32)
Table B
account_id reference Table A(id)
login varchar(32),
password varchar(32)
==============================================
In CGI, my run these test queries.
No order statement and select 3 columns.
1. Select a.name, b.login,b.password
From TableA a, TableB b
Where a.id=b.account_id;
====>OK
With order statement and select 3 columns, 2 from table B.
2. Select a.name,b.login,b.password
From TableA a, TableB b
Where a.id=b.account_id
Order by a.name;
==>BAD, CGI never returns.
With order statement and select 2 columns, 1 from table B.
3. Select a.name,b.login
From TableA a, TableB b
Where a.id=b.account_id
Order by a.name;
==>OK
With order statement and select 3 columns, 2 from table A.
4. Select a.id, a.name,b.login
From TableA a, TableB b
Where a.id=b.account_id
Order by a.name;
==>BAD. CGI never returns.
Without order statement and select 3 columns, 2 from table A.
4. Select a.id, a.name,b.login
From TableA a, TableB b
Where a.id=b.account_id;
==>BAD. CGI never returns
======================================================
It appears to me that if i use more system resources by selecting more columns or use order statement, query will not return.
Can someone help?
Thanks

Check execution plan of your query.
if query id joined in hash join then provide hint for nested loop
if query is joined in sort merge join the create index on respective columns
if both of methods are not working then
check you init.ora paremeter sort_area size and sort_area_retain size. if they are less then increase the size.
u can select above parameter from V$PARAMETER dynamic view
select * from v$parameter where name like 'sort%'
Regards
Juned

Similar Messages

  • Safari causing full-system hang

    For a while now I've been getting the SBOD irregularly in Safari, since 3.x if I remember right. I've got some time off work at the minute so I'm finally looking into this properly, and here's what I've found:
    There seems to be two separate conditions. The first happens on loading some, but not all web pages, causes a lengthy hang in which the entire system (even invoking Dashboard or Spaces) becomes unresponsive. In the console this accompanied by an entry similar to the following:
    05/10/2010 08:15:47 /Applications/Safari.app/Contents/MacOS/Safari[242] ATS AutoActivation: Query timed out. (elapsed 5.0 seconds. params: queryString = {comapple_ats_namepostscript == "Helvetica-Neue" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font}, valueListAttrs = {<CFArray 0x6f5710 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa01602c8 [0xa008dee0]>{contents = "kMDItemContentType"}
    )}}, sortingAttrs = {<CFArray 0x6f5730 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa01603a8 [0xa008dee0]>{contents = "kMDItemContentModificationDate"}
    )}}, scopeList = {<CFArray 0x6f5750 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa0161a98 [0xa008dee0]>{contents = "kMDQueryScopeComputer"}
    (sometimes it names a font, sometimes the font name is "_")
    I suspect this means some vestigial adobe product has messed my system right up. I used to use CS4 but have long since removed it. I also have Air and Flash (the current gala beta) installed. I have had fontbook validate Helvetica Neue and check all fonts for duplicates - if external disks are plugged in at this time they all spin up.
    The other case is when downloading a file through clicking a link or alt-clicking a link (right-clicking a picture and saving it to the downloads folder does not cause this behaviour), and is accompanied by this much sparser line in the console:
    05/10/2010 08:25:06 kernel disk0s2: I/O error.
    The files themselves can be opened, moved and copied without incident and at regular speeds, so I doubt disk corruption. I've also performed a few full clone/restores on my boot disk with no effect. My initial thoughts were to blame a long-forgotten folder action that sorted downloads into different places (including a network share, if present), but disabling folder actions has not helped.
    So, any ideas? I'm fresh out.

    A workaround for the font-problem seems to be to turn off ATS - it's in FontBook.
    The second issue still eludes me.
    Things I have tried:
    Trashing ~/Library/Safari/
    Trashing ~/Library/Preferences/com.apple.Safari*
    Cleaning out every vestigial trace of anything suspect I had on my system (google keystone, logitech control centre, SIMBL, The Spark, iStat Menus, folder actions)
    Interestingly, the issue is not present for the guest user, so it IS something wrong with my user account. I just can't figure out what.
    Yes, making a brand new account would fix all this, providing I'm meticulous about testing the issue as I move /Users/Old/ into /Users/New/, but I'm kind of loathe to give up. It's surely something really simple!

  • Quick Sales Order Form Enter Query(F11) and Execute Query(Clt+F11) Problem

    Hi Everyone,
    I am having a Problem in Quick Sales Order Form. When I am entering a New Sales Order and Book the Order it is working fine. And Now I want to Query the Sales Order If the Same New Order Number has Queried then It is Properly Queried. But If I am trying to Query Some Other Existing Sales Order other than the new one then It Shows the Error Messgae as Query Caused No Records to be Retrived. We have R12 12.1 Instance.
    Can anyone Helpme in Solving this Issue will be highly appriciable.
    Advance Thanks for your Efforts.
    Regards,
    Murugan. AR.

    Was this working before? If yes, any changes have been done recently?
    Have you tried to regenerate the form via adadmin and see if it helps?
    Do you have any invalid objects in the database?
    You may try to obtain the FRD log file and see if more details about the issue are collected in the logs.
    Note: 438652.1 - R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications
    Note: 445166.1 - How to create a FRD (Forms Runtime Diagnostic) Log in EBusiness Suite R12 using Forms 10g
    Thanks,
    Hussein

  • Sharpener Pro 3 has problems in Aperture as the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Have removed all duplicate fonts and tried using a new user account. Any ideas?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

  • Purchase Order form in Query only mode for some users

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Naresh,
    Since you want to achieve this for one user only, I would suggest you create a new function/menu/responsibility and assign this responsibility to the user.
    Note: 400380.1 - How To Create a QUERY-ONLY FORM
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=400380.1
    For the FRM error, please review the following document.
    Note: 116074.1 - ACCESS LEVEL - REVIEW ONLY - PO
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=116074.1
    Regards,
    Hussein

  • Purchase Orders form in Query Only mode for a single user

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Please post this question here: OA Framework
    There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place.

  • Non-Apple browsers cause cascading system hang with clean install of Lion

    It started with Google Chrome.  After a few hours of use, Chrome would randomly lock up one renderer at a time until it was completely unresponsive.  Console showed nothing conclusive in the logs, and would soon lock up itself.  Logged-in Terminal windows could sometimes get as far as a "ps auxc", but would lock up during the command output, and new Terminal windows or tabs would never get past login.  The SSH daemon would be dead in the water, preventing me from logging in remotely.  Any existing SSH connections would hang on the first command.  Activity Monitor would lock up the moment I tried to sample a process or interact with anything.  Interacting with SystemUIServer (pulling down the menu for the clock or trying to do a Spotlight search) would cause SystemUIServer to hang.  Same with the Dock.  My mouse was like the Midas of software failure: everything I touched turned to hang.  Eventually I'd be staring at a spinning beachball.  After a few (five to ten) minutes, it might perform a couple queued events (opening a window, switching to another application) but would usually become wedged again immediately, forcing me to hard restart.
    I then tried installing Firefox 5, and discovered that it causes the hang fairly reliably within the first ten seconds.  Since I knew when it was about to happen, I managed to capture a few stack traces in Activity Monitor, but it was always different, and always somewhere in the kernel (usually file-system related: __getattrlist while scanning fonts one time, the open system call another).
    Safari, on the other hand, works great.
    I've tried performing a verification of my startup disk, which returns no errors, so although I'm not ruling out hardware failure at this point the problem started immediately after I upgraded to Lion, and persisted even after I wiped my hard drive completely and performed a clean install from the recovery partition.  It also doesn't seem to be completely the fault of either Chrome or Firefox, since they're different browsers with different rendering engines using different system frameworks.  They do both perform a lot of file I/O, so maybe that's a clue.  Another possible lead is the seemingly random errors Console will spew out while the hang is occuring.  Most recently I've gotten a screenful of '--ImageKit Error: updateGLTextureWithBitmapData: glPixelStorei returned an error : 506 ...', and before that it was 'Google Chrome Helper: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)', "kernel: IOSurface: buffer allocation size is zero".  Console spew being what it is, though, I don't know if any of that is relevant.
    I figure I would be seeing quite a lot of angry forum threads if Chrome and Firefox were completely unusable on other people's machines, so I'm guessing there's something specific to my configuration happening here.  With a clean install, though, I'm not sure what it could be.  Here are detailed system specs:
    24" iMac (Early 2008 -- just out of AppleCare coverage, figures) , 2.8 GHz, 2GB RAM, running Lion build 11A511 (which should be the 10.7 release version).
    I would be massively indebted to anyone who has experienced or heard about this issue before and can give me something else to try.

    Zeroing the disk serves no purpose in this situation.  It is a common misconception that this is required to map out bad blocks on the drive, but the fact is that 1) modern hard drives map out bad blocks as part of everyday operation, and 2) zeroing the drive involves simply writing zeros with no checks to see if the zero was written successfully, so it wouldn't know if a block was bad anyway.
    It's possible the drive is starting to go bad, although then there should be some problems with SL as well.  I would recommend repartitioning the drive with Disk Utility.  Make sure it's got one partition, using the GUID partition map scheme, and format that partition as Mac OS Extended (Journaled).  Repartitioning should get rid of any gremlins lurking on the disk, unless the physical disk itself is dying.  And after repartitioning, install straight from the flash drive, as Shootist recommends, rather than installing SL first.
    Hardware could be an issue.  It's entirely possible for an older system to work fine on slightly faulty hardware while a newer system does not.  Running Apple Hardware Test wouldn't be a bad idea.
    Firmware updates wouldn't be a bad idea.  However, note that my mid-2010 MBP with the same specs is running Lion just fine, and I've never installed any firmware updates.  (Firmware updates scare me...  if my machine is running just fine, I'm reluctant to risk installing new firmware.  But that's probably just a bit of paranoia talking.  )

  • On my PC, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6GB) requiring a cold boot. What could be causing this?

    On my PC running windows XP Service Pack 3, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6 GB) requiring a cold boot. What could be causing this? Corrupted .MOV? Too little RAM? It successfully plays a 162 MB .MOV.

    Hello David,
    Thank you for providing all that information about the iTunes issue you are experiencing.  We would first want to rule out any software issues before we can determine if it has to do with RAM.  I found an article that will help you isolate and troubleshoot software issues that could be causing iTunes to behave this way:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    I hope this helps you get back on track with watching movies in iTunes! 
    Best,
    Sheila M.

  • Reloading Plug-In Page causes browser to hang during stress test on IE & NS

    When an applet page is in the process of being loaded using the Java Plug-In and a second request is made to reload that applet or a new applet several times in succession, the browser hangs. Is there a work around for the Java Plug-In version 1.3.1.

    Hi,
    You can see fixed bugs in 1.3.1_01 version at
    http://java.sun.com/j2se/1.3.1/ReleaseNotes.html
    This is one of them:
    http://developer.java.sun.com/developer/bugParade/bugs/4477187.html
    Description: Loading applets, using IExplorer 5.0/5.5, sometimes caused a system hang.
    Hopefully this bug fix relates to your problem.

  • Loading my VI in LabVIEW 8.2.1 causes LabVIEW to hang.

    Loading my VI in LabVIEW 8.2.1 causes LabVIEW to hang.  I have an older version that sometimes loads, but it causes LabVIEW to hang many of the times as well. I think the older version of my VI only hangs when you try to scroll around by clicking in the scroll bar area instead of clicking the scroll arrow.  I am not getting any error messages.  I have to close LabVIEW using the task manager.  I've tried this on multiple computers with the exact same results.  The VI has sensitive information, so I would rather not post the VI publicly.  If you have the capability of debugging a hung LabVIEW .VI, then please send me your email information.
    Thanks,
    Matt

    Hi Matt,
    nice to hear that trick helped. Usually LV informs you about any "insane objects" before saving, in this case you should perform this procedure immediatly... When the vi "kills" LV while loading it's too late.
    To rate messages you should click on those "kudos" buttons right to the message. Once should be fine, but it's Christmas time and nice to give away presents Maybe you're too new to the forum and this option isn't enabled yet?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Kodo extension under JBuilder7 causes it to hang

    Hi,
    I'm using JBuilder7 with Kodo 2.3.2 and it seems like the IDE freezes or
    hangs when I'm
    compiling code.
    If I run JBuilder with the -verbose enabled I see the following:
    Tue Oct 08 14:12:53 EDT 2002: + JDOEnhancerTask.build
    (jdoFileUrl=file:///D%|/J
    DOTestProjects/JDOPrototypeTest/src/com/siemens/financial/jdoprototype/bos/P
    ersn
    ame.jdo,buildProcess=com.borland.primetime.build.BuildProcess@64aafa
    Exception occurred during event dispatching:
    Does anyone know what could be causing this?
    Thanks in advance.

    Based on the information you posted, there are two possible causes for
    this problem: either one of the methods in our enhancer task is causing
    the hang (seems unlikely given the undeterministic nature of the problem),
    or we are throwing a RuntimeException out of the OpenTools build()
    method, which is in turn somehow causing JBuilder to hang.
    In Kodo JDO 2.3.3 and prior, there were three lines after the one that
    caused the printout you reported and before a try-catch block that catches
    all exceptions and does some reporting. 2.3.4 includes these three lines
    in the try-catch block.
    So, my anticipation is that the hang will go away, replaced with a build
    error triggered by the unexpected exception.
    It is also possible that the hang is occurring in our code, in which case
    you'll continue to see the hang. Hopefully that's not the case. If it is,
    please try to give us a reproducible test case (we have yet to see this
    problem internally).
    -Patrick
    In article <anv84m$na$[email protected]>, TJanusz wrote:
    Hi,
    I'm using JBuilder7 with Kodo 2.3.2 and it seems like the IDE freezes or
    hangs when I'm
    compiling code.
    If I run JBuilder with the -verbose enabled I see the following:
    Tue Oct 08 14:12:53 EDT 2002: + JDOEnhancerTask.build
    (jdoFileUrl=file:///D%|/J
    DOTestProjects/JDOPrototypeTest/src/com/siemens/financial/jdoprototype/bos/P
    ersn
    ame.jdo,buildProcess=com.borland.primetime.build.BuildProcess@64aafa
    Exception occurred during event dispatching:
    Does anyone know what could be causing this?
    Thanks in advance.
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Sites using flash/shockwave cause Firefox to hang.

    If the shockwave flash plugin is enabled on version >22, visiting a site that contains flash content will cause Firefox to hang/react extremely slowly. I've tried disabling all add-ons with no effect.
    I'm using shockwave flash 11.2.r202.310 but it doesn't seem to matter when version of flash I use.

    Thanks for the replies guys.
    ComputerWhiz: No firewall or AV installed on my laptop.
    cor-el: Nothing works. It is the shockwave flash plugin + >=v23 that is the problem. I've tried safemode, I've completely deleted everything eg moving the .mozilla directory and started a virgin firefox with the same results.

  • Transferring photos from camera or memory card causes iPhoto to hang up with the spinning beach ball - why

    Transferring photos from camera or memory card causes iPhoto to hang up with the spinning beach ball - why?  This happens only on a 5 year old iMac running 10.6.8.  It is a recent developmemt.  All other machines have no problen with the same card.

    I click on the send feedback everytime it pops up with the force quit, so they'er getting it.
    That sends a crash report. Its doubtful that these are ever seen by a human being, but more likely datamined. Sending feedback reaches an actual person.
    My guess from yourdescription is that the portion of the OS (note, OS, not iPhoto) that manages the importing process is what's crashing.
    Regards
    TD

  • Switch to RAW decode 2.0 causes Aperture to hang

    My apologies if this has already been posted. I didn't see this question anywhere else in the forums.
    I converted to Aperture 2.0 and have a library of about 25k images. I have shot with a Nikon D100, D200 and D300 and have images from each in my library. I am pleased with the appearance of many of my images with RAW decode 1.0 and 1.1 so don't want to migrate my entire library to 2.0. I am able to convert some of my images to 2.0 with no problem. Several images, though, refuse to convert. When switching the decode from 1.0 to 1.1 or 2.0 or from 1.1 to 2.0, I get the spinning beach ball of death and have to force quit Aperture. Sometimes the image will convert when I restart Aperture and sometimes it won't. One image in particular was shot with my D100 and consistently causes Aperture to hang when changing the decode from 1.0 to 2.0.
    Any ideas on how to fix this problem and get that image to decode 2.0?
    Any help is much appreciated.
    Rick Holliday

    My apologies if this has already been posted. I didn't see this question anywhere else in the forums.
    I converted to Aperture 2.0 and have a library of about 25k images. I have shot with a Nikon D100, D200 and D300 and have images from each in my library. I am pleased with the appearance of many of my images with RAW decode 1.0 and 1.1 so don't want to migrate my entire library to 2.0. I am able to convert some of my images to 2.0 with no problem. Several images, though, refuse to convert. When switching the decode from 1.0 to 1.1 or 2.0 or from 1.1 to 2.0, I get the spinning beach ball of death and have to force quit Aperture. Sometimes the image will convert when I restart Aperture and sometimes it won't. One image in particular was shot with my D100 and consistently causes Aperture to hang when changing the decode from 1.0 to 2.0.
    Any ideas on how to fix this problem and get that image to decode 2.0?
    Any help is much appreciated.
    Rick Holliday

  • SQL Query Editor Hangs Completely!

    Hi,
    I am working on Dell Precision 360,Windows XP with 512MB RAM.
    Problem is Studio creator works almost well with the 512MB RAM(esp. by increasing the process priority),
    but whenever I open the SQL Query Editor to edit a query it hangs completely.
    I don't think it hangs due to memory shoratge problem.
    what could be the reason or is their some other alternative ,coz whenever it hangs i have to manually kill the process due to which sometime some files get corrupted.

    Hi,
    The system requirements for Creator 2 can be found at:
    ttp://developers.sun.com/prodtech/javatools/jscreator/features/sysreqs/index.html
    As can be seen 1 GB RAM is required. At 512 MB the performance will be affected.
    Cheers
    Giri

Maybe you are looking for

  • Get 200+mail daily -upon deleting, mail quits with error message.

    New Mac user.Three problems: First, I'm receiving approx. 200+ e-mail ads daily. Second, upon attempting to delete these simultaneously, mail quits w/ error message indicating the application has encountered an unexpected error. When I delete them in

  • Why I cannot tab to enter instead of using enter key?

    For example. When I want to log in a website that I have an account. After typing username and password, I can not tab  by trackpad to enter. I have to use enter key to login. Why? Have how to fix that?

  • Error in MS excel 2010 standard file..

    Dear Concnered, I am troubling using my excel file while using it says Excel cannot complete this task with the available resources.chosse less dataa or close other file to complete the task. please help. same file is opening in onther system perfect

  • Cost center table

    WE have FICO and HR modules on different Boxes. We use BD16 to ALE CostCenters from Finance to HR BOX. Is there a Trasansaction code where we can ALE 100 Costcenters at one time. BD16 allows only one costcenter right now

  • SQL 2014 Cluster to Cluster protection

    Hi, I got 2 physical servers in Cluster with SQL 2014 on source site and same environment of two physical servers on target site. I want target cluster to protect target source. The site are remote from each other. How can I do replication and FO & F