Extract the connected connections (Developer SQL - Extension)

Hi all

Asked me to write an extension for the SQL Developer, but now I have a problem.

My task was to write a simple browser which is able to connect to another program, but also to open .sql File in the normal SqlEditor

The problem is now that it should be able to know all connections active (with the small cable through the icon) and generates buttons in the popup for it, so that the user can choose what DB that it wants to use to the right of the browser.

I managed to do all of the work except for the context menu buttons, because I don't have that an active connection from:

Connections.getInstance () .getActiveConnectionName)

Then there is a simple way to get all the active connections to the SQL Developer?

Thank you in advance!

I already found the answer.

I forget the method Connections.getInstance () .isConnectionOpen (s)

Tags: Database

Similar Questions

  • Problem with the two EA DEVELOPER SQL DATA MODELING 3.0.0.665 and 3.1

    I created a model of very large data using SQL Developer data 3.0.0.665 and 3.1 EA maker. Its having a lot of check constraints. Whenever I am the design of the fence and the DOF and reopening export to import the DDL file failure to import completely check constraints. It is important to check constraints, but without any range of values inside. Its very frustrating because whenever you open import ddl, you must manually add again all the details of data check range constraint.

    OS: Windows XP.
    Check in the two EA Developer SQL Data Modeler 3.0.0.665 and 3.1

    -------------------------------------------
    Here are the contents of the .dmd file.
    -------------------------------------------
    * <? XML version = "1.0" encoding = "UTF - 8"? > *.
    * < OSDM_Design class = "oracle.dbtools.crest.model.design.Design" name = 'Admin_Panel' id = "9BE18B0A-6C67-2E5B-00DE-BD8312189ECB" version = "3.41" > * "
    * < createdBy > administrator < / createdBy > *.
    * < Createduserid > 2011-10-17 08:32:18 UTC < / Createduserid > *.
    * < Admin_Panel ownerDesignName > < / ownerDesignName > *.
    * < false capitalNames > < / capitalNames > *.
    * < designId > 9BE18B0A-6C67-2E5B-00DE-BD8312189ECB < / designId > *.
    * < / OSDM_Design > *.

    -------------------------------------------------------------------------------
    An example how the check constraints to get dirty.
    -------------------------------------------------------------------------------
    Initial check constraint is as below:
    ======================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    CHECK (Active_Flag IN ('A', 'I'))
    *;*

    Below how it occurs once I have imported the ddl and re-export:
    ============================================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    (CHECK)
    *;*

    I'm in trouble as I already in the middle of the my development using SQL Developer Data Modeler.

    Please help me soon.

    Jean

    Hi John,.

    Every time I'm fence design and export the ddl and reopening through the import of the DDL file

    Why are you doing this? Once the DDL file is imported and then save the drawing and open simply saved design, no need to generate the DDL and import it every time that you start Modeler data.
    On the list of values - forced as this CHECK (Active_Flag IN ('A', 'I')) are imported as constraint check plain and not as a list of values.
    There are the more specific elements import of check constraint - they are defined as type database constraint that you select during the import. Accordingly if you import your DOF as Oracle 10 g DDL, then you will get forced correct check in DDL generated for Oracle 10 g and Oracle 11 g. Constraint of evil will be generated for Oracle 9i. You can move the constraint for Oracle 9i (in the check constraint dialog box) or generic if it can be treated as such constraint.

    I logged for DOF bad bug.

    Philippe

  • Does the Group of Developer SQL database objects

    Noob question

    Can group objects of Developer SQL database (tables, views, etc.) and if so, how?

    Thank you

    To be used in the browser of the object, the objects are currently grouped only by the user (login).
    However, you can:
    1 assign synonyms objects to other users.
    2. in the treenodes of your items, open the context menu, select filter
    3. close to the bottom of the filter dialog box, select include synonyms
    This would give the desired result for all objects in the database without having to use the node of other users .

    For all have them as list or report, theFurryOne already said how.

    Have fun
    K.

  • How to activate the keys to generate and view the AWR reports Developer SQL

    Version: 4.0.3.16

    Build: HAND - 16.84

    S/n > (sid) > Performance > AWR report viewer

    I am able to select the start and end ID, but the following buttons are disabled:

    • Entries Toggel
    • Generate the report
    • Save to file
    • Open in browser

    What needs to be done to enable these buttons?

    Hello

    After entering start Id and the Id of the end, the button "report" will be activated, and then after that the report generated (by clicking the report generate) rest buttons button is activated. As shown in the image below.

    Hope it will be useful.

    Kind regards

    Sanjaya

  • Encrypt the connection to the SQL Server

    I have a new installation of OpenManage Essentials 2.1 and have a quick question. Our database of MOE is hosted on a remote SQL Server cluster. Is it possible to configure the database connection to use encryption/SSL when connecting to the cluster? We need it for compliance with our security policy, but unfortunately the installation that the user interface does not expose this option.

    If not is it possible to manually change the connection string?

    Note that this is in that concerning the encryption of the SQL Server connection between HOME servers and database, not HTTPS.

    Thank you
    Andrew

    Hi André,.

    OME encrypts all sensitive information before it is transferred to SQL Server.

    Also, the connection to SQL Server used by OME information is encrypted and there is no option for a user to change this.

    I hope this helps.

    Thank you
    Vijay.

  • Unable to connect to SQL Server

    Hello
    I am interested in the connection to SQL Server, but will have questions. Simply, I can't create a new connection after that I'm pointing the JDBC jar file. Nothing happens when I click on the button +!

    SQL Developer Version: 3.1.07.42
    Java: 1.6.0_11
    OS: Vista, also tried it on XP with the same question

    Please help what am I doing wrong.
    Thank you!

    You cannot use jtds 1.3, you MUST use 1.2 according to our docs here
    http://www.Oracle.com/technetwork/database/migration/omwb-getstarted-093461.html#CONF

  • Failed to connect to SQL Server SQL Dev

    Test the connection to Sql Server 2000 failed with "Unable to connect to MS SQL Server [ip address]." How can I find out why the connection failed? (bad port, invalid password, etc.). Thank you.

    Hello

    The first things to know when you connect to MS SQL SERVER is the host or ip address and port.
    If they are correct when you click RECOVER the DATABASE, you are able to see all the database on the server that you specified.
    Ways of connection are ok, but of course user and password is perhaps incorrect at this level.
    If no database is recovered, it means that the host or / and port are not correct.

    Then before to click TEST, you are able to recover the database with button to RECOVER the DATABASE?
    Are you able to ping the remote computer (SQL SERVER) with the ip address or hostname?
    Are you sure on the port for SQL Server?

    Kind regards

    Mireille

  • Developer SQL vs TOAD - query performance issue

    Someone pointed out the same queries are run slower in SQL Developer and TOAD. I'm curious on this issue, since I understand Java is 'slow', but I can't find another thread on this point. I do not use TOAD, so I can't compare...

    Can it be linked to the amount of data returned by the query? What could be the other reasons for the SQL Dev works more slowly with a similar query?

    Thank you
    Attila

    It occurs to me also that TOAD always uses the equivalent of the 'thick' JDBC driver Developer SQL can use 'thin' driver or the 'thick' driver, but the connections are usually configured with the pilot "thin", since you need an Oracle client to use the 'thick' driver

    The difference is that the 'thin' drivers are written entirely in Java, but 'thick' drivers are written with only a small Java that calls the native executable (that's why you need an Oracle client) to do most of the work. In theory, a thick driver is faster because the code of the object should not be interpreted by the JAVA virtual machine. However, I heard that the performance difference is not that big. The only way to know for sure is to set up a connection with SQL Developer to use thick driver and see if it is faster (I would use a stopwatch).

    Correct me if I'm wrong, but I think that if you use 'TNS' as your type of connection, Developer SQL use thick driver, while someone is using the default value, the type of ' basic' connection the thin driver. Otherwise, you need to use the connection type 'Advanced' and type in the JDBC URL custom for the thick driver.

  • Developer SQL hangs when starting...

    Backstory: I had this database fell on my lap when the company, I started working for last October, won the contract.  The developers gave me very little turn over, so I'm digging in my memory when I maintained an Oracle DB in 2002.  My skills are very dated, so please, be gentle.

    Oracle Windows Server 2003 10.2.0.0.0

    Oracle SQL program Version 4.0.2

    I initially installed sqldeveloper without worrying about Java.  I got an error and the research revealed that the JDK is not installed and was trying to use JRE...  I installed the JDK 1.7.0 55.  Now when I run sqldeveloper, the splash screen comes up with a loading bar... He goes to about 10% of the bar and sits there exciting.  Happening for hours.  What I am doing wrong?  What other information do you need?  Thank you.

    L

    You reinstall sqldeveloper once you have installed the JDK? Developer SQL saves the value in the Java House in sqldeveloper.conf under E:\sqldeveloper\sqldeveloper\bin (at least it does in version 3.0). You can try to update the path of this file if it is incorrect, but it is probably safe to reinstall everything.

    Kind regards

    Bob

  • How to solve the problem of Oracle SQL Developer Connection?

    People,

    Hello. I use the Oracle 11 GR 1 material database. The database https://localhost.localdomain:1158 control console / em works correctly. I can create a database and a table with success.

    My OS is Linux and connects to the internet successfully.

    In order to execute SQL statements. We use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:

    Connection name: DB1 (is my database name)
    User name: SYS (this is the user name I used to connect to the Console)
    Password: SYS (this is the password used to connect to the Console)
    Connection type: basic
    Host name: localhost
    Port: 1158
    SID: DB1 (it is created during the installation of the database)

    But the error message: "status: failed - IO exception Connection Reset."

    Can any folk tell me how to solve the problem of Oracle SQL Developer Connection?

    user8860348 wrote:
    People,

    Hello. I use the Oracle 11 GR 1 material database. database Control Panel https://localhost.localdomain:1158 / em works correctly. I can create a database and a table with success.

    My OS is Linux and connects to the internet successfully.

    In order to execute SQL statements. We use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:

    Connection name: DB1 (is my database name)
    User name: SYS (this is the user name I used to connect to the Console)
    Password: SYS (this is the password used to connect to the Console)
    Connection type: basic
    Host name: localhost
    Port: 1158
    SID: DB1 (it is created during the installation of the database)

    But the error message: "status: failed - IO exception Connection Reset."

    Can any folk tell me how to solve the problem of Oracle SQL Developer Connection?

    user name: sys
    password: enter_your_correct_password given at the time of the installation of oracle

    role: select sysdba if you would connect as sysdba otherwise select normal for users other than the sys

    HostName: Enter your ip or hostname of the oracle example server address:-192.168.11.12

    to find the terminal/command prompt open hostname in oracle installed machine
    type---> hostname

    type ping hostname--->

    You can find the IP address of the server

    Port number: 1521 (default)---> I guess, otherwise check the port number in the file tnsnames.ora under your ORACLE_HOME/network/admin folder

    SID: DB1

    try it
    Good luck

  • Connection tab Sybase shows is not in the new option of connection in SQL developer

    Hello

    I do not see a Sybase connection tab in the new connection option in SQL developer 2.1, as it was available in version 1.5

    Why is this? How to fix?

    Hello

    Have you installed the JTDS JDBC driver still in SQL Developer.
    This is necessary before you get the tab connection for SQL Server and Sybase.

    You can install the driver, JTDS action to Check For Updates.

    Kind regards
    Dermot
    SQL development team

  • Taking JDBC connection configuration supported the RAC in Oracle SQL Developer?

    How can one Oracle SQL Developer be configured to successfully connect to a [Oracle RAC | http://en.wikipedia.org/wiki/Oracle_RAC] environment, that is, not only the installation program always to connect to one of the individual nodes?

    [http://programmersjournal.blogspot.com/2008/08/jdbc-connection-string-for-oracle-rac.html] is an example of a classic and taking version supported the equivalent CARS of a JDBC connection string. I've used a CAR of the same format connection string from within Java applications custom without problem. I thought that the same thing should be configurable in Oracle SQL Developer, by setting the 'Connection Type' drop-down menu on "Advanced", then enter the connection string JDBC RAC-aware as "Custom URL JDBC". However, after the test connection, the following error message is displayed at the bottom of the dialog box:

    Status: Failure-Test failed: IO exception: NL Exception has been generated

    There is no additional information shown on the display 'Page Logging'. With the help of Oracle SQL Developer 1.5.5.

    Thank you!

    You could always give the current 2.1 ai2 test... continuous development may have fixed the issues in this area...

    Hope that helps,
    K.

  • Check the connection status of mobility Extension

    Hello

    Is it possible to check the status of connection EM outside of Cisco reports - reports on the system - Unified CM Extension Mobilty. This tool does not give me an accurate picture see a gap on the report and it is not quite up-to-date.

    THX,

    M

    Either you can check of the CUCM - connected actively in devices (devices, phones > in the drop-down list the upper right corner)

    Ref: http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/8_6_1/ccmc...

    or

    You can try to run the below SQL in the CLI:

    run sql select eu.userid, emd.logintime, emd.loginduration, emd.datetimestamp of extensionmobilitydynamic join emd internal EU enduser on emd.fkenduser_lastlogin = had .pkid

    -Terry

    Please note all useful posts

  • Developer SQL 4.1.2 uses Windows authentication to connect to SQL Server

    I'm using SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication.  If I use SQL Server authentication, everything works so the jTDS driver appears to be installed and working properly (I use jTDS 1.2).  When I switch to Windows authentication, I get the error

    Status: Failure-Test failed: IO error: failure of the SSO: library Native SSPI has not loaded. Check the system java.library.path property.

    Of course, I googled the error and came up with dozens of people asking the same question and is told to move the ntlmauth.dll from the \SSO directory to the jTDS directory in various other directories.  That seems to work for others so for the last few hours, I was copying the DLL in each directory that I can find someone on the internet suggesting without success (I do restart SQL Developer each time).  In the Directory SQL Developer, I tried

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\sqldeveloper\bin

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\jdk\jre\bin


    On the off chance that something was still making reference to a directory of a SQL Developer previous install, I put it in the same directories in the front THAT SQL Developer installed on this machine.  On the theory that she was using the FMV of the machine rather than that I downloaded and installed with SQL Developer, I advanced and dropped the DLL in the directory \bin for each installation of Java, that I could find on the system.


    c:\Program Files\Java\jrd1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_60\bin


    Still no luck.  SQL Developer, I went to help. Everything | Properties and checked that the first way to java.library.path is what I expected and where I dropped the ntlmauth.dll first.  I even put it in c:\windows and c:\windows\system32 just to be sure.


    Java.Library.PathC:\Oracle SQL Developer 4.1.2.20.64\sqldeveloper\sqldeveloper\bin. C:\WINDOWS\Sun\Java\bin; C:\Windows\System32; C:\WINDOWS;


    Despite the DLL just about everywhere that I guess I would need to have it, I still get the same error.  I must be missing something obvious.  But at this point I was looking at it so long that I just can't see it.


    Justin



    I use SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication using jTDS 1.2

    Not sure if this has anything to do with your problem, but according to jTDS - SQL Server and Sybase JDBC driver / newsand since SQL Developer 4.1.x requires Java 8, '' you should stick only to jTDS 1.2 If you need to use a version of Java before Java 7 '' . Perhaps using a version 1.3.x jTDS driver might help.

  • Developer SQL 4.1.1 connect returns "invalid connection string format.

    The "invalid connection string format" error is returned, while trying to connect, you use sql developer 4.1.1.19, using 1.8.0_51 JDK on Win 7 x 64 environment.

    The powers of the exact same connection, on the same OS Win 7 x 64, a product without any errors using sql developer 4.0.2.15, using the JDK 1.7.0_80

    Credentials were basic, by default, the name of the Service (not SID) and no special authentication.

    This problem is replicated when it is installed on a different platform to Win 7.

    Screen attached.Capture_sqld_4.1.1.jpg

    You say you have no non-alphabetic characters, but see this previous discussion (a hyphen was the problem) and see if any of Jeff's suggestions work for you: connection error after upgrade to 4.1

    I also read another post (non - developer SQL) where a symbol (@) in the password was a problem, but that may not apply to your case.

Maybe you are looking for

  • Firefox crashed 45 times in 24 hours.

    I work to a new installation of Windows. also new video card, processor, hard drive. The night last Firefox broke every five minutes. He crashed once before that I put on my addons and several times after (somewhere around 30 times). I tried to go ba

  • WiFi Compatible?

    I am looking to buy a Sony Tablet S for my academic needs. The University I attend requires a wireless card that supports "IEEE 802. 11 a, b or g standard (compatible Wi - Fi)". The Sony Tablet has a Wireless N Wi - Fi (802.11b/g/n). Is this a game?

  • Qosmio F20-011: malfunction of the TV tuner hardware

    I've recently encountered an error with my Media Center. I get the following error message when you try to do everything related to the TV side of the software. The tuner is defective or not installed. Please make sure that the tuner hardware and a v

  • Problems to connect to the ps3

    Hello I bought the router e3200 around a month ago and everything worked well until about two weeks ago. Now, when I go on my ps3 I get internet connection and always bad cant hardly play games online more with all the GALs. IM assuming that it is th

  • taskbar on the side can fix it fault on the bottom

    want to fix my taskbar