OracleCommands With Parameters not being prepared

Hi!
We have a complex issue.
Client (actually originally we had the issue in the appserver, but we also reproduced in a win box): Win, ODP.Net unmanaged 2.112.3.0
Server: Oracle 10.2.0.4.0-64b running on AIX.
The simptomps: symple select running for long time. Same select take seconds in SqlDeveloper.
The query is of the form:
"select * from <Phisical Table> where field1=:0 and field2 between :1 and :2"
there are indices defined, that are being used when we call from SqlDeveloper, however, when we call from .net, using the following pseudocode:
DbCommand liacmd = liaFactory.CreateCommand();
DbParameter lioParameter1 = liacmd.CreateParameter();
lioParameter1.ParameterName = ":0";
lioParameter1.Value = "70100100347";
liacmd.Parameters.Add(lioParameter1);
DbParameter lioParameter2 = liacmd.CreateParameter();
lioParameter2.ParameterName = ":1";
lioParameter2.Value = "20130101000000";
liacmd.Parameters.Add(lioParameter2);
lioParameter2 = liacmd.CreateParameter();
lioParameter2.ParameterName = ":2";
lioParameter2.Value = "20131017000000";
liacmd.Parameters.Add(lioParameter2);
DbDataReader liareader = liacmd.ExecuteReader();
With the unmanaged .net provider, the ExecuteReader takes around 3 minutes, the Read() 15 minutes!
If i switch to the OleDb provider, the Execute+Read takes less than a second in total.
We have the ODP.Net trace level 63, it taking long time in actions like:
     TIME:2013/10/18-08:38:58:186 TID: b54  (ENTRY) OpsGetAvailPhysMemory()
     TIME:2013/10/18-08:38:58:186 TID: b54  (EXIT)  OpsGetAvailPhysMemory(): returnValue=0 Line=1068
However with the old ODP.Net unmanaged 2.111.6.20 the time was spent in...
     TIME:2013/10/18-08:01:07:453 TID: c80  (ENTRY) OpsSqlExecuteReader(): (1c0f38)=0
     TIME:2013/10/18-08:09:57:013 TID: c80  (ENTRY) OpsMetAddRef(): (1c3668)=0
Any ideas on how to debug this mess (in the production db)?
thanks
daniel

Hi Alex,
Thanks, answering the questions:
Does this problem only occur on one machine (i.e. production, not on test machines)?
     > when it happens, it happens everywhere (production/test machines, but allways when accesing the production 10g db).
     > Today the problem is not happening, so i cannot test, waiting until the next occurrence so I can continue testing alternatives.
Does this behavior occur with other queries? If so, what do all those queries have in common?
     > Other queries behave ok, is just this particular simple query. It is weird, I have to recheck, but apparently even changing the parameter value will make the query work in some occasions.
What if the parameters are replaced by literal values?
     > Good advice, will try that the next we experience the problem.
So now we are just waiting for the next time the problem appears, to be able to try more options.
thanks!
df

Similar Messages

  • [svn:osmf:] 14982: Fixing some event parameters not being forwarded.

    Revision: 14982
    Revision: 14982
    Author:   [email protected]
    Date:     2010-03-24 02:15:50 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Fixing some event parameters not being forwarded.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/DebuggerElementProxy.as

    Hi,
    Thanks for posting in Microsoft TechNet forums.
    I will try to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Kate Li
    TechNet Community Support

  • When is the next ios update and will it fix/address the issue with photos not being shown in chronilogical order?

    when is the next ios update and will it fix/address the issue with photos not being shown in chronological order?

    All of us here are users just like you. We have no inside info of when Apple products or operating system updates/upgrades will be released. The next iOS may not even change the issue you have.
     Cheers, Tom

  • The clock on my ipad seems to be stuck? Could this have anything to do with my not being able to connect with FaceTime ?

    The clock on my iPad seems to be stuck ? Could this have anything to do with me not being able to connect with FaceTime ?

    In order to backup to iCloud the iPad must be plugged into a power source, connected to WiFi and locked - meaning that it must be asleep - or with the lock screen only visible. This is for automatic backups.
    If the iPad is not responding at all to any user input, try restarting it or resetting it and see if you can take the steps necessary to back up. You can initiate the backup manually as well.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Emailed photos taken with iPhone not being received

    Emailed photos taken with iPhone not being recieved.
    Photos I have taken with the iPhone and then emailed are never received. I have sent them to two different yahoo accounts and neither account received the photos... I sent both using EDGE and WIFI... Same trouble with both...
    Any idea why this feature is not working ?
    Thanks,
    -Frank

    Now it's magicly working.... maybe....
    I did as you asked and sent myself emails from my iphone and nothing was received.... tried sending to my yahoo account and my work account... did this 3 or 4 times and nothing was received and nothing was shown as being sent... even though I caould hear the "sent" sound each time....
    I then tried sending to my personal and my work accounts and also added one of those to the "CC" line... so that email had 2 email address in the "To:" line and 1 eamil address in the "cc:" line... That one worked just fine !!! got it twice in my personal account and once in my work account.
    I then tried emailing the same photo that I had tried before and it too worked correctly...
    The only itmes that have shown up in my sent box are the last tow... the email with multipul addresses and the photo that I sent right after...
    So... it appears to be owrking at the moment...
    Thanks for your help... I'm not sure why it's working now.. but at least it is...
    Thanks for you help,
    -Frank

  • DAC source system parameters not being generated

    HI all,
    We are implementing BI apps 7962 with Informatica 861 Hot FX11, OBIEE 101341 on Linux5. We have installed and set up the configuration completely. The Informatica services are created and the DAC was configured with the Source System Parameters. When I generated the execution plan parameters, the files are being generated in the SRC files folder. But it seems like the source system parameters I set in the DAC client are not being picked up.
    For example I have set the Initial Extract date as 1/1/2008. But when I ran the load and saw the log files it still seems like the Initial Extract date is 1/1/1970. We have set the custom property for Integration Service overrideMpltVarWithMapVar as Yes. Please help me if any one has seen this before.
    Thanks
    MN
    Edited by: MNRK on Apr 5, 2011 12:49 PM

    Hi,
    When you have configured all the tasks in DAC, while running the loads DAC will generate the parameter files at runtime.
    You need to make sure that parameterfileDW.txt and parameterfileOLTP.txt files are present in DAC Installation Directory\bifoundation\DAC\Informatica\Parameter\Input folder.
    If these files are not present in the above mentioned location then you need to copy them from Informatica Installation Directory\PowerCenter 8.6.1\server\Infa_Shared\SrcFiles folder.
    Hope this helps...................
    Thanks,
    Navin Kumar Bolla

  • Problem with process not being executed depending on sequence

    Got a weird problem which is causing us much frustration. We have a page with 6 processes on. It appears that several of the processes are not being run by Apex, we've verified this by looking at the debug readout.
    We created a new, unconditional test process to always run and placed it before all the other processes in the page. However it's not being run either. It doesn't even show up in the debug. But if we then change it's sequence so it's the last process in the page, it runs fine and shows up in the debug readout.
    Could we have set something on the page that's causing Apex to skip the first 2 processes. Even if they're conditional I'd expect the debug readout to show that Apex hasn't run them (e.g. 0.03: ...Do not run process "PROCESS1").
    The processes on the page have sequences of 10, 20, 30, 35, 40, and 999. If we create the Test process and assign it any sequence below 20, it fails to run. A sequence of 21 or above makes it run.
    Any ideas? We are stumped!

    They are all After Submit processes, they only run when the page is submitted, not when first built, so should they not all be shown in debug when the page is submitted, whether they're conditonal or not?
    The strange thing is, if I change their sequence values to 21 or above, they run fine. Although this does solve our problem it doesn't explain why they're not running as expected, and it's a potential issue that could catch us out elsewhere.
    Edit - we're narrowing it down I think. One of the processes appears to be the cause of this. If we increase it's sequence number, it seems that anything with a lower sequence than it never seems to run. I'll have a look at what this process is doing although I still don't understand why the ones before it don't show up.
    Edited by: Antilles on Mar 11, 2009 9:12 AM

  • Please help with videos not being displayed

    I bought two videos at videohive. All i have to do is put my photos at the placeholders and render the videos.
    I did with three other videos and all went fine.
    but these two that i bought today are being displayed like this:
    http://www.andybrain.com/sciencelab/wp-content/uploads/2008/01/color-bars.jpg
    Any ideas what is happening? last version of Ae and quicktime...
    Thanks a lot.

    We can't know anything. You are not telling us what is involved in the projects or any other details like system informtaion. Perhaps you forgot to download some complimentary footage, perhaps you are missing a CoDec to use footage that comes with the project, perhaps there is some other technical issue like some CoDec or effect not being compatible with your render settings.... In any case, you will have to spill a lot more details and provide more screenshots.
    Mylenium

  • ICloud email with hyperlink not being received

    I have tried several times to send an email with a link to a tumblr blog and it is not being received by the recipients.
    It is in my sent items and I have not received a notification to say it has not been sent. If I send the same email without the hyperlink they recieve it.
    What is stopping this email from being sent properly and why am I not receiving a notification to say otherwise.
    Thanks.

    It's probably being caught by a spam filter somewhere along the way. Spam filters don't usually send notifications to the alleged sender or the nominal recipient.

  • Email with attachments not being sent

    When I send an email with an attachment it is not being recieved. It shows up in the 'sent' box but never gets to the person I send it to.

    It could be that the size o fthe attachment is too large and the server used by the reciever rejects it.  It could be you have the wrong address (not as likely).  I'd try the following:
    1) send a short email with no attachment to xxx.
    2) send a short email with a small file attached to xxx.
    3) send an email with the file you tried to send previously to xxx.
    Which of these works, which don't?

  • Shared With Emails not being sent

    When we try share a document with users(using Shared with), the emails are not being sent, though permissions are assigned.
    The emails are sent for few users, but it fails for most of the users. The logs indicate that the emails are sent successful.
    Our SP server is on the Azure platform and we have Office 365 email accounts. I have browsed through few articles which suggest that the users shouldn't have an on-premise mail box , so tried with users who do not have on premise mail boxes, but no luck.

    Hi,
    Check if an email alias is already placed to user account or not. If not you can see below URL on how to do that and try sending an email now. 
    https://support.office.com/client/Add-an-email-alias-to-a-user-account-cd25a91a-eb1a-4ed7-be94-5517fb5113c2
    Also have a look at 2 of the below mentioned articles for this.
    http://support.microsoft.com/kb/2757871
    http://support.microsoft.com/kb/2730609#
    Please mark the same as answer if it helps you.

  • I have a problem with cookies not being enabled. I followed the guide "Enabling and deleting cookies", but it did not save new settings to my computer. What should I do?

    I am trying to login to Facebook. I keep getting error message
    Cookies Required
    Cookies are not enabled on your browser. Please adjust this in your security preferences before continuing.
    I followed the Firefox direction for privacy settings but they are not being saved. What am I doing wrong?

    If you are blocking cookies, make an exception; If you are not blocking cookies, make sure you don't block site with an exception. Compare your settings to
    * http://imageshack.us/photo/my-images/232/clearcachew.png/
    Some references:
    * Cookies - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Cookies
    * Cookies | How to | Firefox Help<br>https://support.mozilla.com/kb/Cookies
    * Enabling and disabling cookies | How to | Firefox Help <br>https://support.mozilla.com/kb/Enabling%20and%20disabling%20cookies
    * Problematic extensions - MozillaZine Knowledge Base (see '''NoScript''' extension) <br>http://kb.mozillazine.org/Problematic_extensions

  • Help with ipad not being recognised

    Hello there. I have seen some of the discussions on here with a problem similar to mine, but am afraid that some of the explanations go way above my head in technical terms.
    The itunes on my pc has stopped recognising my ipad. I have looked at some of the troubleshooting options, the main one being to download the itunes 10.7 which I have tried, but it will not load on to my pc. Can anyone please help?
    Thanks

    Found some other discussion which helped my problem.  Thanks guys.

  • Issues with thunderbolt not being detected on initial start up

    I understand that when running windows boot camp for your thunderbolt display you have to either reboot or start up for it to be detected. However, I shut my machine down every night and when I come back in the next day and start up, the thunderbolt is never detected. I reinstalled the windows support software and this seemed to fix it but only for a short period. Any suggestions?

    kirstyfiona wrote:
    I understand that when running windows boot camp for your thunderbolt display you have to either reboot or start up for it to be detected.
    It should not be necessary for plug/play devices.
    However, I shut my machine down every night and when I come back in the next day and start up, the thunderbolt is never detected.
    Do you boot with the TB monitor connected?
    I reinstalled the windows support software and this seemed to fix it but only for a short period. Any suggestions?
    Do you have Windows Automatic Updates set up, which may be updating your drivers, without you knowing what is going on? Check Windows Update history.

  • Has anyone had an issues with certain not being able to SMS certain numbers after upgrading to IOS6.1.3

    I upgraded my software on iphone 4s on Tuesday and since then I can no longer send an SMS to my parents (how live in Spain and therefore its a Spanish mobile).  The international dialing code is correct, and I am on a contract therefore no isssues with credit.
    When i try to send the SMS it keep saying delivery failed.  Been trying for 3 days.  And also when my parents call me from there mobile numbers it now coming up as a blocked unknown caller rather than the contact name as it did pre-upgrate.
    Would really appreciate if anyone has an ideas to fix this as hate being cut off from my familly.

    Already done this and they haven't found any problems or made any changes.  All the problems started following the upgrade to 6.1.3

Maybe you are looking for

  • How do I fix M4P music files that stop suddenly on my new computer?

    So I purchased a windows laptop and transferred my music from my mac mini to the new system and a large number of my music files - that I purchased from the Itunes store- now stop suddenly.  The files all appear to be m4p files...how do I repair the

  • Upgrading Oracle Database from 10.2.0.3 to 10.2.0.4 on Windows XP

    Hi, My moto is to install Oracle DB 10.2.0.4 but i didn't find that vesion of DB. so i installed 10.2.0.3 and now wanted to upgrade it to 10.2.0.4. Please redirect me to proper documentation or patch that will help me. Is there 10.2.0.4 setup directl

  • Can't print booklet to PDF?

    I am using InDesign CS5 (7.0.3) on Mac OSX 10.6.8. I've created a short 12-page document, 5.5"x8.5", and I want to print it 2-up so it will fit on letter-size paper that I can fold and staple. Simple, right? I can't figure out how to print it as a PD

  • How to copy and paste text from email to a memo pad or browser?

    what is the gesture to highlight and copy and paste a selection of text from an email message to another destination. I have a URL that is now showing up as a hyperlink and I need to cut and paste it out of the email.  the two finger gesture from the

  • How do I upgrade to Snow Leopard?

    Hello,   I am currently running OS 10.5.8 and I would like to buy the Snow Leopard upgrade. How do I do this? I have looked around the apple online store and I cannot find anything about buying it. Any help would be great, thanks. ~Chelsea