SQL Developer cannot execute multiple queries in one connection

Hi,
Using : SQL Developer 1.2.29.98, Oracle Database 9i on Windows XP.
Currently I have TOAD and PL/SQL Developer to handle things related to Oracle Database.
I found this SQL Developer tools as an interesting tool which might replace PL/SQL Developer (I assume).
I opened two SQL Worksheets and tried to execute 2 queries (time consuming one) simultanously, suddenly it freezes (the window become grayed). Just like TOAD, we cannot smoothly execute multiple queries on single connection on SQL Developer
I can monitor the query process using TOAD (Session Browser) and found both queries are running while SQL Developer window become grayed and seems not functioning. After the queries have been finished, I mean both of them, the SQL Developer window become normal and "alive" again showing the expected results.
Well, however PL/SQL Developer could handle this. Executing multiple queries in single application is just its unbeatable features.
We can view the query result once its finished instead of until the others being processed, by just only switch the SQL Windows.
Is it true that SQL Developer doesn't support executing multiple queries?
Or is it a feature which we should request?
Or we have to activate this feature by doing some changes on configuration / preferences?
(Do we need to open two SQL Developer instances? what a memory consuming solution).
Regards,
Buntoro

SQLDeveloper connections are single threaded and also rather single minded (in that you can't do much else while a long query is running.)
There is an existing feature request http://apex.oracle.com/pls/otn/f?p=42626:39:3685254426061901::NO::P39_ID:4202 for which you can vote.
The workaround is to have multiple connections. Not brilliant but it works.

Similar Messages

  • How to execute multiple queries in one stored procedure.

    Hi,
    I am Kumar,
    How to execute multiple queries in one stored procedure.
    here is the my requirements,
    1. get the max value from one table and sum of the that value.
    2. insert the values and also sum of the max value.
    using stored procedure
    I am using SQL server 2000 database.
    Please help me.
    Advance thanks
    by,
    Kumar

    This is not a java question and it is not even a problem: your only problem is
    1) lack of knowledge
    2) lack of interest to find a manual
    But you are going to have to change both by actually reading a book or a manual that explains the stored procedure language of SQL Server. It is the same as Sybase I think, so you could also look for a manual for that DBMS.

  • Multiple queries with 1 connection

    Can I execute multiple queries with one connection?
    //Example -
    <%
    String firstconn;
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    firstconn = "jdbc:mysql://localhost/profile?user=mark&password=mstringham";
    // pass database parameters to JDBC driver
    Connection aConn = DriverManager.getConnection(firstconn);
    // query statement
    Statement firstSQLStatement = aConn.createStatement();
    String firstquery = "UPDATE auth_users SET last_log='" + rightnow + "'WHERE name='" + username + "' ";
    // get result code
    int firstSQLStatus = firstSQLStatement.executeUpdate(firstquery);
    // close connection
    firstSQLStatement.close();
    %>     
    Now, instead of building a new connection for each query, can I use the same connection info for another query?
    if so - how do you do this?
    thanks for any help.
    Mark

    Create multiple statement objects from your connection. It's a good idea to close these in a finally block after you're done with them
    Connection conn = null;
    Statement stmt1 = null;
    Statement stmt2 = null;
    try {
        conn = DriverManager.getConnection();
        stmt1 = conn.createStatement();
        // some sql here
        stmt2 = conn.createStatement();
        // some more sql here
    } finally {
        if ( stmt1 != null ) stmt1.close();
        if ( stmt2 != null ) stmt2.close();

  • SQL Developer-Cannot Connect

    Hi, I have the same problem as the person who posted the question
    The history is i already have oracle 10g express edition installed on my system but with it I cannot create tables or execute DML or DDL commands so I downloaded SQL developer .
    When it came to the connection I wanted to fill in the Hostname , Port and SID in that order it gave me that same error "The network adapter could not establish connection ", and to fill in those spaces I used the link I saw when opening the Human Resources schema in the express edition(The schema came in the express edition and I used it to learn the SELECT statement). so i tried to use that address and it came in this format :- http://127.0.0.1:8080/apex/f?p=4500:1000:3171371893604961
    And since SQL told me to fill those parameters as Hostname:Port:SID I felt the use of the last 3 digits i.e 4500:1000:3171371893604961 would have worked but that is what is giving me the error.
    I would appreciate the help. Thank you

    This post has been branched off from and refers to
    SQL Developer-Cannot Connect
    @user 867945,
    Please do not resurrect long dead threads.
    It is poor forum etiquette.
    Post your own new inquiry so that anyone that responds is answering YOU.
    Feel free to provide a reference link to any discussion, anywhere, that may be somehow similar.

  • I've noticed that in the new version of Firefox that you cannot save multiple tabs at one time like the previous Firefox 3.6.or so and I wanted to know if I can find that feature again?

    I've noticed that in the new version of Firefox that you cannot save multiple tabs at one time like the previous Firefox 3.6.or so and I wanted to know if I can find that feature again?
    In the previous versions of Firefox when you went to you Bookmarks menu it gave you the options to either Bookmark This Page 'command' + 'D', Subscribe to this Page, Bookmark All Tabs 'up-arrow-key' + 'command' + 'D', and Organize Bookmarks 'up-arrow-key' + 'command' + 'B' however in the newest version of Firefox there is no Bookmark All Tabs so you can bookmark all the tabs that you have up in one window at a time. So I need to know if it is possible that the feature is now in a different place, is gone altogether, or if you can get that feature another way?
    For me personally and my work I go through hundreds of web pages a day and save around half of those so it is imperative that I be able to bookmark more then one tab at a time because I can't be bothered to bookmark every single page separately and then go through hundreds of tabs in my Unsorted bookmarks in order to sort those bookmarks. It is simple inconvenient to sort every bookmark individually that is why the previous version of Firefox with the Bookmark All Tabs button was superior in its convenience.

    Right click any tab and choose "Bookmark All Tabs".

  • Can we use multiple queries on one template

    Can we use multiple queries on one template

    Hi,
    if you're using data templates for your data set, you
    can put multiple queries in the XML data template.
    The queries may then be linked (or not) by the "link
    name" tag ...
    Grtz.Following you answer here...do you know eventually how/if possible to preview a report (with XMLP Desktop) that is using data templates for the data set?
    Thanks,
    Liviu

  • Moving multiple queries from one category to another in QM

    Hi All,
    Is there is any way of moving multiple queries from one category to another in the query manager?
    Or is the only way of doing it by saving each one individually into a different category.
    Any ideas ?
    Regards,
    Rakesh N

    Hi Rakesh,
    The query manager has limited function compare with normal file management applications. Under current design, you have to do this one by one. You just need to make sure move the smaller amount of queries to large category. Category name can be changed easily.
    Thanks,
    Gordon

  • Lightroom 5 slowdown, my post processing times have tripled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

  • Execute Multiple Queries on Screen Load: ADF Swings

    how can i execute multiple queries and populate each query value to corresponding combo box .assume i what to execute 5 different query and populate it into 5 different combo box.
    Prakash

    Hi,
    if you work with ADF then all iterators are accessible through the panelBinding object
    DCIteratorBinding dciter = (DCIteratorBinding) panelBinding.get("Iterator Name");
    dciter.execute();
    If you need to add query parameters like bind parameters then a call to the execute with params method (if available in the binding) could be perfomed as an OperationBinding
    OperatioNBinding oper= (OperatioNBinding ) panelBinding.get("ExecuteWithParams");
    oper.getParamMap().put("bind variable name", <value>);
    oper.execute();
    Frank

  • SQL Developer Blocked and is not allowed to connect to database ORA-200001

    SQL Developer Blocked and is not allowed to connect to database gives ORA-200001.
    i found on net that DBA can write triggers which can deny connection to database from certain appplication.
    so i want a way to change application name so that when it connects to database
    the V$SESSION will have different value (other than SQL Developer) in column PROGRAM and/or MODULE (which i think is used by dba to restrict the connection).
    one more way is
    i am using jdbc url to connect to database
    in java we can change properties of connection to change the PROGRAM in V$SESSION.
    but i am not java expert so dont know how and where to make the changes
    either way my aim is to connect to database such that V$SESSION will have different value (other than "SQL Developer") in column PROGRAM and/or MODULE

    This is not system configration or credential issue.
    This is a check which is put DBA using logon trigger
    to check certain user loging in using certain application.
    only some users using particular username are getting this error when they try to logon using oracle sql developer
    the same users when uses different username(some generic user names created to access database) to access the same database then they are able to login.
    similarly if they login using SQL navigator they are able to login with both their own and the generic user name
    more over of all the database instances this is only happening on some of the instances and all of them are development instances.
    following will help you understand
    USER | DBUSERNAME | DATABASE | APPLICATION | ACTION
    X | X | DB1 | Oracle Sql Developer | Blocked
    X | G(Genric) | DB1 | Oracle Sql Developer | Login Success
    X | X | DB1 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB1 | Sql Navigator/SqlPLus | Login Success
    X | X | DB2 | Oracle Sql Developer | Login Success
    X | G(Genric) | DB2 | Oracle Sql Developer | Login Success
    X | X | DB2 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB2 | Sql Navigator/SqlPLus | Login Success
    I just want to bypass this check which i think uses V$SESSION and columns PROGRAM and/or MODULE to check the application used by particular user.
    if i can override these values some where in oracle sql developer before loging in the DB then i can clearly pass this check and login to database.
    Edited by: user13430736 on Jun 21, 2011 4:05 AM
    Edited by: user13430736 on Jun 21, 2011 4:12 AM

  • SQL Developer and Oracle Database 10g Express Edition, Connection Problem

    I am using SQL Developer version 1.2.1 and am connecting to a 10g database on a windows xp.
    Up until today there have been no problems with the connection. When I tried to connect to the database and have not been able to.
    The error states that "...listener refused the connection with the following error: ORA-12505, TNS; listener does not currently know of SID given in connect descriptor..."
    Also tried to log into the database home page but page doesn't load...

    I'd bet the database is down.
    Try a login through sqlplus ("Run SQL Command Line" in the Oracle Express Edition 'Start' menu).
    Do a CONN / AS SYSDBA
    If you get a message about database or memory area not available, try STARTUP.
    If that doesn't work, you are best off in the General Database forum or the Express Edition forum.
    You'll probably get the most expert response in General Database, but the Express Edition forum can be gentler on newbies (as it is more accepted that questioners are not and do not have access to full-time DBAs).

  • Oracle SQL Developer Cannot Cancel Queries Properly

    This was a problem with version 2 and continues to be an issue with version 3. If I chose to cancel a query that is taking a long time to run it gives me the prompt and displays that the query was cancelled. However, the query is not actually cancelled and is still running in the background. The lock on the table still exists. How can I tell? Once a query is cancelled I attempt to exit the program and when I try to disconnect it says that the connection is busy. My only options are to try again or abort. First of all, these are terrible option names. How about changing these to try again or cancel, which is actually what abort does. Second, at this point there is no way to exit the application until the query completes in the background. I can kill the application through the Task Manager which in turn kills the query. This is a major problem and needs to be fixed before this application is useful.

    I also am having this same issue. I am running SQL Developer 2.1.1.64.45 (JDK 1.6.0_11), connecting to Oracle 9.2.0.4.0 via TNSNAMES.
    Seems to be similar to this thread: http://forums.oracle.com/forums/thread.jspa?messageID=9524997&#9524997
    In which it appears to be a genuine bug.. Since I develop large queries in SQL Developer before sending them through a SAS program via PROC SQL, I have no other way to test them. It is frustrating, when testing the large queries, to have to do CTRL-ALT-DEL to delete the SQL Developer task and therefore losing any other query tab changes I have made before running/canceling the task. Grrrr.. :)
    Thoughts? -Kristi

  • Sql job - multiple queries in one step

    Hello,
    In my SQL job, if I have 2 or more stored procedures in a Single step, will it be synchronous call to each SP or all SP will run parallel?
    Thanks,

    Hello,
    In my SQL job, if I have 2 or more stored procedures in a Single step, will it be synchronous call to each SP or all SP will run parallel?
    Thanks,
    It will execute the queries (sp calls) sequentially 
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Executing multiple queries stored in multiple rows

    Hi, 
    I have a question. I have a table that contains import scripts for my database. Below is the set up
    ID Table
    Date Script
    1 TableA
    NULL INSERT INTO [dbo].[TableA] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    2 TableB
    NULL INSERT INTO [dbo].[TableB] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    3 TableC
    NULL INSERT INTO [dbo].[TableC] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    4 TableD
    NULL INSERT INTO [dbo].[TableD] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    5 TableE
    5/28/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    6 TableE
    5/29/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    7 TableE
    5/30/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    8 TableE
    5/31/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    9 TableE
    6/3/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    10 TableE
    6/4/2013 INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    11 TableF
    NULL INSERT INTO [dbo].[TableF] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    12 TableF
    NULL INSERT INTO [dbo].[TableF] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    13 TableF
    NULL INSERT INTO [dbo].[TableF] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    14 TableF
    NULL INSERT INTO [dbo].[TableF] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'…
    I wrote 4 queries to execute the scripts for table A to D as following:
    DECLARE @A varchar(500)
    SET @A = (SELECT Script FROM TABLE WHERE [Table] = 'TABLE A')
    EXECUTE (@A)
    DECLARE @B varchar(500)
    SET @B = (SELECT Script FROM TABLE WHERE [Table] = 'TABLE B')
    EXECUTE (@B)
    DECLARE @C varchar(500)
    SET @C = (SELECT Script FROM TABLE WHERE [Table] = 'TABLE C')
    EXECUTE (@C)
    DECLARE @D varchar(500)
    SET @D = (SELECT Script FROM TABLE WHERE [Table] = 'TABLE D')
    EXECUTE (@D)
    Now I also wish to execute the script from Table E, but only for the Month of May so I decided to write this query
    DECLARE @E varchar(500)
    SET @E = (SELECT Script FROM TABLE WHERE [Table] = 'TABLE E' AND [Date] BETWEEN '2013-05-01' AND '2013-05-31)
    EXECUTE (@E)
    I guess this query can't execute because my statement selects more than one script. Now I have data going back to two years and I don't want to write close to 700 statements. Is there a way around it?
    Thank you very much in advance!
    Cheers

    I guess this query can't execute because my statement selects more than one script. Now I have data going back to two years and I don't want to write close to 700 statements. Is there a way around it?
    what do you mean by "my statement select more that one script" ?
    why do you want to exec all select statement separately ?
    you can combine select statement with UNION ALL,
    and do you want to specify the date range dynamically , first you specified may and two year is there related to data
    Well, if ever i would write 
    SELECT Script FROM TABLE WHERE [Table] = 'TABLE E' AND [Date] BETWEEN '2013-05-01' AND '2013-05-31'
    I would get this as an answer
    INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'… Script for 5/28/2013
    INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'… Script for 5/29/2013
    INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'… Script for 5/30/2013
    INSERT INTO [dbo].[TableE] SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0'… Script for 5/31/2013
    Now I want to dynamicaly be able to execute multiple scripts based on a where function. I could also write something saying
    WHERE [Table] = 'TABLE E' AND [Date] BETWEEN '2010-01-01' AND GETDATE()
    In any case, I would need it to first execute script for 5/28/2013, then script for 5/29/2013, etc..
    Thank you in advance,
    Cheers

  • Results of multiple queries in one report

    Hi
    I would like to create one report with multiple rows and each row should display result of a different query.
    I guess I can use multiple report on one region or multiple regions in one place.
    (1)However is there a more elegant way of creating a single report look and feel...eg like it would happen in excel.
    (2)Is it better to have one page with multiple regions or multiple reports in one region.
    Thanks
    Faizi

    I'm not sure if it suite your needs,
    but maybe you can use UNION in your queries to get them together in one report ??
    Second option:
    Denes did great work and he created some how-to about putting mulitple reports in one region:
    http://deneskubicek.blogspot.com/2007/06/multiple-reports-in-one-region.html
    Hope this helps.
    Tomasz K.

Maybe you are looking for

  • ITunes not opening completly!! need held ***help

    I'm new to ipods, i just recently bought a nano....but my iTunes will not open at all, it doesn't even come up in the task manager, ive uninstalled it and reinstalled it many times, and quicktime works fine...can someone please help me?? Message was

  • Studio 8 on pc, and mac?

    I have studio 8, and I have a pc. If I got a mac, is it possible to install studio 8 on a mac? The CDs say Win/Mac, or was it Mac/Win :), anyways. Thanks Nate

  • Itunes could not back up your iphone because an error occurred

    I am using an iPhone 4 running iOS 7.1.2 and am trying to back up the device onto a Window 7 pro (64bit) (4GB RAM, Core 2 Duo E6600 CPU) machine using iTunes 12.0.1.26 using the USB connection. iTunes and iOS are currently up to date. There are a few

  • JScrollPane does not work in JSplitPane

    Hi there, i have a problem with my JSplitPane. i have constructed a JScrollPane containing a JEditorPane. if i show this ScrollPane in a seperate window all works fine, but if i want to add it as the right part of the SplitPane nothing seems to happe

  • El imenssaje no me sirve no puedo enviar a ninguno de mis amigos con iphone

    no me funciona el imessaje ni el face time no puedo copntactarme con mis amigos que tienen iphone desde mi ipad