TOAD hanging when running this query..Pls suggest to get results outof this

select tta.objid from table_subcase tta, table_gbst_elm gbst_elm_3, table_x_workgroup where (gbst_elm_3.objid = tta.subc_casests2gbst_elm AND table_x_workgroup.objid = tta.x_owned_at2workgroup) AND ((table_x_workgroup.S_x_name = 'ACCPROB') AND (gbst_elm_3.S_title IN ('COMPLETE','CANCELLED')) AND (tta.sub_type = 'Order') AND (tta.creation_time > TO_DATE('01/01/2006 00:00:00', 'MM/DD/YYYY HH24:MI:SS')) AND (tta.creation_time >= ((sysdate+-89.000000) -((sysdate+ -89.000000)-(to_date(to_char((sysdate + -89.000000),'DD/MM/YYYY'),'DD/MM/YYYY'))) + 0.000000) and (tta.creation_time < ((sysdate + 1.000000) -((sysdate + 1.000000)-(to_date(to_char((sysdate + 1.000000),'DD/MM/YYYY'),'DD/MM/YYYY'))) +0.000000))) ) order by tta.id_number asc
Thanks,
Ask

Please see if you could make out from the below query:
select tta.objid from table_subcase tta, table_gbst_elm gbst_elm_3, table_x_workgroup
where (gbst_elm_3.objid = tta.subc_casests2gbst_elm
AND table_x_workgroup.objid = tta.x_owned_at2workgroup)
AND ((table_x_workgroup.S_x_name = 'ACCPROB')
AND (gbst_elm_3.S_title IN ('COMPLETE','CANCELLED'))
AND (tta.sub_type = 'Order')
AND (tta.creation_time > TO_DATE('01/01/2006 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
AND (tta.creation_time >= ((sysdate+-89.000000) -((sysdate+ -89.000000)-(to_date(to_char((sysdate + -89.000000),'DD/MM/YYYY'),'DD/MM/YYYY'))) + 0.000000) and (tta.creation_time < ((sysdate + 1.000000) -((sysdate + 1.000000)-(to_date(to_char((sysdate + 1.000000),'DD/MM/YYYY'),'DD/MM/YYYY'))) +0.000000))) )
order by tta.id_number asc
this is the max I could indent . I am using AND cos the rqmt is like that...
and Sarma, could you please tell me how to us etc etc with a smally query...
I dint get that..
thanks in advance,
Ask                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Hang when running program

    I am getting a hang when running my java program. Part of the stacktrace is below. I see an 'overflowEi' in the trace. Is that the problem? What does that mean. Thanks in advance!!
    3HPNATIVESTACK Native Stack of "Thread-19" PID 5753
    NULL -------------------------
    3HPSTACKLINE _hpiThreadHardSuspend at B73B51B0 in libhpi.so
    3HPSTACKLINE ?? at B73A85BB in libhpi.so
    3HPSTACKLINE ?? at B73A87C0 in libhpi.so
    3HPSTACKLINE ?? at BB4F80 in libpthread.so.0
    3HPSTACKLINE ZNSt12_basic_fileIcE6xsputnEPKci at 419F37 in libstdc++.so.5
    3HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE22_M_convert_to_externalEPciRiS4_ at 3D01CF in libstdc++.so.5
    3HPSTACKLINE ZNSt13basic_filebufIcSt11char_traitsIcEE18_M_really_overflowEi at 3CFF74 in libstdc++.so.53HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE8overflowEi at 3CFE8E in libstdc++.so.5
    3HPSTACKLINE ZNSt15basicstreambufIcSt11char_traitsIcEE6xsputnEPKci at 4091B4 in libstdc++.so.5
    3HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE6xsputnEPKci at 3D0708 in libstdc++.so.5
    3HPSTACKLINE _ZNSo5writeEPKci at 3FFBB1 in libstdc++.so.5
    3HPSTACKLINE ZStlsISt11chartraitsIcEERSt13basic_ostreamIcT_ES5_PKc at 4002C6 in libstdc++.so.5
    3HPSTACKLINE ZN6Cronus14mergeRepairsBiEv at B3F5B3CD in libExerciserServerjni56330.so
    3HPSTACKLINE ZN14BurninAbistDD23runEv at B3F1C39B in libExerciserServerjni56330.so
    3HPSTACKLINE ZN15ExerciserServer3runEv at B3EFBFCE in libExerciserServerjni56330.so
    3HPSTACKLINE Java_com_ibm_austin_tex_control_exerciserServer_ExerciserServer__1_1m11 at B3EF1270 in libExerciserServer_jni56330.so
    3HPSTACKLINE B31519AB
    3HPSTACKLINE L0_invokevirtual_quick_w__ at B7574127 in libjvm.so
    3HPSTACKLINE L0_invokevirtual_quick__ at B75736CC in libjvm.so

    No answers, but some more questions:
    Before diving into the JNI stack trace, what does "hang" mean? Are there other threads running in your program? Is this the main thread?
    Looking at the stack -- and Googling libhpi.so didn't turn up much for me, other than similar complaints -- it looks like it's an output routine. What are you writing to? A local disk, or one that's remote mounted?
    Edit: absolute speculation here, but I suspect that it's a routine that's called when an in-memory buffer's full, in order to physically write the data onto whatever medium you're writing too. So probably not worth looking for an actual "buffer overflow" that's damaging memory.

  • As the current one hangs when run

    Trying to obtain orderline data for the Credit Memo project that produces examples where the quantity results in a fraction, using the following formula:
         (Draft Revenue Amount - Invoiced Amount)/ Selling Price
    As the current one hangs when run
    select distinct order_number,l.LINE_NUMBER
    ,l.DRAFT_REVENUE_AMOUNT, l.INVOICED_AMOUNT,l.SELLING_PRICE,ol.ATTRIBUTE2 end_date
    ,l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT diff,
    (nvl(l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT,0)/nvl(decode(l.SELLING_PRICE,0,1,l.SELLING_PRICE),1)) quantity
    from xxrr_so_headers_all h, xxrr_so_schedules_all s
    ,xxrr_so_lines_all l,apps.oe_order_lines_all ol
    where h.HEADER_ID=l.HEADER_ID
    and l.LINE_ID=s.LINE_ID
    and l.ORDERED_QUANTITY-l.CANCELLED_QUANTITY<>0
    and nvl(l.DRAFT_REVENUE_AMOUNT,0)- nvl(l.INVOICED_AMOUNT,0) <>0
    and to_date(ol.ATTRIBUTE2)between '01-JAN-2007'and sysdate
    Thanks

    select distinct order_number,l.LINE_NUMBER,
           l.DRAFT_REVENUE_AMOUNT,
           l.INVOICED_AMOUNT,
           l.SELLING_PRICE,
           ol.ATTRIBUTE2 end_date ,
           l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT diff,
           (nvl(l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT,0)/nvl(decode(l.SELLING_PRICE,0,1,l.SELLING_PRICE),1)) quantity
      from xxrr_so_headers_all h,
           xxrr_so_schedules_all s ,
           xxrr_so_lines_all l,
           apps.oe_order_lines_all ol
    where h.HEADER_ID = l.HEADER_ID
       and l.LINE_ID   = s.LINE_ID
       and (l.ORDERED_QUANTITY-l.CANCELLED_QUANTITY) <> 0
       and (nvl(l.DRAFT_REVENUE_AMOUNT,0)- nvl(l.INVOICED_AMOUNT,0)) <> 0
       and to_date(ol.ATTRIBUTE2) between '01-JAN-2007' and sysdateit's not hanging but trying to return all the rows from your apps.oe_order_lines_all table. since your query does not have any conditions on the WHERE clause that would relate it to your so_headers_all table.
    try to add something like:
         and h.header_id = ol.header_id

  • Sudo command hangs when run as winbind user

    Hi,
    It even hangs when running:
    $ sudo
    or
    $sudo -V
    So nothing to do with my sudo config - have reverted /etc/sudoers back to default. Even control-c does not work and the process needs to be killed as root, using another session.
    The command works fine when ran as a local user. It is only when running as a winbind user that there's a problem.
    Any help on what tools can be used to find out what's happening while the command is hanging would be much appreciated. Or even better any ideas on how to stop it hanging would be even better!
    Can provide any config files if they help anyone.......
    Many Thanks,
    Richard

    *** UPDATE ***
    It seems the version of sudo (v1.8*) supplied with Solaris 11 is not compatible with Winbind users.
    Workaround:
    Compile version 1.7* to /usr/local/bin and add this to the beginning of $PATH

  • FYI: New version of Disk Warrior seems to hang when run with Snow Leopard

    FYI: It seems that the new version of Disk Warrior hangs when run in Snow Leopard

    I have been using DW 4.2 on 10.5.8 and the speed-up was the first thing I noted, too, so it isn't just SL.
    Now if it would only 'come up for air' and respond to input to move window (so I can put it where I can see it if needed) I'd like that.
    There is a 23 page review of Snow Leopard on Ars. On page 22:
    People sometimes ask what, exactly, is wrong with HFS+.
    Aside from its obvious lack of the features just listed, HFS+ is limited in many ways by its dated design, which is based on HFS, *a twenty-five year-old file system.*
    To give just one example, the centrally located Catalog File, which must be updated for each change to the file system's structure, is a frequent and inevitable source of contention. Modern file systems usually spread their metadata around, both for robustness (multiple copies are often kept in separate locations on the disk) and to allow for better concurrency.
    Practically speaking, think about those times when you run Disk Utility on an HFS+ volume and it finds (and hopefully repairs) a bunch of errors. *That's bad, okay?* +*That's something that should not happen*+ with a modern, thoroughly checksummed, always-consistent-on-disk file system unless there are hardware problems (and a ZFS storage pool can actually deal with that as well). And yet it happens all the time with HFS+ disks in Mac OS X when various bits of metadata to get corrupted or become out of date.
    Apple gets by year after year, tacking new features onto HFS+ with duct tape and a prayer, but at a certain point there simply has to be a successor—whether it's ZFS, a home-grown Apple file system, or something else entirely. My fingers are crossed for Mac OS X 10.7.
    If Disk Utility was reliable in mapping out weak sectors (it is not) and report/log errors. But it doesn't and I trust my data to other file systems when possible. We've come to expect and depend on 3rd party utilities and that Apple First Aid doesn't fix every possible error.
    Scanning one drive for errors can take a long time. Maybe it needs to be done, maybe in the background. With 2TB drives it gets worse. Spending hours to scan for errors??? I've set TechTool Pro to concurrently scan anywhere from one to a dozen volumes at once.
    An ounce of prevention, as they say, is worth a pound of cure.

  • Running a query in a View Designer results in an error, but running the same query in a Query window works

    Hi everyone,
    Just as my title says, I have a query which I've written in a query window and it works perfectly.
    But when I try to add the query code into the view designer, it throws a Syntax error.
    Error in ON clause near '('.Unable to parse query text.
    Also, when running the query from the view designer (pressing red exclamation mark) I get a different error.
    SQL Execution Error.Executed SQL statement: SELECT Sku, ParentSku, UPC, ...Error Source: .Net SqlClient Data ProviderError Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    Has anyone else experienced this and is there any workaround?
    I have tried to create the view with T-SQL (CREATE VIEW etc.), but when opening it in the view designer I get the error from the 1st image.
    Thank you,
    Radu

    Hi Radu,
    Yes, I have faced similar issue. I had a View and it was working totally fine but when once I opened it in via right click - View Design, it was giving parse error.
    Cause is that Query designer parse and executes the query without error but the way View designer works, it can't parse it.
    Later I ignored View desinger and just used T-SQL like CREATE/ALTER view.
    Workaround is to do right click on View - Script View as - CREATE To/ ATER To.
    Regarding Timeout error, again the issue with View designer which couldn't execute query in there and ended up with timeout error.
    If your SELECT query and SELECT * FROM YourView works fine in Query designer, you are good to go.
    Similar threads:
    View with errors still saved, and still works...
    Parsing error when creating view
    -Vaibhav Chaudhari

  • Bug Report - Hang when run query and then click on connection

    SQL Developer hangs if you run a query in a SQL Worksheet, then while it's still running, right-click on the connection in the Connections window. It will come back again once the query finishes, but usually you want to open another sql worksheet while the query is still running so you can do other things.
    I find the whole screen refresh very buggy, it's probably related to using Swing. I have to restart SQL Developer about once an hour.

    That's the way sqldev works: almost every action requires querying the connection. Since the connection is busy with your query, it just hangs there until finished.
    Lots of users complained about this, and some rudimental checks where put in place to pop up a "connection busy" dialog instead, but you will only see that in a few situations. Really, this needs a lot of work to filter out unnecessary queries. If other commercial products can, so can sqldev...
    There's also an accepted feature request for automatically opening more connections when necessary (on the SQL Developer Exchange), so you can vote and add comments if you want to.
    Regards,
    K.

  • Getting SQL*Net more data from client waits when running a query through web based interface

    Hi, you all,
    We are having this weird behavior when running query through web based interface, we get a lot of "SQL*Net more data from client" waits, the OEM indicates that the current wait event is SQL*Net more data from client
    It's just a very simple query wich invokes a db link.
    When I execute the same query on any PL/SQL tool like toad or sql developer it works fine, but that query inside an application executed through a web based interface, it hangs for ever.
    Where can I start looking for the problem.
    We are working on a 3 Node RAC 11gr2, both databases are on the same RAC.
    Thanks.

    Hi ,
    we managed to reproduce the case in test environment, below are the steps:
    1)have 2 databases on different machines, will call the first one local, the other one remote.
    2)in the local database create:
    a - DBLink to remote database.
    b - read data from remote database(we simply used select count(*) from dummy_table )
    c - insert data into a table on the local database
    d - terminate the connection between the 2 databases (disconnect either machine from the network)
    e - commit on local database.
    what we noticed was the following:
    1)when the local database is disconnected from the network(the machine is not connected to any network at the moment): almost immediately throws an error, and issuing the following:
    select * from dba_2pc_pending;we found some data .
    2) when the remote database was disconnected(the local database is still connected to the network):
    after 7-8 seconds an error is thrown, and issuing the following:
    select * from dba_2pc_pending;did not return any data.
    since this is pretty similar to our case ,we concluded that it's a network issue.
    is this the correct behavior ?
    as a temporary solution till the network issue is fixed ,we did the following:
    1) changed the call of the remote procedure to calling a local procedure that calls the remote procedure.
    2) added pragma autonomous_transaction to the local procedure.
    3) at the end of the local procedure rollback the autonomous transaction.
    it seems that since the global transaction does not use the DBLink database does not issue a 2PC commit.
    this works in my cases since the DBLink is only issed to read data.

  • PC session hangs when launch a query from Oracle 9i client to 10g database

    I have a pc with Oracle 9.2.0.1.0 client installed. The database server level is 10.1.0.5.
    When I launch a query from a client session the pc sesssion locks up and doesn't return any results. When I launch the same query from the database server , or from other pcs with Oracle client 10 installed , I get results almost immediately from the query.
    The pc in question is running Windows XP Service pack 2. Other queries run fine from the pc.
    Are there are any known issues with Oracle 9 clients querying an Oracle 10 database ?

    Thank you for your reply. No, I must admit I didn't think of looking at the wait events. I will look at this as soon as I get a chance.
    Thanks again for your suggestion.

  • 11.1.1.3 DRM Blender hangs when run from batch

    We are with some frequency seeing hangs when we run a batch blender of our account hierarchy into our working version.  When this happens logging into the client seems to hang up everything without much possibility of doign any work.
    Has anyone experienced this?  The account hierarchy has some 26,000 nodes and some 10 properties at each node.
    Does anyone have experience handling DRM crash/hang problems with a best practice or troubleshooting tips?  I imagined we might be seeing some sort of locking situation after an http timeout but I am not seeing any meaningful information in any logs, so I appreciate any basic troubleshooting tips.
    Agnete

    Hi Agnete,
    I think I'd suggest logging a service request so that someone in support can have a bit of a dig into this for you and provide the following:
    1. An unfiltered application event log from the primary DRM application server in evt / evtx format (to give us full stack traces and some context).
    2. A specific example (rough time when blend was run) of when a blender was run that hung the system so that we can try to isolate what was going on at that particular time
    I think that any other approach is probably just going to be guess work until we can see what's actually been going on at the time of the problem. Seeing as the log from the batch client is empty in your case that just leaves the Windows application event log where we can look for clues.
    If we can see what is happening from the event log that should hopefully let us give you some pointers to get past the issue. At this point I'd suspect that something could be really upsetting a DRM engine process but until we can have a dig in the event log even that's just pure speculation
    Regards
    Craig

  • Choosing a Context when running a Query

    Hello,
    I have 4 Facts Tables my Universe A, B, C & D, thus have 4 context paths
    A, B, C and fact tables and share common dimensions within them.  D is a view which I created which takes the value from the A & B Fact tables .
    I ran a query which takes all values from D and it works fine, however when I run a query taking all values from either A or B, it asks me to choose the context.  The best part is that the context which query is based out of is not selected. 
    Question) How do I ensure that I do not get this message every time, as the intent is that all the data for all the filters will be dumped into Excel via QAAWS for the Xcelsius dashboard.
    Please advice.

    I have a star schema, ie 5 FACT tables and 7 dimension tables, All fact tables share the same dimension tables, some FACT tables share 3 dimesnsions, while other share 5 dimensions.  
    I did adopt the best practices, and as recommended in the book, I tried to resolve them using Context, as it is the recommended option to Alias in a star schema setting.  The contexts are resolved, but I still have loops.  I also cleared the Multiple SQL Statement for each context option, but no luck.  I need to get this resoved ASAP,
    I checked all the context and they look fine, however when I again go to detect context it asks me to add the context which is already present.  It give me an option to overwrite?  Besides, I also get some Alias options.  However I was told and it was mentioned in the book that Alias is not a good option to resolve loops but context is when you have a STAR SCHEMA.
    Please suggest idea.
    AP

  • 'Structure Changed' Error when running a query

    Hi,
    I created a query with 2 structures. One structure for the time periods and one with Key figures (Calc and Restricted).
    The query ran fine and subsequently I put this into a workbook which had other queries and made a workbook type report.
    I modified the structure with the key figures recently and when I run the query now a popup box appears saying "warning; structure changed" and lists down the query elements that I changed, and subsequently the query does not run (no data is displayed).
    But if I open the same query in design mode and do nothing and run the query again (with the same input parameters), it runs ok.
    Please advise on how I can sort this out.
    Any help would be greatly appreciated.
    Thanks,
    Dominic

    Hi,
    If you want, you can remove the query with 'Remove Query' option in the BEx toolbar and then re-insert the query and then save the changes to the workbook. The next time, you refresh the workbook you won't get any such messages.
    Thanks

  • "SYSTEM_FAILURE" error message when running BEX query

    Hello,
    I often encounter this error when I run BEX queries (take note that I encounter this error after I have already entered the query values). But when I run the same query in a later time, the query becomes successful, which makes the problem intermittent. I only encounter this when running BEX but I don't encounter such error when I'm running the query in RSRT and displaying it in SAP instead of in Excel. I hope you have any idea about this. Thank you.

    Hi Lee,
    Check transaction ST22 or SM21 after you get that message.
    Hope this helps.
    regards,
    Diego

  • Macbook Pro 2008 hangs when running video on nvidia 9400M

    My MBP (2.4GHz unibody) freezes whenever I run youtube videos for a few minutes. Resetting the PRAM and SMC didn't solve the problem. It seems to happen more often when running on batteries rather than plugged in.
    This MBP model has two graphic cards integrated. By default it runs on the nvidia 9400m. I haven't had the problem since switching over to the 9600M (crossing fingers) although the laptop does run a lot hotter now and I really don't need the extra graphics boost given by the 9600M.
    Has anyone else had this problem?
    I don't know if it makes any difference but I purchased the computer from a reseller with extra RAM (4GB total). It has all the latest updates and minimum extra software (it's brand new).
    Message was edited by: kookahunter

    Try downloading this video to see if it plays properly.
    http://www.apple.com/macbook/the-new-macbook/
    If the video that you have downloaded plays properly, then I would think that the issue is related to your Internet service.
    If the video that you have downloaded plays poorly, then I would contact Apple to try to have it exchanged or serviced.
    PS:
    Does the video hang when you watch the live stream at the following URL? You may need Adobe Flash player to view this site.
    http://live.pirillo.com
    Message was edited by: LukeD

  • Query not showing detailed result when run through query Designer or Portal

    Hi,
    There is one query which not showing detailed result while running through Query Designer or run in Portal.
    But strange thing is that it is showing the detailed result when i run it through BeX Analyzer.
    While all the other queries don't have this problem in system. All showing the correct detailed result.
    If anyone have some idea on this issue plz let me know.
    Regards,
    Javed
    Edited by: Javed Akhtar on Jul 7, 2009 3:59 PM

    Hi,
    We can do this setting in WAD. Please check the web template and try to remove that setting. When you have hierarchy then we can display only till certain level in portal, this setting is done in web template APIs, but in bex analyzer you can see all the detailed information.
    Edited
    Go through this thread for some more detailed information
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7b5f0a95ce12d0e10000000a422035/frameset.htm
    Regards,
    rik

Maybe you are looking for

  • How do I properly set the networking "Workgroup" in OS 10.5

    Ealier versions of OS X used to have what I believe was known as a - "Directory Access Utility" that enabled you to see, change, or assign a "Workgroup" name to a Mac on a local network. Where is this in Leopard ? I wish to provide a pre-existing Wor

  • Need sql query  to get sales channel code

    Hi Experts, As per my requirement i need to get the sales channel code by passing invoice number or transaction number ,or concurrent request id, with out any join condition . Please help me on this. Regards Deb

  • Check for latest revision when form is opened

    I'm developing a form for work that will be distributed to many people and I won't always know who has the form.  My plan is to post the form to a website for users to download.  Is there any way to check the website for for the latest revision when

  • ICal freezes on launch

    My ical suddenly began freezing on launch; doesn't display to do items. All my info. is there, but I can't navigate. What to do?

  • How to downgrade ios 7.0.1 to 6.1.3

    can u please help me out to downgrade my phone from ios7.0.1 to 6.1.3