[1.2.0.29.98] Close SQL Worksheet when disconnecting their connection

Hello
is there a way to set the SQL Worksheets to close when disconnecting their connection?
I use SQL Developer 1.2.0.29.98.
Regards
Tryfonas

Thanks, however having the two options available in the navigator would be a lot more powerful feature and more easy to implement for you guys.
If I'm done with a connection, I'd like to dismiss all.
If I'm not done, but the connection is lost (this happens like every hour to a remote DB I use), I have to manually close the (closed) connection, then connect again, to continue my work (due to the lack of a reconnect option). I need all windows to be left as they were in that case.
So the two options are really compatible in the same environment. Having a preference would mean a loss in functionality. Any chance on reconsidering the implementation?
Thanks,
K.

Similar Messages

  • [1.2.0.29.98] reports close when disconnecting their connection

    Hi,
    is there any reason to close open reports when i disconnect their connection?
    anita
    (win xp pro, java 1.5.11, ora 9.2)

    Anita,
    These reports are tied to the connection. They are effectively a live data set which will not exist when the connection is closed.
    This is something we could change by adding a preference to keep reports up, but inactive when the connection closes.
    Barry

  • Ability to open multiple SQL Worksheets for the same connection

    Hi,
    Please allow the ability to open multiple SQL Worksheets for the same connection, now only one can be opened.
    Thanks

    Logged Bug 9000801 - ea1: otnforum: worksheet launcher does not remember the last/default connection
    -Raghu

  • Change database connection in SQL-Worksheet to a not connected db

    Hi,
    change the active database connection of a SQL-Worksheet to a currently not connected database does not work. The login window pops up, but the password entry field cannot be activated to enter the password. On dragging the login window the screen does not get refreshed correctly. The only way to get back to work is to kill the sqldeveloper.exe process.
    The affected version is 3.2.09.23 on the 32 bit MS Windows plattform.
    sincerely yours
    Matthias

    Hi Matthias,
    Thanks for reporting this. It is caused by a deadlock between Java threads. I will log a bug for it.
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Aug 23, 2012 4:26 PM
    Bug 14532491 - FORUM - DEADLOCK OCCURS WHEN SWITCHING WORKSHEET CONNECTIONS
    Edited by: Gary Graham on Aug 23, 2012 4:27 PM
    Bug 14534488 - DEADLOCK OCCURS WHEN OPENING WORKSHEET CONNECTION FOR A SQL FILE

  • In SQL Worksheet, when I double click to select whole word with underscore

    Hi All
    I'm using SQL Developer 2.1 in XP. After I changed various preferences, I fid when I double click a variable such as ls_test_column, it considered it as 3 words instead of one. I know in TOAD there's a setup to consider word with underscore as one word so that when double click, the whole word can be selected. Now I have to use mouse or shift key to select variables with underscore. it's inconvenient.
    Does anyone know which preference control this? Thanks.

    It is based on the "Use Change of Case as Word Boundry" preference in the Code Editor section - if this is on, then an _ is considered a "change of case" for double click selection, amongst other things.
    theFurryOne

  • SQL exception when try to connect with MS SQL server

    Hello Sir,
    When i run the jsp file which connect to to MS Sql server database and fetch the data.
    Its throwing the SQLException error like:
    Name java: is not bound in this Context
    here is my server.xml
    [code<?xml version='1.0' encoding='utf-8'?>
    <Server>
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
      <GlobalNamingResources>
        <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
        <Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase"/>
        <Resource name="testDB" type="javax.sql.DataSource"/>
         <ResourceParams name="UserDatabase">
          <parameter>
            <name>factory</name>
            <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
          </parameter>
          <parameter>
            <name>pathname</name>
            <value>conf/tomcat-users.xml</value>
          </parameter>
        </ResourceParams>
         <ResourceParams name="testDB">
          <parameter>
            <name>maxWait</name>
            <value>5000</value>
          </parameter>
          <parameter>
            <name>maxActive</name>
            <value>10</value>
          </parameter>
          <parameter>
            <name>password</name>
            <value>testpass</value>
          </parameter>
          <parameter>
            <name>url</name>
            <value>jdbc:microsoft:sqlserver://localhost:1433;DataBaseName=test;</value>
          </parameter>
          <parameter>
            <name>driverClassName</name>
            <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
          </parameter>
          <parameter>
            <name>maxIdle</name>
            <value>2</value>
          </parameter>
          <parameter>
            <name>username</name>
            <value>testuser</value>
          </parameter>
        </ResourceParams>
      </GlobalNamingResources>
      <Service name="Catalina">
        <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8080" redirectPort="8443" maxSpareThreads="75" maxThreads="150" minSpareThreads="25">
        </Connector>
        <Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443">
        </Connector>
        <Engine defaultHost="localhost" name="Catalina">
          <DefaultContext className="org.apache.catalina.core.StandardDefaultContext">
            <ResourceLink global="testDB" name="testDB" type="javax.sql.DataSource"/>
              </DefaultContext>
          <Host appBase="webapps" name="localhost">
            <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
          </Host>
          <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
        </Engine>
      </Service>
    </Server>
    [/code]

    Hello Sir,
    I tried my level best, I couldn't solve the error. Still iam getting the same error Name java:comp is not bound in this Context
    Again for your reference i am adding server.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Server>
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
      <GlobalNamingResources>
        <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
        <Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase"/>
        <Resource name="jdbc/datasourceDB" auth="Container" type="javax.sql.DataSource"/>
         <ResourceParams name="UserDatabase">
          <parameter>
            <name>factory</name>
            <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
          </parameter>
          <parameter>
            <name>pathname</name>
            <value>conf/tomcat-users.xml</value>
          </parameter>
        </ResourceParams>
         <ResourceParams name="jdbc/datasourceDB">
          <parameter>
            <name>maxWait</name>
            <value>5000</value>
          </parameter>
          <parameter>
            <name>maxActive</name>
            <value>10</value>
          </parameter>
          <parameter>
            <name>password</name>
            <value>mani</value>
          </parameter>
          <parameter>
            <name>url</name>
            <value>jdbc:microsoft:sqlserver://<servername>:1433;DataBaseName=trax;selectMethod=cursor</value>
          </parameter>
          <parameter>
            <name>driverClassName</name>
            <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
          </parameter>
          <parameter>
              <name>driverName</name>
              <value>jdbc:jtds:sqlserver://<servername>:1433;DatabaseName=trax</value>
          </parameter>
          <parameter>
            <name>maxIdle</name>
            <value>2</value>
          </parameter>
          <parameter>
            <name>username</name>
            <value>mani</value>
          </parameter>
        </ResourceParams>
      </GlobalNamingResources>
      <Service name="Catalina">
        <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8080" redirectPort="8443" maxSpareThreads="75" maxThreads="150" minSpareThreads="25">
        </Connector>
        <Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443">
        </Connector>
        <Engine defaultHost="localhost" name="Catalina">
          <DefaultContext className="org.apache.catalina.core.StandardDefaultContext">
            <ResourceLink global="datasourceDB" name="datasourceDB" type="javax.sql.DataSource"/>
              </DefaultContext>
          <Host appBase="webapps" name="localhost">
            <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
          </Host>
          <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
        </Engine>
      </Service>
    </Server>part of web.xml added
         <resource-ref>
         <description> JDBC Driver:com.microsoft.jdbc.sqlserver.SQLServerDriver</description>
         <res-ref-name>jdbc/datasourceDB</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
         </resource-ref>my java code:
                   Context initCtx = new InitialContext();
                   Context envCtx = (Context) initCtx.lookup("java:comp/env");
                   DataSource ds = (DataSource) envCtx.lookup("jdbc/datasourceDB");
                   conn = ds.getConnection();Plz provide me the help.. i am suffering from this error since 1 week.
    Regards
    venki.

  • Mac - SQLDev 1.5 - Unable to use carriage return/enter in SQL Worksheet

    This morning I brought up SQLDeveloper (1.5). I connected to a database. Started typing in a query and the carriage return (or enter) does not work. If I go to a menu or the list of files, it does work. Just not in the SQL Worksheet. I removed the application and re-installed. Still the same. I do not see this behavior in any other application or situation. Just within the SQL Worksheet of SQLDeveloper.
    As a check, I did exit all other applications, rebooted, and tried again. Still no joy. I have the latest updates of Leopard and SQLDeveloper. I am guessing it is not using the latest Java but rather what was deployed with SQLDeveloper.
    Any thoughts on how I could lose these two keys? There is no change to the system preferences for the keyboard. There is no setup to have the carriage return or enter key be mapped to anything else.
    Very odd. I tried looking around the application and only in the SQL Worksheet does it not work.
    Any ideas?
    Eric

    Ahh, I was pulling my hair out over this since last week (on a PC, not a Mac). I just couldn't figure out why I could no longer add a line feed on the SQL worksheet when I hadn't changed anything at all.
    Anyway, I still have no idea how the settings got changed, but resetting to defaults did the trick. Thanks!

  • Release 4: File Folder icon missing in SQL Worksheet

    The file folder icon is now missing in the SQL Worksheet. Using File->Open just opens the file in the editor. There is no way to run the SQL file. Clicking on Run in menu across the top causes the "The target bogus.sql cannot be started because it is not a runnable target." error message.
    The help for "Using the SQL Worksheet" shows the file folder icon on the screen shot.
    How does one open a SQL file and run it in Release 4?
    Mike

    The File Open (or Open button on the main toolbar) works better in some respects - it opens in a SQL Worksheet (although not associated with a database connection), name s the tab with the filename, indicates a changed file by switching to italics in the tab name and requests confirmation on close if the file is modified.
    However, the default directory is the <SQL Developer directory>/jdev and the file type defaults to all.
    The Right-Click in SQL Worksheet opens the file from a default of C:\Documents and Settings\<username> (for me at least) with a file type of *.sql. The tab name is not renamed when opening the file (stays as the connection name) and there is no close confirmation if the file is modified.
    The File Open makes it harder to lose stuff, but is a bit more work to use. As redoing lost work is more effort than switching file types and potentially more directory navigation on opening, I think the File Open option is better than the Right-click, but I would prefer something with the File Open functionality from within an existing SQL Worksheet.

  • EA1 - SQL Worksheet automatically commits

    I have the checkbox set to NOT auto-commit, but if I do any updates in the SQL worksheet and then disconnect my connection without explicitly committing, the changes are committed to the database anyway.
    Thanks,
    Richard

    Could not replicate, unless your table-save was in response to connection-closeWell... that doesn't make any difference in the end, now does it?
    If you first close the table, answering not to commit, the changes stay posted.
    Then, later, when you disconnect the posted changes are committed anyway.
    Bottom line: there is NO WAY to roll back if you didn't do so explicitly BEFORE closing the table.
    What SHOULD happen when you answer NOT to commit, is issuing an implicit rollback. Right?
    When connection-closed pending commits happen from driver. That can't be changed.That doesn't need to be changed either.
    But what you CAN do is asking to commit or roll back any pending changes when disconnecting (TOAD does so too).
    But in worksheet user only knows what they didFair enough.
    Nevertheless, as commented on the closed connection, you could ask anyway. I guess a user preference would be the nicest thing to have, so everyone can choose for themselves.
    Thanks,
    K.

  • SQL Worksheet unaccessible for keyboard

    Hi,
    I have SQL Developer on Ubuntu 8.10
    Platform      1.6.0_10
    Oracle IDE     1.5.4.59.40
    Versioning Support     1.5.4.59.40
    Sometimes I'm unable to type in SQL Worksheet area, mouse actions work good (like copy, paste, cut).
    Does somebody know how to solve it.
    Thanks!
    Andrey Dmitrenko

    Hi
    Thanks for the response, however even after loading the Default Accelorator preset & then restarting SQLDeveloper, I can't enter anything into the SQL worksheet. Is there anything further I can try (i.e. trashing the prefs etc)?
    Thanks for any assistance on this
    Simon
    P.S. Ubuntu 9.04

  • How to execute procedure in SQL Worksheet ?

    Hi, anybody know, how I can execute procedure here?
    I try EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there is a SQL statement error. When I use CALL - there is no such procedure (I have execute previleges).
    Although in SQLPlus EXEC works, but there are problems with standard SQL commands (all of them returns "2" no matter what content is).
    Any ideas?
    Regards
    Krzysztof

    exec procedure(parameters) is a sql plus (and a few others) shortcut for
    BEGIN
       procedure(parameters);
    END;So try that then pressing/clicking whatever it is in sql worksheet that makes a statement run.
    Note that if your procedure has parameters defined as OUT or IN OUT, you will need to supply a variable to accept the returned value(s).
    John

  • SQL Worksheet Gets Slower and S.l..o...w....e.....r with Use

    Does anyone else notice the more you use SQL Worksheet, the
    slower it gets? The first time I start it up, it'll run a
    compile on an object super-fast. After running a dozen or more
    compiles and test scripts, I notice it's getting slower.
    Eventually, it's so slow I just kill SQL Worksheet and start it
    right back up. Then it's back to warp speed again!
    I'm on a Win2K machine, running Oracle 8.0.6, with version 1.6.0
    of SQL Worksheet.
    I have 2.1 install disc for Oracle Enterprise Manager, but I'm
    uncertain if I can update what I've got (given the release of
    Oracle I'm on). Any help here would be appreciated, too.

    The box does not reboot itself at 7am every day at the behest of BT that is not normal behaviour.
    I think you really ought to fo  a hard reset and clear everything off your hard drive and see if it solves your problem.
    If it does not then you are I think looking at a slowly dying box which needs to be replaced.
    Factory Reset
    Switch off the Vision+ box at the mains socket
    Hold down the front panel OK and down arrow buttons
    Switch on the power to the Vision+ box
    Allow the box to start up (about 15 seconds)
    Release the OK and down arrow buttons
    The Vision+ box will then contact the servers to get a new copy of its firmware
    This will take around 30 minutes
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • 4.1EA2 Text cursor goes missing in SQL Worksheet

    In EA1 and EA2, my cursor seems to intermittently go missing in SQL Worksheet
    Version info:
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.2 LTS
    Release: 14.04
    Codename: trusty
    (Running unity)
    $ java -version
    java version "1.8.0_25"
    Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
    Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
    (edit: Just tested in Windows - cursor does not go missing)
    One such pattern that I noticed it seems to go missing on is when running a script.
    Another pattern, if I hit enter a few times before the cursor has a chance to blink in between (not always), or hit the up or down arrow to go to the top or bottom of the page respectively, it also disappears.
    I'm able to get the mouse back by dragging the window out of maximize position.
    Couldn't reproduce in a procedure editor - assume will be same for package/function editor. So it's most prominent in SQL Worksheet.
    Message was edited by: trent I've had SQL Dev closed half a dozen times since reporting this, and now it seems OK. But it does seem to come and go =/

    I'm having this same issue that started happening with EA1 and persisted into EA2. It was not occurring prior to my upgrade. My input cursor disappears when scrolling up or down in code using the mouse wheel or scroll bar when the code extends beyond the display area. Moving the window does not help, but resizing the window appears to cause it to redraw and the cursor appears again. I can see what line I am on due to current line highlighting, and I can also select text or start typing to get an idea of where I am.
    OS:
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.2 LTS
    Release: 14.04
    Codename: trusty
    Linux 3.13.0-46-generic x86_64
    Java:
    java version "1.8.0_40"
    Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    100% reproducible.
    Note that I was running 4.0.1.14.48 prior on Java 8 so it's likely a recent change and most likely not related to going from Java 7 to 8.
    (Previous version determined by ls -d ~/.sqldeveloper/system* which returned the following:
    Jul  7  2014 system4.0.1.14.48/
    Mar 13 16:00 system4.1.0.17.29/
    Mar 19 13:29 system4.1.0.18.37/

  • How can I turn off auto formatting whilst working in the SQL Worksheet?

    Friends,
    Hope you can help with a quick question.
    Is it possible to stop the auto formatting of SQL statements in the SQL worksheet?
    e.g. When I type select * from dual it auto formats to becomes SELECT * FROM DUAL when I hit return.
    I am using SQL Developer 2.1.1.64
    Thanks in advance

    Preferences - Code Editor - Completion Insight - uncheck Change case as you type
    Have fun,
    K.

  • What happended to "Save As" in the SQL Worksheet?

    I am using 14.22 in Windows XP. In the previous version 13.43 I used to:
    1) Open a new SQL Worksheet.
    2) Type in statements.
    3) Press Ctrl-S to save the contents of the SQL Worksheet panel to a new file, an "Open File" dialog appeared.
    4) Enter file name for new SQL script file.
    Now when I press Ctrl-S I do not get the "Open File" dialog. The Ctrl-S saves the SQL Worksheet contents to a temp file in my user/.sqldeveloper/tmp directory. I have to copy the contents of the SQL Worksheet panel into a text editor and save it to a SQL file. Or I copy the SQL file in my temporary directory to the new file I want.
    I saw in another thread that the SQL Worksheet contents is not being saved to a temporary file to help prevent loss of contents if there were a machine outage. This change may have caused this problem.
    I use the "Save As" functionality in the SQL Worksheet a lot. That was how I create SQL files.
    How do I create a SQL script in SQL Developer now?
    Mike

    It got dropped by accident but it will be back in for EA7 that we expect to release any day now (just writing the release notes for it now). We have the Save As back in the menu and a right-click Save File from the Worksheet to save your work.
    -- Sharon

Maybe you are looking for