Save layout of queries in SQL Developer query builder?

Sometimes queries are very complex and moving tables around in the graphical view is really helpfull to better understand them.
Unfortunately this layout does not get saved with "save" (because this is a simple text file).
Once upon there was a query builder (included with designer 2000 and later vom 1991 to 1998) that had a proprietary format (.brw) to just do that: Save a query including layout.
Any chance to save the layout of SQL Developer query builder queries?

I dont think there is any way to save the layout for the query, you can request an enhancement on the Exchange for this http://sqldeveloper.oracle.com/
But if you only need to restore the query you are working with later, or move it to another workstation and continue editing using the query builder, you only need the SQL code generated; when you paste it in an opened worksheet (on the same database or even a clone with the same structure) the query builder is able to resume working just fine with default positioning for the table objects.
If you hand edit the query and insert some SQL manually then the query builder may stop working for particularly complex statements, in this case it will warn you and disable itself.

Similar Messages

  • Sql developer query window corrupting on scroll

    Hi there
    I have a weird error - when I scroll in my SQL developer query window (tab) the text corrupts and only comes back if I click in the window somewhere or save. Has anyone else seen this? I'm on version 1.5.5 and don't really want to upgrade to the latest as I don't like the new layout (no dbmsoutput etc in the results window)
    Cheers, Kate

    sorted it by adding a line AddVMOption -Dsun.java2d.noddraw=true to the sqldeveloper.conf file, as per thread SQL Editor not refreshing after scroll on Windows Vista

  • Re: Probelems running queries in SQL Developer

    I used to be able to run queries in SQL developer without any problems but now I get the followin message whenever I try to run a query
    "Could not initialize class oracle.sql.CHAR"
    p.s. I also get this: "oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;"
    Edited by: user564155 on Jul 26, 2010 1:49 PM

    Might be corrupt settings; backup/delete the SQL Developer/systemXXX directory in the hidden Application Data under your Windows profile to reset your installation to defaults.
    Else, if you run from \sqldeveloper\bin\sqldeveloper.exe, what output do you get in the opened console when starting up and querying? This could help diagnosing the problem.
    Hope that helps,
    K.

  • I wnat to develop Query Builder

    Hi Dear All
    my requirement is to develop query builder because of genearting dynamic sql statement at run time. i'm using 9iDS and query builder is not provided with it as separate application. is there anyon who can help me how it should be get started. i'll be very thankful to u
    Best Regards!!!

    Query Builder was desupported as a product as part of the developer suite.
    see http://www.oracle.com/technology/products/forms/pdf/forms_upgrade_reference.pdf
    Regards
    Grant Ronald
    Forms product Management

  • Save dataset as .xls in SQL Developer 3.2.2 on MACPRO

    Hi Folks,
    I have a question here related to MAC SQL Developer 3.2.2, I need to save a dataset output from a query as .xls and am not able to see the option to save as .xls? and when I enforce to save it as .xls. also, I have no issue when I save as .txt. if I copy from txt to excel sheet then data of some columns will be moved left or right so I won't have an accurate data when I paste in excel. any idea why?
    Thanks
    Mohammed

    Hi Mohammed,
    I need to save a dataset output from a query as .xlsPlease clarify. Do you mean to say the query is run from the worksheet using Run Statement (Ctrl+Enter), but when you right-click inside the Query Result grid and select Export from the context menu that you cannot select xls from the Format drop-down list on page 1 of the Export Wizard ?
    Hope this helps ... it should be there.
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Apr 12, 2013 10:52 AM
    Correction: page 1, not page 2, of the Export Wizard.

  • Declare, Set, and Use a variable in a SQL Developer Query

    I come from the SQL Server world and am trying to do something very simple: Declare, set, and use a variable in a query. For example:
    Declare @lastPeriod date;
    Set @lastPeriod = (select max(payperiod) from table 1 where payperiod < current_date);
    Select field 1,
    Field2
    From table2
    Where payperiod = @lastPeriod
    The variable is going to be used in more areas in the query which is why I am simply not using a Sub-query in the where clause. I appreciate any assistance.

    This forum is for issues with the SQL Developer tool. You'd get more response in the SQL And PL/SQL forum.
    That said, read up on bind variables and substitution variables.
    Whenever you can you should use Bind variables (e.g. *:lastPeriod* ), as they increase performance. In sqldev, there's no need to declare as you will be prompted to enter them on execution (F9), but you do if you execute as script (F5) (e.g. VARIABLE lastPeriod VARCHAR2(30);).
    Alternatively, Substitution variables (e.g. *&lastPeriod* ) will literally be substituted in your statement before the database parses it. In sqldev, there's no need to declare as you will be prompted to enter them on execution (either F9 or F5), but you can (DEF lastPeriod='TEST'; ).
    Have fun,
    K.

  • SQL*Developer 'Query Results' Not Displaying

    I have just recently installed SQL*Developer v3.2.2 and after I run a SQL query the tab 'Query Result' tab is not displayed. I have tried to show this tab and to use the arrow keys at the bottom of the screen to display this screen but I cannot view the query results. I have used v1.5.1 in the past and know that it should display when after running a query and can be resized if required but I cannot seem to show it is v3.2.2

    Hi,
    Yes, I did install to a clean directory. I have even deleted all contents of the directory and re downloaded
    the software again to the same directory but this did not work either it still remembered the original settings.Keep in mind there are two locations that an installation updates:
    1. The SQL Developer installation directory (which you deleted).
    2. The User-Related Information (in your "user home" directory), which is updated by the settings migration
    Perhaps Jim meant you should also remove the user settings for the last SQL Developer version installed and possibly even avoid migrating the old 1.5.x settings when you first start SQL Developer after that. See the following forum thread, probably unrelated to your situation, but containing where to find the location of user-related information in the Help:
    Re: IDE issue - Query Result grid is not selectable or scrollable
    Hope this helps,
    Gary
    SQL Developer Team

  • Running existing queries in sql developer-new user

    I am trying to execute some of my existing queries I created in TOAD but when I open my current existing files it does not give me the option to execute them. How can I get my existing files to execute so that I can get a data return?

    See:
    Re: Nice App

  • 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

  • Query Builder within SQL Developer 2.1 versus Query Builder Version 6.0.7.1

    Dear all,
    dear Sue Harper,
    we use Oracle 10g (upgrade to 11g is planed) and used the Oracle Query Builder Version 6.0.7.1 by now unless we got to know about the SQL Developer 2.1 including the Query Builder a few weeks ago to produce our SQL statements an efficient way.
    Even tho the SQL Developer 2.1 Query Builder already has some nice features, like sorting the data fields ascending, export to excel, etc, that the Oracle Query Builder Version 6.0.7.1 did not have had, we miss some essential features, like the in-statement, define column, etc while on the other side tables are not included in SQL-code unless fields are selected or i.e. date fields cannot be queried in the where conditions.
    I read the release notes and know that the SQL Developer 2.1 Query Builder is scheduled for rewrite in the next release.
    Does it make any sense to summarized all things we noticed and get in touch with whomever it may concern?
    Btw, if it would be possible to define a location for the stored connections within the SQL Developer 2.1 it would be very helpful... When starting SQL Developer 2.1 in our Windows Vista network environment it never finds the connection settings (file) automatically and we have to re-import the connections from a pre-defined directory.
    Nevertheless, the SQL Developer 2.1 is a pretty user-friendly and most times reliable tool we are thankful for.
    Kind regards,
    Stefan Wagner
    [email protected]

    @user12092220
    Yep, I saw your post; sorry for not replying, but i thought it's pretty the same problem i have. ;)
    The missing possibility to query date-fields in the where clause is really one of a many things i miss in the SQL Dev Query Builder, i am sure you use an "in" statement as well as we do. I think going back to the manual creation of the where condition like we had in Version 6.0.7.1.0 should be okay with most users, at least additional to the current solution as long as the rest of the query can be built within the graphic user interface. Further to save and open a query in gui mode is really, really important for us. Not to mention that the boxes for the tables cannot be stretched over a certain extend and i cant separate the columns any longer :/
    Other than that, SQL Developer is a pretty nice tool in my eyes, it's free and hopefully Version 3.0 will be closer to what we would like the SQL Developer to be like.
    Stefan

  • New query for 'Manage Database' option in SQL Developer

    Dear all,
    I want to suggest a changed query for the 'Manage Database' option in SQL Developer (right-click on the connection), see the query below.
    This query has the following changes;
    - extra column with the Maximum disk space based on the datafiles (considering autoextend of datafiles); MAX_DATAFILES
    - the PERCENT_USED and PCT_USED are based on the MAX_DATAFILES, as this is really important (and not the difference between ALLOCATED and USED)
    - the results are shown in GB, as that is in my opinion more relevant in this time of data explosion
    - rename of the column FREE to UNUSED_ALLOCATED, as this column identifies how much of the Allocated space is not used
    I hope the query can replace the current one, to improve SQL Developer even more.
    Thanks for the nice tool SQL Developer!
    Kind regards,
    Siebe
    -- Manage Database - Changed Oracle SQL Developer query with regard to Usage of Tablespaces in GB (considering autoextend of datafiles)
    SELECT "TABLESPACE_NAME", "PERCENT_USED", "PCT_USED", "MAX_DATAFILES", "ALLOCATED", "USED", "UNUSED_ALLOCATED", "DATAFILES" FROM(
    select * from (
    SELECT a.tablespace_name,
    --'SQLDEV:GAUGE:0:100:0:0:'||nvl(ROUND(((c.bytes-nvl(b.bytes,0))/c.bytes)*100,2),0) percent_used,
    --ROUND(((c.bytes-nvl(b.bytes,0))/c.bytes)*100,2) PCT_USED,
    'SQLDEV:GAUGE:0:100:0:0:'||nvl(ROUND(((c.bytes-nvl(b.bytes,0))/c.maxbytes)*100,2),0) percent_used,
    ROUND(((c.bytes-nvl(b.bytes,0))/c.maxbytes)*100,2) PCT_USED,
    round(c.bytes/1024/1024/1024,2) allocated,
    round(c.bytes/1024/1024/1024-nvl(b.bytes,0)/1024/1024/1024,2) used,
    round(c.maxbytes/1024/1024/1024,2) max_datafiles,
    round(nvl(b.bytes,0)/1024/1024/1024,2) unused_allocated,
    c.datafiles
    FROM dba_tablespaces a,
    ( SELECT tablespace_name, SUM(bytes) bytes FROM dba_free_space GROUP BY tablespace_name ) b,
    ( select count(1) datafiles, SUM(bytes) bytes, SUM(DECODE(autoextensible, 'YES', maxbytes, bytes)) maxbytes, tablespace_name from dba_data_files GROUP BY tablespace_name ) c
    --( select count(1) datafiles, SUM(bytes) bytes, SUM(c.maxbytes) maxbytes, tablespace_name from dba_data_files GROUP BY tablespace_name ) c
    WHERE b.tablespace_name (+) = a.tablespace_name
    AND c.tablespace_name (+) = a.tablespace_name
    ORDER BY nvl(((c.bytes-nvl(b.bytes,0))/c.maxbytes),0) DESC
    ) --sub1 order by 1 asc
    )

    Very little technical information provided about the error.
    "+IO error.+" - this likely refers to the client attempting to use a socket handle and the call to the handle failing.
    +"The network adapter could not establish the connection.+" - this likely means that the IP address to connect to, could not be reached, or that the connection was not accepted on that port on the remote IP address. (typically hostname resolution errors would give a different error)
    The easiest way to test connectivity is using the ping command to bounce an ICMP echo off the remote IP.
    If that works, test access to remote port on that remote IP using the telnet command - this will check whether there is a service accepting connections on that port, and whether access to that port is allowed in case of firewalls en-route.

  • SQL Developer 1.2 A Memory Hog

    Anybody else seen SQL Developer 1.2 (1.2.0.2998) use GIANT amounts of memory?
    Query Analyzer for SQL Server did most of what I want (on a SQL platform, of course) SQL Developer to do (on Oracle, of course) with 1/10th of the memory.
    Right now for me SQL Developer is using 336,928 KB (that's 340 MB!!!) of memory, with a peak memory usage of about 380MB. I'm running on Windows XP SP2.
    I've turned off Completion Insight after reading various comments on the web, which helped a bit, but 330MB is still huge.
    Thanks,
    Josh

    Hi,
    SQL Developer is build on Java.
    Since it is build on Java, we can use this tool on any platforms (Windows, Linux, Solaris, and even Macintosh as long there is Java Virtual Machine available).
    That is the superiority of Java application.
    However, Java based application is usually a memory consumable application which they said to have a garbage collector for the memory de-allocationing,.but it still consumes lots of memories though.
    For the time being, I try to close the SQL Developer once it consumes huge memories and start it again.
    It helps for releasing such amount of memories.
    Regards,
    Buntoro

  • SQL Developer 2.1: Poor performance on 11g

    We are experiencing poor response times for queries using sql developer 2.1 with our new 11g upgraded database (11.1.0.7). A bit of investigation has shown that a simple
    select 1 from dual;
    causes
    SELECT table_owner, table_name
    FROM all_synonyms
    WHERE owner IN (USER, 'PUBLIC') AND synonym_name = :1
    Has anybody else seen this?
    It is not happening with other IDEs.

    Have found out that if the data dictinary inquries drop the the SYS qualifier then we can implement the dolution on metalink. Any chance that this alteration can be implemented? At the moment we cannot use the tool as it is causes too many issues.
    Colin

  • SQL Developer 4 12.84 Burns CPU

    I've just installed SQL Developer 4 build 12.84. After running a few queries I notice the sql developer is using > 50% of the available CPU constantly forseveral hours, despite not obviously running any queries.
    Here's the output of jstack:
    jstack 6540
    2013-10-21 14:24:16
    Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.0-b56 mixed mode):
    "Worker-278" prio=6 tid=0x000000000c361000 nid=0x23a4 in Object.wait() [0x000000000f2ae000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
            - locked <0x00000000d092b180> (a org.eclipse.core.internal.jobs.WorkerPool)
            at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)
    "Worker-277" prio=6 tid=0x000000000c35c000 nid=0x1f7c in Object.wait() [0x000000000f98e000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
            - locked <0x00000000d092b180> (a org.eclipse.core.internal.jobs.WorkerPool)
            at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)
    "org.eclipse.jface.text.reconciler.MonoReconciler" daemon prio=2 tid=0x000000000bfef800 nid=0x222c in Object.wait() [0x0000000012c0f
    000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)
            - locked <0x00000000d7a46b70> (a org.eclipse.jface.text.reconciler.DirtyRegionQueue)
    "[ThreadPool Manager] - Idle Thread" daemon prio=6 tid=0x000000000e87c000 nid=0x21d0 in Object.wait() [0x000000001284f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:106)
            - locked <0x00000000d71aa9a0> (a org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor)
    "Reporting Thread-1 (Spring UAA/1.0.3)" daemon prio=6 tid=0x000000000e87d800 nid=0x11b0 waiting on condition [0x00000000126de000]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x00000000d2bc1e88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
            at java.util.concurrent.locks.LockSupport.park(Unknown Source)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
            at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    "Provisioning Event Dispatcher" daemon prio=6 tid=0x000000000e880800 nid=0x1d18 in Object.wait() [0x00000000125af000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d4b92180> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
            - locked <0x00000000d4b92180> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
    "MultiThreadedHttpConnectionManager cleanup" daemon prio=6 tid=0x000000000e881800 nid=0x1ee8 in Object.wait() [0x0000000011f3f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d54b3278> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(Unknown Source)
            - locked <0x00000000d54b3278> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(Unknown Source)
            at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run(MultiThreadedHttpConnectionMana
    ger.java:1122)
    "Event Batch Processing (Spring UAA/1.0.3)" daemon prio=6 tid=0x000000000e880000 nid=0x1f14 waiting on condition [0x000000001237f000
       java.lang.Thread.State: TIMED_WAITING (sleeping)
            at java.lang.Thread.sleep(Native Method)
            at org.springframework.ide.eclipse.internal.uaa.client.QueueingUaaServiceExtension$QueueFlushingRunnable.run(QueueingUaaServ
    iceExtension.java:307)
            at java.lang.Thread.run(Unknown Source)
    "Synchronizer (Spring UAA/1.0.3)" daemon prio=6 tid=0x000000000e87f000 nid=0x19cc waiting on condition [0x000000001221f000]
       java.lang.Thread.State: TIMED_WAITING (sleeping)
            at java.lang.Thread.sleep(Native Method)
            at org.springframework.uaa.client.internal.TransmissionAwareUaaServiceImpl$UaaTransmissionRunnable.run(TransmissionAwareUaaS
    erviceImpl.java:397)
            at java.lang.Thread.run(Unknown Source)
    "org.eclipse.jface.text.reconciler.MonoReconciler" daemon prio=2 tid=0x000000000c35b000 nid=0x21f0 in Object.wait() [0x000000000fdcf
    000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)
            - locked <0x00000000d538b990> (a org.eclipse.jface.text.reconciler.DirtyRegionQueue)
    "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon prio=2 tid=0x000000000bff0000 nid=0x1adc in Object.wait() [0x000000000fcaf0
    00]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)
            - locked <0x00000000d3ac0470> (a org.eclipse.jface.text.reconciler.DirtyRegionQueue)
    "Java indexing" daemon prio=4 tid=0x000000000bfeb800 nid=0x1ef0 in Object.wait() [0x000000000faff000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d3eabf80> (a org.eclipse.jdt.internal.core.search.indexing.IndexManager)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:382)
            - locked <0x00000000d3eabf80> (a org.eclipse.jdt.internal.core.search.indexing.IndexManager)
            at java.lang.Thread.run(Unknown Source)
    "pool-1-thread-1" prio=6 tid=0x000000000bfee800 nid=0x1ad0 waiting on condition [0x000000000f3de000]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x00000000d16684a8> (a java.util.concurrent.SynchronousQueue$TransferStack)
            at java.util.concurrent.locks.LockSupport.park(Unknown Source)
            at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source)
            at java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source)
            at java.util.concurrent.SynchronousQueue.take(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    "Worker-0" prio=6 tid=0x000000000bfeb000 nid=0x1f10 waiting on condition [0x000000000d58f000]
       java.lang.Thread.State: TIMED_WAITING (sleeping)
            at java.lang.Thread.sleep(Native Method)
            at org.apache.directory.studio.common.core.jobs.StudioProgressMonitor$1.run(StudioProgressMonitor.java:99)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    "Thread-2" daemon prio=2 tid=0x000000000bb26800 nid=0x13e4 waiting on condition [0x000000000ce1f000]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x00000000d0a38640> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
            at java.util.concurrent.locks.LockSupport.park(Unknown Source)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
            at java.util.concurrent.ArrayBlockingQueue.take(Unknown Source)
            at org.eclipse.equinox.weaving.internal.caching.CacheWriter$1.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    "Worker-JM" prio=6 tid=0x000000000bb3a000 nid=0x2158 in Object.wait() [0x000000000d10f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d092b410> (a java.util.ArrayList)
            at org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
            - locked <0x00000000d092b410> (a java.util.ArrayList)
    "[Timer] - Main Queue Handler" daemon prio=6 tid=0x000000000b08f800 nid=0x16a4 in Object.wait() [0x000000000cf2f000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerImpl.java:141)
            - locked <0x00000000d0d8b268> (a java.lang.Object)
            at java.lang.Thread.run(Unknown Source)
    "Framework Event Dispatcher" daemon prio=6 tid=0x000000000b17b800 nid=0xc2c in Object.wait() [0x000000000cb8f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d1d71fa0> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
            - locked <0x00000000d1d71fa0> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
    "Start Level Event Dispatcher" daemon prio=6 tid=0x000000000b05c000 nid=0x99c in Object.wait() [0x000000000c9df000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d17f6820> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
            - locked <0x00000000d17f6820> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
    "Bundle File Closer" daemon prio=6 tid=0x000000000b01a000 nid=0x183c in Object.wait() [0x000000000c7ef000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000d078dd70> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at java.lang.Object.wait(Object.java:503)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
            - locked <0x00000000d078dd70> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
            at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
    "State Data Manager" daemon prio=6 tid=0x000000000ad67800 nid=0x1be8 waiting on condition [0x000000000a32f000]
       java.lang.Thread.State: TIMED_WAITING (sleeping)
            at java.lang.Thread.sleep(Native Method)
            at org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:297)
            at java.lang.Thread.run(Unknown Source)
    "Framework Active Thread" prio=6 tid=0x0000000009ecc800 nid=0x1d20 in Object.wait() [0x000000000b5fe000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1862)
            - locked <0x00000000d064c5c0> (a org.eclipse.osgi.framework.internal.core.Framework)
            at java.lang.Thread.run(Unknown Source)
    "Service Thread" daemon prio=6 tid=0x0000000008460800 nid=0x1220 runnable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    "C2 CompilerThread1" daemon prio=10 tid=0x0000000008456000 nid=0x1ed8 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    "C2 CompilerThread0" daemon prio=10 tid=0x000000000843f000 nid=0x1130 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    "Attach Listener" daemon prio=10 tid=0x000000000843d000 nid=0x1c64 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    "Signal Dispatcher" daemon prio=10 tid=0x000000000843b800 nid=0x15f4 runnable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    "Finalizer" daemon prio=8 tid=0x000000000261c800 nid=0x11f0 in Object.wait() [0x000000000925f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.ref.ReferenceQueue.remove(Unknown Source)
            - locked <0x00000000d028d4b0> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(Unknown Source)
            at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x0000000002618800 nid=0x9d0 in Object.wait() [0x000000000908f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:503)
            at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
            - locked <0x00000000d028cff8> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x00000000026de800 nid=0x1c70 runnable [0x000000000295e000]
       java.lang.Thread.State: RUNNABLE
            at org.eclipse.swt.internal.win32.OS.WaitMessage(Native Method)
            at org.eclipse.swt.widgets.Display.sleep(Display.java:4656)
            at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
            at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:917)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
            at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
            at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
            at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
            at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
    "VM Thread" prio=10 tid=0x00000000083e1800 nid=0x21ac runnable
    "GC task thread#0 (ParallelGC)" prio=6 tid=0x0000000002555000 nid=0xcb0 runnable
    "GC task thread#1 (ParallelGC)" prio=6 tid=0x0000000002557000 nid=0x1408 runnable
    "VM Periodic Task Thread" prio=10 tid=0x000000000846b000 nid=0x12c8 waiting on condition
    JNI global references: 298

    Gary
    This is still happening regularly. I running several stack dumps a minute or two apart, I see that the "Background Parser" thread is likely to be the culprit:
    1st stack dump:
    "Background Parser" prio=6 tid=0x000000001101c000 nid=0x166c runnable [0x000000000a6be000]
       java.lang.Thread.State: RUNNABLE
      at java.util.TreeMap.put(TreeMap.java:567)
      at java.util.TreeSet.add(TreeSet.java:255)
      at oracle.dbtools.parser.ParseNode.children(ParseNode.java:347)
      at oracle.dbtools.parser.plsql.LazyNode.children(LazyNode.java:35)
      at oracle.dbtools.parser.ParseNode.childAt(ParseNode.java:130)
      at oracle.dbtools.parser.plsql.LazyNode.childAt(LazyNode.java:47)
      at oracle.dbtools.parser.ParseNode.parent(ParseNode.java:121)
      at oracle.dbtools.parser.plsql.LazyNode.isControlStmt(LazyNode.java:175)
      at oracle.dbtools.parser.plsql.LazyNode.isStmt(LazyNode.java:196)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:126)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:168)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:168)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.stateChanged(PlSqlFoldingModel.java:342)
      at oracle.dbtools.raptor.plsql.BackgroundParser.parse(BackgroundParser.java:199)
      - locked <0x00000000d289e950> (a oracle.dbtools.raptor.plsql.BackgroundParser)
      at oracle.dbtools.raptor.plsql.BackgroundParser$1.construct(BackgroundParser.java:151)
      at oracle.dbtools.raptor.utils.NamedSwingWorker$2.run(NamedSwingWorker.java:115)
      at java.lang.Thread.run(Thread.java:724)
    A few minutes later:
    "Background Parser" prio=6 tid=0x000000001101c000 nid=0x166c runnable [0x000000000a6be000]
       java.lang.Thread.State: RUNNABLE
      at oracle.dbtools.parser.ParseNode.childAt(ParseNode.java:132)
      at oracle.dbtools.parser.plsql.LazyNode.childAt(LazyNode.java:47)
      at oracle.dbtools.parser.ParseNode.parent(ParseNode.java:121)
      at oracle.dbtools.parser.plsql.LazyNode.isControlStmt(LazyNode.java:175)
      at oracle.dbtools.parser.plsql.LazyNode.isStmt(LazyNode.java:196)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:126)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:168)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:168)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.stateChanged(PlSqlFoldingModel.java:342)
      at oracle.dbtools.raptor.plsql.BackgroundParser.parse(BackgroundParser.java:199)
      - locked <0x00000000d289e950> (a oracle.dbtools.raptor.plsql.BackgroundParser)
      at oracle.dbtools.raptor.plsql.BackgroundParser$1.construct(BackgroundParser.java:151)
      at oracle.dbtools.raptor.utils.NamedSwingWorker$2.run(NamedSwingWorker.java:115)
      at java.lang.Thread.run(Thread.java:724)
    And again:
    "Background Parser" prio=6 tid=0x000000001101c000 nid=0x166c runnable [0x000000000a6be000]
       java.lang.Thread.State: RUNNABLE
      at java.util.TreeMap.put(TreeMap.java:567)
      at java.util.TreeSet.add(TreeSet.java:255)
      at oracle.dbtools.parser.ParseNode.children(ParseNode.java:347)
      at oracle.dbtools.parser.plsql.LazyNode.children(LazyNode.java:35)
      at oracle.dbtools.parser.ParseNode.childAt(ParseNode.java:130)
      at oracle.dbtools.parser.plsql.LazyNode.childAt(LazyNode.java:47)
      at oracle.dbtools.parser.ParseNode.parent(ParseNode.java:121)
      at oracle.dbtools.parser.plsql.LazyNode.isControlStmt(LazyNode.java:175)
      at oracle.dbtools.parser.plsql.LazyNode.isStmt(LazyNode.java:196)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:126)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.walkParseTree(PlSqlFoldingModel.java:168)
      at oracle.dbtools.raptor.plsql.folding.PlSqlFoldingModel.stateChanged(PlSqlFoldingModel.java:342)
      at oracle.dbtools.raptor.plsql.BackgroundParser.parse(BackgroundParser.java:199)
      - locked <0x00000000d289e950> (a oracle.dbtools.raptor.plsql.BackgroundParser)
      at oracle.dbtools.raptor.plsql.BackgroundParser$1.construct(BackgroundParser.java:151)
      at oracle.dbtools.raptor.utils.NamedSwingWorker$2.run(NamedSwingWorker.java:115)
      at java.lang.Thread.run(Thread.java:724)
    SQL Developer has only been up for a 30 mins or so, but I did load and run a large generated file of inserts (50K lines). However once it has got into this state it never terminates..

  • SQL Developer 4.0 Early Adopter 2 - avoid "Please amend your code to something like this" message

    When I edit PL/SQL packages or sql queries in SQL Developer 4.0 Early Adopter 2,
    when i copy/paste SQL code, sometimes "Please amend your code to something like this: "select * from when", or "begin when; end;" appears.
    Sometimes SQL Developer freezes.
    Can I avoid that message (turn off some kind of checks in SQL Developer properties)?

    This has been raised/documented fixed in future releases here:
    EA42 - Ambiguous Context Pop-up

Maybe you are looking for