SQL Developer Locking up/Unable to Cancel long Running tasks

I have had the same problem with a number of versions of SQL Developer (and version 3.2.09). It occurs when trying to cancel a long-running PL-SQL Function or procedure that has been started by 'Run' in SQL Developer.
Select Terminate in Run Manager does not stop the job. Nor does trying to exit SQLDeveloper; it asks whether I want to kill the job; then doesn't kill it and doesn't exit either.
Trying to save modifications to anything the process depends on results in SQL Developer locking for ~20 minutes.
I have to resort to getting a DBA to manually kill the process at the server.
Is there any possiblity of a workaround or a way of making the PL/SQL not lock so it can be terminated please?
Thanks

I have had the same problem with a number of versions of SQL Developer (and version 3.2.09). It occurs when trying to cancel a long-running PL-SQL Function or procedure that has been started by 'Run' in SQL Developer.
Select Terminate in Run Manager does not stop the job. Nor does trying to exit SQLDeveloper; it asks whether I want to kill the job; then doesn't kill it and doesn't exit either.
Trying to save modifications to anything the process depends on results in SQL Developer locking for ~20 minutes.
I have to resort to getting a DBA to manually kill the process at the server.
Is there any possiblity of a workaround or a way of making the PL/SQL not lock so it can be terminated please?
Thanks

Similar Messages

  • Cancel long running statement in Oracle Lite (OLITE_10.3.0.3.0 olite40.jar)

    On JDBC statement, there is the method 'cancel' to instruct the database to cancel an executing statement. This works fine on Oracle server database, but not on Oracle lite database. The method call 'cancel' just blocks and the running statement is never interrupted.
    The example I tried is very simple. There is a thread started which executes a long running statement. I noticed, that when moving the cursor forward by calling rs.next(), it just blocks. That would be ok, if the statement could be canceled from within the main thread by stmt.cancel. But this call blocks as well with no implact on the running statement. Why is that? Do I miss something or is it not possible to cancel a long running statements in Oracle Lite?
    In the following my code snipped:
    public class CancelStatement {
         private static final String PATH_DB = "XX";
         private static final String PATH_LIB = "XX";
         private static final String CON_STRING = "jdbc:polite:whatever;DataDirectory=" + PATH_DB + ";Database=XX;IsolationLevel=Read Committed;Autocommit=Off;CursorType=Forward Only";
         private static final String USER = "XX";
         private static final String PASSWORD = "XX";
         public static void main(String args[]) throws Exception {
              System.setProperty("java.library.path", PATH_LIB);
              Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
              Connection con = DriverManager.getConnection(CON_STRING, USER, PASSWORD);
              Statement stmt = con.createStatement();
              Thread thread = new Thread(new LongStatementRunnable(con, stmt));
              thread.start();
              Thread.sleep(3000);
              // stop long running statement
              System.out.println("cancel long running statement");
              stmt.cancel(); // XXX does not work, as call is blocked until out of memory
              System.out.println("statement canceled");
         private static class LongStatementRunnable implements Runnable {
              private Connection con;
              private Statement stmt;
              public LongStatementRunnable(Connection con, Statement stmt) {
                   this.con = con;
                   this.stmt = stmt;
              @Override
              public void run() {
                   try {
                        System.out.println("start long running statement...");
                        // execute long running statement
                        ResultSet rs = stmt.executeQuery("SELECT * FROM PERSON P1, PERSON P2");
                        while (rs.next()) { // here the execution gets blocked
                             System.out.println("row"); // is never entered
                        rs.close();
                        stmt.close();
                        con.close();
                        System.out.println("long running statement finished...");
                   } catch (Exception e) {
                        e.printStackTrace();
    }I would be very glad if you could help me.
    Thanks a lot
    Daniel
    Edited by: 861793 on 26.05.2011 14:29

    Unfortunately Oracle Lite doesn't have this option. You can call your statement from a second thread as you have done, but you won't be able to kill or cancel this operation. The only way to get fix this is by rebooting. You can use process explorer to find the dll process that is executing the SQL, but the tables will be locked and sync would be locked as well until the process is finished running in shared memory.

  • Long Running Task ...

    I have a requirement where a user kicks off a long running task ( usually 2
    to 5 minutes). I want to show a 'In Progress' message while the task is
    procesing. The long running process needs to be passed an ArrayList. To
    achieve this , I use a ServerSessionPool and a QueueListener.
    In the servlet I assign a unique ID to the task , send a JMS message ( with
    the serialized ArrayList) on the queue. The servlet returns to the
    user saying 'In progress' message . When the user hits refresh , I want to
    know if the message has been consumed ( or the process is over ) and
    I need get the 'processed' ArrayList back in the servlet. How do I achieve
    this ?
    Thanks in advance
    ~ J

    instead of asking the user to hit refresh, you can have the browser
    automatically refresh the page every X seconds by putting in a header
    parameter.
    I forgot the actual parameter, but this is pure HTML so look it up in that
    spec
    Filip
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]..
    http://dima.dhs.org/misc/LongRunningTask.jsp
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/registration.jsp >>
    "John Doe" <[email protected]> wrote in message
    news:[email protected]..
    I have a requirement where a user kicks off a long running task
    usually
    2
    to 5 minutes). I want to show a 'In Progress' message while the task is
    procesing. The long running process needs to be passed an ArrayList. To
    achieve this , I use a ServerSessionPool and a QueueListener.
    In the servlet I assign a unique ID to the task , send a JMS message (with
    the serialized ArrayList) on the queue. The servlet returns to the
    user saying 'In progress' message . When the user hits refresh , I want
    to
    know if the message has been consumed ( or the process is over ) and
    I need get the 'processed' ArrayList back in the servlet. How do Iachieve
    this ?
    Thanks in advance
    ~ J

  • Long running task - what do you show?

    There are a lot of discussions about long running tasks. But what do you show in the GUI while these tasks are running? The obvious choice is the standard hour-glass cursor, or a JProgressBar. I'm sure though that there must be other creative alternatives, like a Java2D animation for example.
    Would people like to share what they show during long running tasks?

    I have both Fusion and Parallels on all my machines.  For Windows7, I have found that
    the most recent version of Parallels is much faster and efficient than Fusion.  With
    XP, either one seems just fine.  Also, if Linux is a future consideration, Fusion seems
    to be the better bet.  Parallels has some USB issues when running Linux.
    I have tried Virtual Box, but for my uses, hardware and firmware engineering, it has
    been problematic.
    Since you mentioned Autocad, I would not recommend VirtualBox.  Either of Fusion
    or Parallels should serve you well.  However, graphics performance does seem a
    bit snappier with Parallels than with Fusion.

  • SQL Developer "Locks-Up" when Expanding Synonym Folder

    It appears that every time I try and expand the Synonyms folder for a database user with many synonyms (hundreds?) SQL Developer hangs. If I try and stop the loading synonyms by cancelling the task (View Task Progress -> Cancel), the "Loading" process continues, the database connection is locked, and I can't close SQL Developer (short of killing the application via Task Manager). To re-create the issue, try connecting to an eBusiness Suite database as APPS and expand the Synonyms folder. Is this a know issue, it seems like an obvious bug?

    Hi,
    You are correct, this is an obvious bug -- at least for connections to a remote database. I logged an internal bug for this:
    Bug 12842181 - CANCEL ON PUBLIC SYNONYMS QUERY FOR REMOTE DB CAUSES HANG
    A similar old bug is:
    Bug 6618400 - CANCEL ON PUBLIC SYNONYMS QUERY HAS NO EFFECT.
    Perhaps the reason this bad behavior hasn't gotten more attention is the existence of the 'Apply Filter...' feature available in the context menu for all object nodes. Filtering has progressed far beyond the state commented about in this old forum post:
    Synonym filter
    Regards,
    Gary Graham
    SQL Developer Team

  • SQL Developer 3.2 : Unable to browse java source in the db

    Hi:
    I noticed a regression in SQL Developer 3.2 in respect to 3.1 (on windows).
    as of SQL Developer 3.1.7.7.42 I was able to browse java sources stored and compiled in the database.
    The tabs "Details", "Source", "Policies" were correctly populated. If I had to complain about something, the names of the classes were "shortened" so that I saw "c932e55e_PrintDebug" instead of "my/company/application/package/PrintDebug".
    I have tested the 3.2 release.
    Now, the class names are complete, but the tabs are empty. I am also unable to retrieve the source of a class (as it was possible in 3.1)
    Does this happen to other people?
    Thanks,
    Andrea

    Thanks for the feedback, it is good to know I am not alone :-)
    I did some further tests.
    I enabled logging in sqldeveloper.conf, and found this query I believe to be the culprit:
    Prepared:with src_name as (select source n from Dba_java_classes
    where lower(name)=lower(:NAME) and rownum = 1)
    select text||decode(substr(text,length(text)),chr(10),null,chr(13),null,chr(10)) source
    from Dba_source
    where owner= :OWNER
    and type = 'JAVA SOURCE'
    and (name in (select n from src_name) or name in (select owner || '/' || n from src_name)
    or lower(name) = lower(:NAME))
    order by line
    Previously :NAME was populated with the java short name, while now it has the java long name.
    In fact, if I compile a class where short name and long name are the same, it works.
    In DBA_JAVA_CLASSES name is the long name, while in DBA_SOURCE it is the short name (at least this is what I observed).
    So I believe that this is truly a regression.
    Anyone (from dev) can confirm this?
    Thanks,
    Andrea

  • SQL Developer locks after splash screen

    I have succesfully installed SQL Developer on 2 machines in our group and it works fine. However on the machine where we really need it (mine) it absolutely refuses to work.
    It appears to start up, the splash screen appears and the sqldeveloper.exe appears in the machine's task list but thats it! The splash screen stays on the screen until I click on it and then disappears.
    I have tried the version with the built in SDK and I have also downloded the SDK from Sun and tried the version without the accompanying SDK. I have also de-installed all the Java SDK and runtime versions on the machine and re-installed those that were needed. Same result.
    At this stage I called in our Java development guru who twiddled and tweaked during 30 minutes...same result.
    If I execute sqldeveloper.exe from within the jdev\bin folder I see the following in a DOS box:
    java.lang.NullPointerException
    at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:11
    at javax.swing.UIDefaults.getUI(UIDefaults.java:721)
    at javax.swing.UIManager.getUI(UIManager.java:860)
    at javax.swing.JPanel.updateUI(JPanel.java:104)
    at javax.swing.JPanel.<init>(JPanel.java:64)
    at javax.swing.JPanel.<init>(JPanel.java:87)
    at javax.swing.JPanel.<init>(JPanel.java:95)
    at javax.swing.JRootPane.createGlassPane(JRootPane.java:482)
    at javax.swing.JRootPane.<init>(JRootPane.java:313)
    at javax.swing.JFrame.createRootPane(JFrame.java:247)
    at javax.swing.JFrame.frameInit(JFrame.java:228)
    at javax.swing.JFrame.<init>(JFrame.java:195)
    at oracle.ide.IdeCore$StartupWindow.<init>(IdeCore.java:1458)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1084)
    at oracle.ide.Ide.startup(Ide.java:672)
    at oracle.ideimpl.Main.start(Main.java:49)
    at oracle.ideimpl.Main.main(Main.java:25)
    but I don't know if this is really relevant as that is not the normal start path.
    The machine/OS spec is as follows:
    OS Name     Microsoft Windows XP Professional
    Version     5.1.2600 Service Pack 1 Build 2600
    OS Manufacturer     Microsoft Corporation
    System Name     XP224
    System Manufacturer     Hewlett-Packard
    System Model     HP Compaq dc7100 CMT(PC928A)
    System Type     X86-based PC
    Processor     x86 Family 15 Model 3 Stepping 4 GenuineIntel ~2992 Mhz
    Processor     x86 Family 15 Model 3 Stepping 4 GenuineIntel ~2992 Mhz
    BIOS Version/Date     Hewlett-Packard 786C1 v01.05, 16/06/2004
    SMBIOS Version     2.3
    Windows Directory     C:\WINDOWS
    System Directory     C:\WINDOWS\System32
    Boot Device     \Device\HarddiskVolume1
    Locale     United Kingdom
    Hardware Abstraction Layer     Version = "5.1.2600.1106 (xpsp1.020828-1920)"
    Time Zone     Romance Daylight Time
    Total Physical Memory     512.50 MB
    I would be very grateful for any suggestions anyone may have as to the nature of this problem.
    Thanks
    Paul BJ

    See post:
    java.lang.NullPointerException
    Regards,
    Eric

  • SQL Developer 1.5 - Unable to Dock Help Window

    I'm running SQL Developer 1.5 on Windows 2000. In the previous version of SQL Developer, I was able to dock the Help window. In the current version, this does not appear to work. Is anyone else having this issue? Any suggestions?

    Yes this is a known issue and a bug was already logged for this (6975741). The Help window is currently delinked from SQL Dev application which makes it undockable.
    - Rakesh

  • In forms how to cancel long running process or query in 10g

    We have application which is hosted on 10g AS. Some forms has lot of processing to be done and sometimes user wants to cancel the processing in between maybe because he wants to change some value and refire processing.
    Based on the search on net 'Esc' key was used in earlier version of forms to function as User requested Cancel operation. How can same be done in 10g. Do we have to do anything in fmrweb.res for this. Is there some setting to be done in forms or in AS for this functionality.
    Does this matter on whether JInitiator is used or JPI is used for running the application?
    Edited by: suresh_mathew on May 21, 2013 1:36 AM

    Hi,
    Exit can be used to cancel query mode i.e. in case you go into query mode by Exit you can cancel query mode. Suppose you went into query mode and you have fired query which will take some time to fetch how can I abort it.
    In earlier version of form there was 'Cancel' facility wherein if triggered it used to fire an error message 'Ora--01013 user requested cancel of current operation"
    With this facility you can abort any query which is executing or any long running process which forms is currently performing.
    fmrweb.res would have entry like
    27 : 0 : "Esc" : 1001 : "Cancel"
    The above entry I picked from OPN
    Java Function Numbers And Key Mappings For Forms Deployed Over Web [ID 66534.1]
    Unfortunately this is not working for us even if I put this in frmweb.res of 10g AS
    Basically I want ability to Abort/Cancel a long running process be it query execution or standard process triggered in the form.
    Any advise or help is highly appreciated.
    Suresh

  • Sql developer 3.0 executable does nothing when running

    I just downloaded SQL Developer 3.0 and extracted it to an empty folder. After extracting I have tried to open/run the sqldeveloper.exe and nothing happens. I have tried downloading the program again and extracting the files a couple more times and get the same results. What do I need to do to get the executable to work?
    My system I have downloaded it to and trying to run it on is Microsoft Windows XP Professional Version 2002 Service Pack 3.
    Ron Bich
    P.S. if Sue Harper is reading this, just want to let you know that I missed you at Training Days this year! It has been nice having you attend the last couple of years....

    India eh! From the sounds of it for a vacation and I am sure it was one well deserved. Hope you got a chance to work on your meditation, I hear they have some of the best masters to work with progressing on your journey to enlightenment with the known universe. I started meditating using Tantric practices with Chakra humming a little over a year ago which provides me with a fresh start and a relaxing finish to my days!
    Got this issue fixed, figured it was something simple to fix. I look forward to seeing you again when your in town Sue!

  • Sql developer could not fetch any data while running queries?

    I have  downloaded  SQL Developer , install jdk1.5.0_22  from the website. Then I run sqldeveloper.exe browse the jdk folder. After that i established the connection but it continuously showing loading..No tables No procedures are loaded . what should i do?

    Be careful... SQL Developer requires a JDK or the server JRE (which I believe only comes in 64-bit, so go with the JDK if you are on a 32-bit OS).
    Prior to 4.0, the SetJavaHome line in your install directory's sqldeveloper.conf (or sqldeveloper-Darwin.conf on the Mac) must be set, but in 4.0 and above that changes to product.conf under your OS's user settings.  For Windows 7, that would be in...
    C:\Users\<your-userid>\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf
    Hope this helps.  If not, assuming Windows, run sqldeveloper.exe in the bin directory from a command line console so you can see any standard error output in the console, or do a Ctrl-Break to get a full thread dump of what's happening in the JVM.

  • SQL Developer Bug: NVL() function error when debug/run stored procedure

    Version:
    SQL Developer: 1.5.3 (build main-5783)
    Oracle DB connected: Oracle9i Enterprise Edition Release 9.2.0.6.0
    Stored procedure code like this:
    procedure search(V_STATUS_IN IN CHAR(1)) is
    begin
    declare
    V_STATUS CHAR(1) := NULL;
    begin
    V_STATUS := NVL(V_STATUS_IN, '%'); -- error line
    end;
    end;
    The stored procedure runs well (I mean no oracle exception) when called through Java code (and in TOAD). But when debug/run in SQL Developer, following error at the error line:
    $Oracle.EXCEPTION_ORA_6502:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    --------------------------------------------------*/

    What parameter are you passing in? It is possible you are trying to cram a multibyte character into a singlebyte container. What are the nls settings for the database and for sqldeveloper?

  • How can i cancel long running queries (red x doesnt work)

    hi there
    i am trying to work with some long running queries - it would be very nice to be able to cancel them (like toads cancel button)
    I have tried the red X in the circle but it doesnt seem to work - it appears to have cancelled it (the cylon-eye style comfort bar stops ocillating) but if i try to use the connection again, or disconnect or open another connection it says:
    "connection currently busy. Try again?"
    i have tried this in the latest release vanilla & the latest release plus patch 2
    thanks
    Martin

    Good news that this will be improved. Can't resist to post this Link: [plsql forum thread about start/stop.. | http://forums.oracle.com/forums/thread.jspa?forumID=75&threadID=927697]
    I have experienced the same and also noted that it feels better to execute stored procedures in sqldeveloper
    - by editing
    - compiling (might hang if already busy)
    - run from the same dialog just to get the the cylon's eye for emergency stops (which waits .... ) meanwhile jump to apex to fiddle with small table triggering exception to stop the procedure.
    If stored procedure is executed from the list via 'right mouse click'-style then you see in the log-region "connecting to databse ... ." but no method to stop nor cancel or cylon's eye is well hidden.
    When such "busy" is running I also noted that the database-connection right mouse click has greyed/inactivated the selections "connect/disconnect" so the next logical step for stopping via "disconnect" is out of the question.
    I think this also boils down also to question whether the user has rights to see gv$session and be able to drop/stop busy/jamming sessions. E.g. public synonyms listing has small icons with mystic red :)
    /paavo
    Java(TM) Platform     1.6.0_14
    Oracle IDE     1.5.4.59.40

  • Cancel long running queries

    Hi Folks,
    Is it possible to submit a SELECT statment using OraSqlStmt object and retrieve the data so generated?
    I want to submit a long-running SELECT query against Oracle, and have the option to cancel the query.
    I can submit the query asynchronously NONBLK option of OraSqlStmt and then be able to cancel it. However, I also want to display the dataset returned by the query. But I think it is not possible to create a dataset / recordset or dynaset using OraSqlStmt.
    THe question is:
    How can I submit a long running Select query, be able to cancel it and if the query is not cancelled then be able to display the records in a grid? I am using VB6.
    Thanks

    Good news that this will be improved. Can't resist to post this Link: [plsql forum thread about start/stop.. | http://forums.oracle.com/forums/thread.jspa?forumID=75&threadID=927697]
    I have experienced the same and also noted that it feels better to execute stored procedures in sqldeveloper
    - by editing
    - compiling (might hang if already busy)
    - run from the same dialog just to get the the cylon's eye for emergency stops (which waits .... ) meanwhile jump to apex to fiddle with small table triggering exception to stop the procedure.
    If stored procedure is executed from the list via 'right mouse click'-style then you see in the log-region "connecting to databse ... ." but no method to stop nor cancel or cylon's eye is well hidden.
    When such "busy" is running I also noted that the database-connection right mouse click has greyed/inactivated the selections "connect/disconnect" so the next logical step for stopping via "disconnect" is out of the question.
    I think this also boils down also to question whether the user has rights to see gv$session and be able to drop/stop busy/jamming sessions. E.g. public synonyms listing has small icons with mystic red :)
    /paavo
    Java(TM) Platform     1.6.0_14
    Oracle IDE     1.5.4.59.40

  • How to Cancel Long Running Report

    Hello
    I'm looking for a way to cancel the printing of a long running report programatically? I'm using the CrystalDecisions.CrystalReports.Engine.ReportDocument() class.
    Thanks for your help

    Hi Syed,
    The old viewer was COM based and the new viewer is .NET. CR has the ability if the DB server supports Async communication. Most DB's don't so it wasn't of much use. For those that did the functionality was through custom coding within the Designer only. Async would allow CR to send a stop processing command to the DB server. If the server did not have the ability then CR can only wait for the data to start coming back before stopping the viewer from updating.
    In any event I don't believe the Windows Viewer in .NET has the ability but I will suggest it to the Product group to add the ability in some future version.
    Thank you
    Don

Maybe you are looking for

  • SRM Catalog

    Hi experts, I want to create a catalog in SRM without using mdm. I am new user and I have not able to find out how can i create a catalog. Please can you guide me which t-code i have to use or where it is placed in IMG? Best Regards

  • Music "Stuttering" with v7

    Ever since I installed v7 I occasionally get what I will call random "stuttering" or skipping during playback. Stopping and restarting playback seems to help at least for awhile. It is related to iTunes on my PC and not my iPod because the problem do

  • Looking at MacBook Pro - glossy?

    What's the advantage of the glossy screen over the standard? It's no cost difference, just wondering what people think

  • Trouble with ipod touch and apple universal dock

    hi, i've a problem connecting my ipod touch to the apple universal dock. it has always worked great until now when connecting my ipod touch to the apple universal dock and connecting speakers to the line out. it happens that the volume control appear

  • What type of SIM for IPhone 5?

    What type of SIM does the IPhone 5 have? I want to change carriers but they ask if its a micro or a regular SIM??