Calling from the application Slow vs. Running through SQL developer Fast

Alright, we write many applications that make use of calling stored procedures in packages to return data. This is the only time i have ever encountered this issue and have not been able to pinpoint the cause.
This application is very data-centric and is filled with calls to stored procedures and I would say about 80% run fine as in the time required to run is about the same as in SQL Developer maybe just a little slower due to the amount of data that may be returned to the application. The other 20% run horribly slow from the application and run lighting fast in SQL Developer and i cannot figure out why.
I have traced the code right up to the .Fill on the Oracle.DataAccess.Client.OracleDataAdapter and that is where it just holds either for a long period of time or just forever, some of these i haved waited hours for and they have not finished running.
For Example: I created a new page in the project and it makes a request through the use of ajax, when the request file is reached it performs two stored procedures from the same package (the only two procedures in the package). Both procedures take in three varchar2's and have an in out cursor, the cursor is returned into a datatable in the VB. The first query runs in a couple seconds returns the correct data etc. The second query, which takes .2 seconds on average to run from SQL Developer, just runs and runs and i have never actually even waited for it to finish because it takes so long. The specific example i am trying only returns 1 row with 7 columns, so there is not a large amount of data being passed back.
I have seen this sort of thing happen on occasions, but everytime it was usually because the package was not compiled and was waiting on a view to finish before compilation and after killing the view it was fine. But this issue seems to happen randomnly with certain procedures and not others all in the same package.
This issue happens on the same procedures everytime which would lead me to believe it is the procedure, but running them in SQL Developer shows me this is incorrect because they run exceptionally fast in some cases. I even went so far as to restart the entire database just in case there was some sort of lock causing this issue but this did not fix the issue.
I have verified parameters, cursors, debugged the procedures, stepped every line of code, tried deleting and readding the oracle.dataAccess reference. I can't seem to figure this one out.
It is causing alot of wasted time because i am forced to wait a horribly long time for these queries in order to test. If anyone has any clues, hints, or ideas as to what this could be please let me know! If the same issue exists when the application is moved into production it will be unnacceptable and the application utterly unusable.
Thanks in Advance for any help!
-Jarrod

Hi,
This is consistently reproducible with the problem procedure/operations? Total WAG here, but I've seen cases where having support for distributed transactions enabled causes the database to disable certain optimizations. Try setting Enlist=false in your connection string.
Otherwise, I'd recommend enabling 10046 database trace and client side sqlnet trace to capture the problem behavior for further investigation. Oracle support can certainly give you a hand with that if needed.
Hope it helps,
Greg

Similar Messages

  • CAD - TRANSFER CALLS FROM THE APPLICATION

    In CAD, when the agent press the "Transfer" button, the customer is still connected to the agent. I mean, you need first to dial a number, and then the call is really transferred.
    This is confusing our agents. Is there any way to change this? Thanks in advance!

    Hi, I am afraid it cannot be changed. When you transfer a call using CAD, it first takes the numbers and then it opens a second channel (initiates a second call).
    When transferring a call using the phone, it needs to open a second channel first before it can take a number so this is why the frist call must be held first.
    G.

  • Need to run VI on boot or call from other application

    I am looking for the most basic way to get Labview to run a VI upon bootup or call from another application (without having to hit the run button on the toolbar.) I would rather not have to build an application; I don't want to buy the professional version. I want my data acquisition to recover from a power outage reboot and keep going without human intervention. Is there a way to build an init that launches the VI in run mode? A colleague of mine has convinced me labview is the way to go for a new experiment, but this is one stumbling block that needs to be resolved. Thanks for any help you can give.

    i have used the startup folder to run labview vi's on several machines and it *can* work just fine.
    however, sometimes there is a timimg problem and i get the message 'vi not found,' then labview usually loads the vi and runs - but leaves the error message, which can cause problems with later operations.
    today i had this problem with a 3.4 G HP machine running Win200. Labview 7.1 & DAQmx.
    my work around solution is to use the *MarcroScheduler* program. i call a it from the startup folder. it does the following
    (a) start Labview 7.1
    (b) wait 1 minute
    (c) execute the vi.
    without the wait state, Labview 7.1 will not run the vi properly.
    good luck with your applications.
    cu,
    larryb

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

  • When I am listening to the radio (streaming through itunes) my macbook pro will log me out, quitting all the applications I have running (often firefox, word processing, itunes, etc). Why?

    When I am listening to the radio (streaming through itunes) my macbook pro will log me out, quitting all the applications I have running (often firefox, word processing, itunes, etc). Why?
    It's very frustrating and I don't understand why it happens. It might happen other times, but I notice it the most when I'm streaming the radio through itunes, though I think it's also happened when I'm streaming music or shows from NPR, so I don't actually know if it's an itunes thing, or an internet thing? Or just my computer being stupid?  But how can I fix it?
    Thanks!

    My best guess at this point is a problem wwith 10.5.8
    It seems clear to me that sometimes, seemingly randomly, software will access the video card (flash player, quicktime, Safari's HTML5 video player, etc) and it will cause a freeze and then log out.
    However - it could just be video card + processor under load.
    This didnt happen before 10.5.8 and I'm thinking it's not the new 27" display causing the issue.
    I'm going to attempt to find time to revert back to 10.5.0 and then combo update back up to 10.5.7 which may be difficult as our IT is remote and we don't have access to Snow Leopard discs.
    I may just have to bring my own in.

  • How to let the user know the application is still running during SQLite reads

    I'm using an SQLite database to read and write to my application. In some places it has to do very large reads and writes and the application comes to a standstill for like 10 seconds while this is happening. I've tried calling showBusyCursor(), but it only works if I call that function and then set a timer to execute the sql query. But the busy cursor also freezes once the connection starts.
    Why doesn't the showBusyCursor work during this time? Are there any other things I can do to the application to ensure the user that it is not frozen and just processing?

    Keep in mind that I haven't actually implemented this yet, but my path is headed right in that direction in the next few days. From wh
    at I have read you can access the database in two modes: synchronous and asynchronous. From your description it sounds like you are accessing the database in synchronous mode, which will stop the application thread until the database thread is completed.
    To get around that limitation you will want to run your database accesses in asynchronous mode, so that the application will continue running while the database is being accessed. What you do then is implement a listener on the database that will call a function that will hide the waiting cursor or image. Then you start the waiting indicator in the application. Once the database is done, it will trigger your listener and remove the waiting indicator, allowing the user to once again interact with your app.
    Hope this helps!
    ~Mike

  • Endeca webservice call from different Application.

    I am trying to call the Endeca (v2.2.2) Webservice, using the client generated class file from the wsdl file (conversation.wsdl) and pass the query to get the result. Steps so far did
    •     Use apache cxf codegen plugin 2.7.0 to generate the client classes using the above wsdl.
    •     Written junit test case for client class and send the query to server. I can connect to the server but getting back the ConversationFault: Sequence has length 0 but must have length 1
    •     The only method I can use to call from the client is conversationPort.query(request), which is generated by cxf wd12java
    •     Following is the line of code from the client class
    ContentElementConfig config = new ContentElementConfig();
    config.setHandlerFunction("AS select max(p_common_date_epoch) as 'MaxDate' where Social_Media_Type = 'Twitter' group by interaction_author_username, interaction_text, interaction_link, Klout_Score, Followers_Count, DocumentSentiment, calculated_entity_sentiment, SalienceSentiment order by MaxDate desc, Followers_Count desc page (0,50)");
    Request request = new Request();
    request.setState(null);
    request.getContentElementConfig().add(config);
    Client Call: Results results = webServiceClient.readQueryResults(request); // this method internally calls conversationPort.query(request).
    Any thoughts or recommendation please advise.
    Edited by: user4993272 on May 9, 2013 10:57 AM

    Hi,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    A service wont allow you to access the live instance of an application and instead create its own data session. So while you can query data that belongs to App2, you wont be able e.g. to access a users uncommitted data changes
    Frank

  • User is thrown from the Application under Cluster stress test

    Hi All,
    i have ADF/ADF faces application running on WLS 10.3.5.0 Cluster Environment (with 2 nodes).
    I'm running application using in memory Session replication.
    The problem which i have is that under the stress test (about 10-20 users) sometimes user suddenly is presented with Login Screen (more rare with session expired message) ! This also can happens immediately after user login .
    That happens randomly on different part of the System. In more of the cases user is thrown independently from other users but
    sometimes all the users are thrown simultaniously.
    When the System is tested with only one user this effect appears very rare.
    What i have done is to enable Cluster and Replication debugging to see if there some errors within Http Session Replication. However there isn't any errors appeared. From the application part everything seems fine.
    I suspect that the proxy could cause a problem (by forwarding the request to secondary instead of primary server). Currenltly i'm using HttpClusterSerlvet installed by default from WebLogic Configurator on dedicated Managed Server.
    Can somebody give any advice with this ?
    Thanks in advance,
    Krasimir

    Krashmir,
    Did you find any solution for this problem. I am also facing the similar issue.
    Thanks,
    Ram

  • PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now I get "Some of the application components are missing from the Application directory, Please reinstall.."

    PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now when I try to run PS 64-bit I get "Some of the application components are missing from the Application directory, Please reinstall the application." When I do this, it seems to install correctly until the very end, then it says "Installation Complete With Errors", and when I try to run I get the same 'component missing message'. What can I do? PS 32 bit runs fine. Some of the other applications ib Web Premium say the shortcut has been changed or removed. I appreciate your help...Thank you

    Best advice I can think of is to uninstall and run the Clean Script from here.
    Adobe - Adobe CS4 Clean Script

  • Some of the application components are missing from the Application directory, Please reinstall the

    Some of the application components are missing from the Application directory, Please reinstall the application. This is what i am getting tying to open Photoshop Cs6???

    Renée in the future when removing Photoshop CC please utilize the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Please run the uninstaller and then reinstall.  If you continue to face difficulty reinstalling Photoshop CC then please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

  • I did this -- Windows 7 and Vista 1. Select the Start Menu in the Windows Taskbar. 2. In the Search box, enter the following: %APPDATA% 3. Press Enter. 4. From the Application Data folder, navigate to Local\VirtualStore\Program Files\Mozilla Firefox. 5. D

    When I sign out of FF and want to go back in, I have to go through Task Mgr each time by deleting FF and then signing back in. I followed these directions -- Select the Start Menu in the Windows Taskbar. 2. In the Search box, enter the following: %APPDATA% 3. Press Enter. 4. From the Application Data folder, navigate to Local\VirtualStore\Program Files\Mozilla Firefox. 5. Delete the file xpicleanup.dat. 6. Restart Firefox. --- but I could not find Mozilla Firefox under 'Program Files'.
    == This happened ==
    Every time Firefox opened
    == about a week ago

    Where did you find those instructions to delete the '''xpicleanup.dat''' file?

  • Environment.Exit hangs when called from an application domain exception handler

    I've implemented a handler for exceptions not thrown in the main GUI thread of my C# WinForms application, as follows:
        AppDomain.CurrentDomain.UnhandledException  += OnUnhandledExceptionThrown;
    This handler is called from a background thread. The last statement in this handler is a call to
    Environment.Exit with the application exit code. However, the application hangs in this call. From within Visual Studio, it hangs and I'm unable to break the application; I have to use Task Manager to terminate Visual Studio. Environment.Exit
    works fine when called from the unhandled exception handler for the GUI thread. Is there a better way to terminate the application in the context of an unhandled exception thrown by a background thread?

    Are you just trying to avoid a crash? Environment.Exit can cause deadlocking if exiting in the wrong kind of scenario; if you're just trying to avoid a crash, use
    GetCurrentProcess with
    TerminateProcess to terminate your own process.  It skips the notification phases that Environment.Exit uses which prevents the common deadlock scenarios.
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

  • Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing Some of the application components are missing from the Application directory. Please reinstall the application. I have the pay monthly package and don't

    Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing, Some of the application components are missing from the Application directory, Please reinstall the application. I have the pay monthly package and don't know where to start.

    Do as it says: Reinstall the program. Run the cleaner tool and let CC app do the magic.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • Own CS5, will not open, message says, "Some of the application components core missing from the Application Directory.  Please reinstall the application".  What do I do?

    What now?  Can't get a phone number  to contact Adobe???????????????

    Hey Cal do u have a windows box or apple? Do you have the compressed files from the original download or a backup or image of your computer? Last question for now-please describe the events that led up to the error message in your original question. Like " my girlfriend was mad at me and while I was cleaning up some photos in CS5 she cut the electric to my desktop!"
    there is a chance if its a windows box and its running the OS win7, win 8, win8.1 and the systems restore setting turned on that if you can remember the last time(date) that CS5 worked: restore it(the computer) to that date or before that date. Also is there are some other options if its a mac but i need to know the operating system version and other info as to what other software is on your machine plus similar info like sw such as mackeeper, boot camp. parallels that another adobe community member(Bo LeBeau ) alluded to.
    Provide me more info and i can/will help you! maybe even a way to minimize your cost of paying for adobe support if that what you wanna do.
    Another vector that may be worth the effort is: find out generally or exactly what components are missing/corrupted from the application core sometimes there can be confusion(zip software posing as malware) or use in the mac and windows world of wrong procedures and use of decompression of compressed( ie winzip vs winrar) files that lead to CS5 working and all of a sudden not working. Last even installers can get flaky over time. So i know you wanna handle this so u can use CS5; but I need some more info. Have a good one! later and greater!

  • Mail won't open either from the dock or from the applications folder. Icon bounces but program won't open

    Mail worked fine this morning, then, when I went to open the program this afternoon, the icon bounced in the dock but would not boot either when I tried to open it from the dock or from the applications folder.

    The nib file is the visual part of the user interface, so it has either got damaged or gone missing, which (unless you have been moving things around) is a little bit worrying.
    I would suggest
    make sure that you have a current backup
    run disk utility to check your disk
    if your disk is ok,
    put in your installation disk and do an optional installation of Mail
    download and run the latest combo upgrade

Maybe you are looking for