Help needed in resolving query issue

Hello all,
Would appreciate any help on the following issue.
Our process has a stored procedure, which used to take 6 mins to run.
We are not sure what changed at what level, but now the query goes on forever( till database shuts down or we kill it), and never returns any result. Also, this is not consistent at all times. Sometimes(!!), it brings back results in expected time.
Apparently nothing changed in the database.
We checked and the query where it gets stuck is as follows:
select a.x,
b.y,
c,z
from a,b,c where
b.header_id =a.header_id and c.property_id =a.property_id(+) and b.status_id in (1,0) and a.date(+)>c.date;
It does not give any error or any mesg, when it reaches this query, and just hangs in there( Mind this was a working query since last 2 months)
We are at a total loss at the inconsistent behaviour of this.
Any help or advise would be greatly appreciated
Thanks
Aparajita

I recommend you to post this as well here:
Forums Home » Oracle Technology Network (OTN) » Products » Database » SQL and PL/SQL
Discussion of Oracle SQL and PL/SQL issues
PL/SQL
Joel Pérez

Similar Messages

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Hi from the last two days my iphone have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    Hi,  from the last two days my iphone( iphone 4 with ios 5) have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore...
    iPhone Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • Can you please help me how resolved this issue.

    Hi Experts
    I am trying to connect LDAP by R/3 system. R/3 system connected to LDAP but when I am trying to find and pull the fileds in the "Find in the Directolry" option I am getting below error.
    LDAPRC 010 another server is referenced.
    Can you please help me how resolved this issue.
    With Regards,
    Trinadh Bokka

    You may be able to solve by using
    Note 1151329 - Depth of LDAP search is only one level below the base entry
    Markus

  • While updating iphone software to 5.0.1, I am getting error message that Iphone cound not be updated because the firmware file is not compatible. Can anyone help me to resolve this issue.

    While updating iphone software to 5.0.1, I am getting error that Iphone could not be updated because the firmware file not compatible.
    Can anyone help me to resolve this issue.

    Using iTunes 10.5.2.11 on a PC running 64 bit Windows 7
    First did a full back up of  iphone using iTunes
    Put iphone into Recovery Mode ( http://support.apple.com/kb/ht1808 ). Erases all user data and settings!
    Disconnected USB cable from iphone
    Powered off iphone by holding down Sleep/Off button until slider appeared, slid to off, waited until screen dark
    Pressed and kept holding Home button while plugging cable back into phone
    I still saw the graphic on the iphone that said to plug into iTunes, so I unplugged and re-plugged cable. (I may have released the Home button too soon)
    Recovery Mode alert came up in iTunes.
    Followed all iTunes prompts to restore phone - it downloaded and sucessfully installed iOS 5.0.1
    iphone did not appear in iTunes due to missing pairing file (that made me nervous)
    iphone was now at factory settings. I followed prompts on iphone screen to start reactivation process
    Eventually the iphone asked if I wanted to restore from a back-up (whew!)
    A window opened in iTunes and I was able to select my previous back-up file for the restore
    A full restore from back-up then occured
    I also allowed a carrier settings update to occur when prompted (not sure that happens in all cases)
    When the restore was done I had to re-enter some passwords, but everything was there
    iOS is now 5.0.1 (9A406). The whole process took about an hour.

  • Help needed to resolve there is no attribute X errors..

    On my website http://www.dorffdesign.nl/ there is a problem. Ive put the FB Like button there and it worked fine for a while. But now its gone. So ive run
    http://validator.w3.org/ on it and came up with the next errors:
    ========================================================================================== ==============================================
      Line 232, Column 32: there is no attribute "data-href" <div class="fb-like" data-href="http://www.dorffdesign.nl/" data-send="true" da… ✉  
      Line 232, Column 71: there is no attribute "data-send" …http://www.dorffdesign.nl/" data-send="true" data-width="450" data-show-faces=… ✉  
      Line 232, Column 89: there is no attribute "data-width" …orffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div> ✉  
      Line 232, Column 111: there is no attribute "data-show-faces" …orffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div>
    ========================================================================================== ===============================================
    In dreamweaver ive use this code for the FB likke button:
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    ========================================================================================== ===========
    <div class="fb-like" data-href="http://www.dorffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div>
    I really want to solve this so im hoping if you can point me into the right direction.
    Regards

    Hi ive bin able to put the fb like button on my page. But i totally forgot how i have to place the fb like button under the black box named portfolio.
    I hope you can tell me.
    Regards
    Date: Wed, 7 Nov 2012 07:41:54 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help needed to resolve there is no attribute X errors..
        Re: Help needed to resolve there is no attribute X errors..
        created by MurraySummers in Dreamweaver General - View the full discussion
    You can either ignore those errors (since they have no impact on your page's functionality) or you can use DW to convert your page to an HTML5 doctype (File > Convert > HTML 5, and then the errors will go away.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4829606#4829606
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4829606#4829606
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4829606#4829606. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of g

    Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of great help..thanks .

    I think in your situation it would be worth trying the things listed under the event. It does have to do with FRS and it's easy to do. I've used it to fix journal errors after a server unexpectedly restarts and sysvol stops replicating.  I
    could see where it could fix your issue, and if it doesn't, you're out 5 minutes. :)
    The listed registry key does not exist
    Expand HKEY_LOCAL_MACHINE. 
    Click down the key path: 
       "System\CurrentControlSet\Services\NtFrs\Parameters" 
    Double click on the value name 
       "Enable Journal Wrap Automatic Restore" 
     

  • My iphone4 camera shutter not opening please help me to resolve this issue , i tried a restore it still exist, my iphone4 camera shutter not opening please help me to resolve this issue , i tried a restore it still exist

    my iphone4 camera shutter not opening please help me to resolve this issue , i tried a restore it still exist, my iphone4 camera shutter not opening please help me to resolve this issue , i tried a restore it still exist ,please help me

    uninstall all iTunes,5 programes,this worked for me after reinstall them

  • HT4623 After I update IOS6 for my iphone 3gs, while i turn on vibrate (Using side button) is not supporting. Automaticlaly tur.n on ring mode. So please help me to resolve this issue.

    After I update IOS6 for my iphone 3gs, while i turn on vibrate (Using side button) is not supporting. Automaticlaly turn on back to ringing mode. So please help me to resolve this issue.

    No one facing this issue in 3GS? please help me.

  • I am having trouble sending text messages. They aren't always going through. And sometimes I'm not receiving text messages.  I also have voicemails that I didn't receive until late at night that were left early in the day. I need to resolve this issue ASA

    I am having trouble sending text messages. They aren't always going through. And sometimes I'm not receiving text messages.  I also have voicemails that I didn't receive until late at night that were left early in the day. I need to resolve this issue ASAP!

    julie@remax,
    I know that this would concern me just the same and we want to make sure that your device is connected and receiving these notifications when available. How long have you been having this issue? Are you receiving a specific error message when sending a message? Are you aware if this happens in one location specifically or everywhere you go? Does the issue with messaging occur with all numbers? Share some details, so that we may assist.
    AdamG_VZW
    Follow us on Twitter @VZWSupport

  • Help needed in resolving warnings while migrating to flash 4.6

    Getting the below error in FlashBuilder 4.6:
    1067: Implicit coersion of a value of type mx.controls:Tree to an unrelated type mx.controls:Tree
    The line of code is below which is there in QueryTreeAs.as:
    ModelLocator.getInstance().queryTree=queryTree;
    where queryTree is a component in a different mxml file - QueryTree.mxml. Like the below one:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
        width="100%"
        height="100%"
        name="query"
        creationComplete="init()">
      <!--<mx:Style source="/assets/styles.css" />-->
      <mx:Script>
      <![CDATA[
      include "QueryTreeAs.as"
      ]]>
      </mx:Script>
      <mx:Tree y="0"
      id="queryTree"
      width="100%"
      height="100%"
      showDataTips="true"
      dataTipFunction="getDataTipLabel"
      labelFunction="tree_labelFunc"
      showRoot="true"/>
    </mx:Canvas>
    Any pointers to resolve this issue would be helpful!

    hey folks
    I have found out that every time the PDF file is downloaded, in the firefox download manager, that opens up to show the status of the downloaded PDF, when I click on the "Remove" button once I open the much needed PDF, the PDF is not carried onto the next upload for some reason... but I still need to investigate in Netscape and see how it works..
    thanks guys
    I will come back to update you once I test it in netscape navigator
    hepzi

  • Help needed in solve my issue in sapscript.

    Hi all,
    I have a requirement to prin the terms and condiions after my Po layout. for this i have created 4 pages for terms and condition. Each page i have included two windows. One is main window and another window is having the text to be printed.
    in standard attributes i have assigned as
    page                         next page
    first                           next
    next                          last
    last                           last1
    last1                          last2
    last2                          last3
    last3                          last3.
    Here my issue is only the first page of the terms and conditions are printing in the output... Remaining text dint print..
    Please help me to solve the issue....
    Thanks
    Ahamed
    Edited by: Ahamed Anish on Oct 22, 2011 3:27 PM

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • Help needed to resolve-First component in name com.adobe.output.config.OutputConfigHome not found

    Have installed Live Cycle ES2.5 SP2 Server (WebSphere) Trial version with Oracle DB.
    I want to generate PDF by merging data xml with XDP template. Hence I am trying to remotely invoke Livecycle Output Service (web service) for creating the PDF document using the Java API (as per API Quick Start Code Examples).
    But I am getting following exception-
    com.adobe.livecycle.output.exception.OutputException: 
    Context: WINADV93Cell01/clusters/cluster2, name: com.adobe.output.config.OutputConfigHome: First component in
    name com.adobe.output.config.OutputConfigHome not found. in javax.naming.NameNotFoundException, cause: IDL:omg.org/CosNaming/NamingContext/NotFound:
    1.0 in org.omg.CosNaming.NamingContextPackage.NotFound
    at com.adobe.printSubmitter.util.ResultFile.<init>(ResultFile.java:65)
    at com.adobe.printSubmitter.PrintServer.submit(PrintServer.java:229)
    at com.adobe.printSubmitter.service.OutputServiceImpl.generateOutputInTxn(OutputServiceImpl. java:262)
    at com.adobe.printSubmitter.service.OutputServiceImpl.generatePDFOutputInTxn(OutputServiceIm pl.java:395)
    at com.adobe.printSubmitter.service.OutputServiceImpl.access$100(OutputServiceImpl.java:82)
    at com.adobe.printSubmitter.service.OutputServiceImpl$2.doInTransaction(OutputServiceImpl.ja va:346)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doRequiresNew(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)
    at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute(DefaultTransactionT emplate.java:79)
    at com.adobe.printSubmitter.service.OutputServiceImpl.invokeGeneratePDFOutputWithSMT(OutputS erviceImpl.java:341)
    at com.adobe.printSubmitter.service.OutputServiceImpl.generatePDFOutput(OutputServiceImpl.ja va:304)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    Kindly help me to resolve this error? 

    Form Server has nothing to do with Reader Extensions (you must be running an orchestration that uses a Forms Call then a RE call). Lets validate that each component is installed correctly. Can you open the Reader Extensions UI and apply rights to a file?
    Use this URL to get to the UI:
    http://servername:portNUmber/ReaderExtensions
    Note that you will need the rights to log in .....use administrator for now.
    Paul

  • Do we need to resolve all issues with intermediate 2010 migration before going to Exchange 2013?

    We just migrated from Exchange 2003 to Exchange 2010 as an intermediate step to going to Exchange 2013.  Everything is working through OWA, so all the data has been transferred.  We have users that can access Outlook 2010 through a Citrix server,
    and through their local workstations.  Outlook 2010 is working fine through Citrix as well, but on all users if they access Outlook 2010 on their laptop they get an error when trying to do Out of Office messages, and they can't see free/busy time for
    other users when adding them to meeting invites.  
    I already have a post about the issues, but since we are moving to 2013, could the migration fix these issues, or do we need to resolve them first?  The data is clearly there, so I don't think that's the problem.
    Thanks!
    --Kent

    Hi,
    Did you try to recreate the outlook profile and check the result?
    What error did you get when you try to open the Out of Office Assistant in Outlook 2010?
    The following article for your reference:
    http://support.microsoft.com/kb/2596516/en-us
    Thanks.
    Niko Cheng
    TechNet Community Support

  • I am using iphone 3g 16GB and the upper side of the touch is not working plzzzz help me to resolve the issue

    I am using iphone 3g 16GB and the upper side of the touch is not working plzzzz help me to resolve the issue

    Thanks for the response Templeton Peck,
    New phone...! means the phone will get the replacement or I have to purchase a new one...?
    or if I change the touch pad or the touch screen will it not fix the issue...?

Maybe you are looking for

  • Error while executing Batch Risk Analysis job in full sync mode

    Hi Gurus, I am getting following error while executing Batch Risk Analysis job in full sync mode for the first time, please help me out. May 12, 2011 3:57:26 AM com.virsa.cc.multi.node.dao.NodeDAO deleteMTGenObjTable INFO: In deleteMTGenObjTable() de

  • HR_INFOTYPE_OPERATION not working when called from Dynamic action

    Hi ,        Senario  : I would like to execute a form from dynamic action which creates a record in 0015 (Additional payment IT) .        I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION . When i execute the program from se38 i

  • A TwoWay or OneWayToSource binding error:

    I got an exception which is "A TwoWay or OneWayToSource binding cannot work on the read-only property 'OrderDate' of type '<>f__AnonymousType0`3." The xaml code: <Window x:Class="OrderEntryProjectWPF.MainWindow" xmlns="http://schemas.microsoft.com/wi

  • Adding images to the header & footer in Pages for the iPad

    How do I add images i.e. logos into the header and footer in Pages for the iPad.

  • Adobe Reader not displaying online bill properly?

    Good afternoon,      Since June 2013, Adobe Reader began displaying one of my online utility bills with overprinted, reverse-oriented alphanumeric characters, over top of some portions of the bill, when using Firefox browser (v23).  Adobe Reader vers