Configuring RAC-aware JDBC connection in Oracle SQL Developer?

How can Oracle SQL Developer be configured to properly connect to an [Oracle RAC|http://en.wikipedia.org/wiki/Oracle_RAC] environment, I.E., not just setup to always connect to one of the individual nodes?
[http://programmersjournal.blogspot.com/2008/08/jdbc-connection-string-for-oracle-rac.html] has an example of a classic and the equivalent RAC-aware version of a JDBC connection string. I've already been using a RAC connection string of the same format from within custom Java applications without issue. I thought the same should be configurable in Oracle SQL Developer by setting the "Connection Type" drop-down to "Advanced", then entering the RAC-aware JDBC connection string as the "Custom JDBC URL". However, upon testing the connection, the following error is displayed at the bottom of the dialog:
Status : Failure -Test failed: Io exception: NL Exception was generated
There is no additional information shown on the "Logging Page" view. Using Oracle SQL Developer 1.5.5.
Thanks!

Thanks, Barry. Just F.Y.I., it is working for me now that I upgraded to the 2.1 EA as -K- suggested. I had marked his reply as "Correct", but probably should have left a response indicating my success as well.
Now, if there's anything you could do regarding the [issues around the display performance of CLOBs, etc., in the Query Result view|http://forums.oracle.com/forums/message.jspa?messageID=3906571] , it'd be very appreciated!

Similar Messages

  • Am not able to connect to oracle sql developer first time

    Hai all,
    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Thanks,
    subbu

    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Did you perhaps do a custom install? The DB software includes a version of sql developer and, by default, installs it in the sqldeveloper folder of the DB_HOME. Does that folder have sql developer in it?
    I suggest that you NOT use the version of sql developer that ships with the database. That version will NOT be the current version.
    Download the current version of SQL Developer, unzip it into a new folder and create a desktop icon for it.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    The current version includes many, many bug fixes from that earlier DB version and you will have far fewer probems with it.

  • How to connect from oracle sql developer ?

    I've made one java class, to access UserRecord Data Base from sql developer.
    My class file is :-
    import java.sql.*;
    import java.io.*;
    public class SelectData{
    public SelectData(){}
    public void selectData(){
              String url="jdbc:oracle:thin:@10.1.236.10:1521:dev92i";//connection url
         Connection con= null; //connection create
              Statement stat = null; //prepared statement create
              ResultSet rs=null; //result set to hold result
              try{
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con = DriverManager.getConnection(url,"scott","tiger");
              stat = con.createStatement();
              rs = stat.executeQuery("select Name from UserRecord");
              while (rs.next()) {               // Position the cursor                 
                        // Retrieve the first column value
                        System.err.println("Name= " +rs.getString("Name"));
                        // Retrieve the first column value
                        System.err.println("Pswd= " +rs.getString("Password"));
              rs.close();
              catch(SQLException e){
                   System.err.println(e.getMessage());
              catch(ClassNotFoundException e){
                   System.err.println(e.getMessage());
              catch(Exception e){
                   System.err.println(e.getMessage());
              finally{     
                        try{
                        if(con!=null)
                             con.close();
                        catch(Exception e){
                             System.err.println(e.getMessage());
    public static void main(String args[]){
         SelectData sd=new SelectData();
         sd.selectData();
    When i run this class file it gives error :-
    "oracle.jdbc.driver.OracleDriver"
    Plz help me out from this problem and suggest any configuration if required in oracle sql developer to run my programs.

    {color:#0000ff}hi,
    add the jar for oracle jdbc to the libraries.
    if you are using any IDE then just change the project properties adding the jar file.
    if not edit the classpath of the envoirnment variables.
    {color}{color:#ff0000}*manik*{color}

  • Able to connect via Oracle SQL Developer, but not sql plus

    Using Oracle 10.2.0.
    I can connect using the TNS connection type in SQL Developer, but cannot do so in SQL PLUS. SQL Plus gives me the error -- could not resolve the connect identifier.
    When I do tnsping USPO_ADHOC, I get:
    C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION =
    TNS-12533: TNS:illegal ADDRESS parameters
    So here is my tnsnames.ora file:
    INTL_ADHOC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.108)(PORT = 1521))
    (CONNECT_DATA =
    (SID = intl1)
    USSYN_ADHOC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.109)(PORT = 1521))
    (CONNECT_DATA =
    (SID = USSYN)
    USPO_ADHOC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.107)(PORT = 1521))
    (CONNECT_DATA =
    (SID = uspo)
    Any assistance gratefully appreciated. Thanks.

    I actually did not have that environmental variable, so I added it, but nothing changed.
    I would note that if I do tnsping foo, I get: failed to resolve name.
    If I do tnsping USPO_ADHOC, I get: illegal address parameter.
    In both cases, the output correctly identified the path to my sqlnet.ora file, which is in the same directory as my tnsnames.
    So I would conclude from that, that the system was already able to find my tnsnames file.
    Anyway, here's my sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    Thanks again for any ideas!

  • Create connection with Oracle SQL Developer

    Hello,
    my test to connect my Oracle database with SQL*PLUS works. Here I need only the username (I test with system), my password and the hostname (orcl).
    Now I want to create this connection with the SQL Developer.
    Here I need the Port. I don't know the port of my database. How can I find it out?

    Hi, the port must be the used by listener, review the $ORACLE_HOME/network/admin/listener.ora file or get the listener status(lsnrctl status) for get the correct port.
    You can try with the default port. (1521).
    Luck.
    Havea good day.
    Regards.

  • Problem in connection to Oracle SQL Developer

    Hi All,
    I am trying to connect to remote machine database through Oracle SQL Developer, it is giving me teh following error.
    Status: Faliure -Test failed :io connection :The Network Adapter could not establish the connection .
    I had given the hostname as the name which is assigned to that server, it didnt work.
    Later i tried with the IP address of the Server, it worked.
    Can anybody tell me how can i connect by giving hostname instead of the IP address.
    Thanks in advance,
    Vinay

    Hi Vinay,
    One way would be to add an entry in your hosts file. On windoze you can find this in
    %SystemRoot%\system32\drivers\etc
    Regards
    Peter

  • How to open new connection in Oracle SQL Developer ???

    Hi folks,
    I have installed SQL Developer Version 1.5.0.53 in a XP sp2 system. tried to open a Database Connection, with OR_OHCL connection name and 'hr' username & password, but when I click on Connect it showed me "Failure- Io Exception The network adapter could not establish the connection". How can i resolve this issue?
    Thanks in adavance. I need urgent reply, if not lot of replies!!!

    i need to mention that i have never used SQL Developer before. but i have done some oracle coding 1year ago when i had Oracle 9i installed in my computer. but i don't have any oracle installed in my computer. do i need to install any for using SQL Developer? i am not sure what to do?
    i want to use it for just learning. if i need to install Oracle DB which one do you guys suggest me to install ---
    1.Oracle Database 10g Express Edition (Western European)
    2.Oracle Database 10g Express Edition (Universal)
    3.Oracle Database 10g Express Client
    4. or anything else
    please help me out.
    Sarwar

  • Unable to register a new cloud connection in Oracle SQL Developer

    Please somebody can assist me how could I connect the new cloud connection
    I have used the port 22 and SFTP user and host are all ok .. but the error which comes up when i try to connect is
    "Peer not authenticated"
    Please help!!

    Hi Ankur,
    Thanks for the updates. You've mentioned you're on Windows - is it 32-bit or 64-bit?
    +> I want to confirm that the user id asked in the popup for the new cloud connection , needs to be made in the Application Express in the online database service or is it User Id of the administrator?+
    As mentioned in the white paper:
    "In order to perform these steps, the data load process uses two different users – one user defined for the Secure FTP (SFTP) site, and another defined to load the data in the Database Cloud Service. You can use any user who is a Service Administrator or Database Developer to load data into your Database Cloud Service. The SFTP user for your Database Cloud Service is identified in the My Services portal1 for the Database Cloud Service in the section label Service SFTP Details."
    So the user login credentials you enter in the popup for the new Cloud connection should be "any user who is a Service Administrator or Database Developer". In the 'Welcome to Oracle Cloud' email that you received upon trial registration, the user defined under the 'Identity Domain Account Details' is your default Service Administrator. However, you can of course create additional Service Administrator users or indeed Database Developer users via the Identity Console. Log in to MyServices Administration URL (you'll find the URL in the 'Welcome to Oracle Cloud' email that you received upon trial registration), then select your database service, and click on the Identity Console button on the Services page. This will launch the IDM console, where you can manager the users and roles for your database service. To add a new Database Developer user, for example, you can do the following in Identity Console:
    1) Click 'Manage Users' link from the left hand side bar
    2) Click Search. You should then see a list of the existing users for your service. Among those users, you'll see your SFTP user. Ensure that you have reset the password for your SFTP user, as per the documentation.
    3) Click Create, and enter the credentials for a new user
    4) Upon successful creation of your new user, click 'Manager Roles' link from the left hand side bar
    5) Click Search. You should then see a list of available roles for your service.
    6) Select 'database Database Developer' from the list of available roles, and then click Assign.
    7) In the Grant Role popup dialog, and click Search.
    8) From the list of available users, select the new user you created in step 3 above. You'll now have a new Database Developer, whose credentials can be used in the creation of a Cloud Connection in SQL Developer.
    Now in SQL Developer, ensure that your new Cloud Connection uses the following settings:
    Database Username: <enter name of user created in step 3 above OR enter your Service Administrator name>
    Database URL: <copy the "Service Home" URL from your 'Welcome to Oracle Cloud' email, and paste it here> e.g.      https://database-trial_name.oraclecloudapps.com/apex/
    SFTP Username: <enter name of your SFTP user, which you'll find on the Overview page in MyServices> ** you should have already reset the password for this user via Identity Console
    SFTP Hostname: <enter the SFTP host name, which you'll find on the Overview page in MyServices>
    SFTP Port: 22
    When you attempt to connect to that new Cloud Connection, enter the username/password combo for the user you defined in 'Database Username' of the connection properties. My tests are on Windows 32-bit, and I've experienced no issues connecting using either my Service Administrator or Database Developer login credentials. So I'd be interested to find out whether you're running on 64-bit, which could potentially explain why you're seeing different results. Apologies if the above is overkill, but I figured it was worthwhile outlining the information for other interested parties viewing this thread too.
    Regards,
    Hilary

  • TNS connection in Oracle SQL Developer

    We have been using TNS connections in SQL Developer. Today we moved a database to a new server but still used the same TNS alias in tnsname.ora file for the database. However, the tns connections in SQL Developer shows this alias still points to the old database host server, therefore unable to connect. There is only one tnsnames.ora file on my PC and I have TNS_ADMIN set up to point to it. But it seems to me SQL Developer does not read this altered alias, but used some kind of "cached" alias which points to the old host. If I add a new alias in tnsnames.ora file, it reads correctly. But it does not refresh an existing alias.
    So how is this "Network Alias" dropdown list populated? Even after I delete tnsnames.ora file, the drop down list still not changed. How do I reinitialize this list?

    Hi,
    You should try and search SQLDeveloper help for TNS, that would give you some clues.
    The list for selecting a network alias is initially filled from the tnsnames.ora file on your system, if that file exists.
    Connections are stored in IDEConnections.xml.
    Regards
    Peter

  • How to connect database using oracle SQL developer

    Hello
    I am newbie in EBS R12
    I downloaded Oracle SQL Developer
    and create new database conenction
    Connection name: ebs demo db connection
    username:
    password:
    Role: Default
    Connection type: Basic
    Hostname: ebstailin.demo.com
    Port: 1521
    SID: clone
    when i try this there is an error
    Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
    no idea about this
    but i used the apps/apps as username and password
    please help
    thanks
    Edited by: cheesewizz on Jul 16, 2010 11:35 PM

    Hello
    Thanks for your reply
    I tried to connect and here is the result: see below
    [oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CONNECT apps/apps
    Connected.
    SQL>
    But still cannot connect using ORACLE SQL Developer
    thanks

  • Oracle SQL Developer does not browse Sybase's objects

    I had installed and configured jtds-1.2.5.jar in Oracle SQL Developer for Sysbase connection. Oracle SQL Developer does not browse any objects. Why? Can you please provide a solution?

    Hi,
    Can you provide some more information into what you are experiencing.
    What version of SQL Developer are you using?
    Did you install the jtds jar under the
    Tools > Preferences > Database > Third Party JDBC Driver
    Is the Sybase tab available in the new connection dialog?
    Did you select the default database in the connection dialog?
    Can you run a query against the Sybase database from the SQL Developer worksheet?
    Note that JTDS 1.2 is the only supported version. There maybe issues with other versions.
    Regards,
    Dermot.
    SQL Developer Team

  • How to conect to the Oracle 10 g Exp Edition from Oracle SQL Developer Tool

    Hi all,
    i have installed Oracle 10 g Exp Edition in my stand alone system(no internet connected to the system).
    I want to connect through Oracle SQL Developer tool.
    Can any one please tell me the steps involved in "how to connect to the Oracle 10 g Exp Edition from Oracle SQL Developer Tool ".
    Thanks in Advance.

    Creating a Database Connection
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/sqldev3.0_GS/sqldev3.0_GS.htm

  • Oracle SQL Developer Tool Error:

    Hi,
    i have installled Oracle 11g in Win2003 Server. When create new connection in Oracle SQL Developer its throwing following error
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor. The Connection Descriptor used by the client was localhost:1521/orcl
    listener.ora:
    # This is a sample listener.ora that contains the NET8 parameters that are
    # needed to connect to an HS Agent
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4odbc)
    (ORACLE_HOME=E:\app\XXXXX\product\11.2.0\dbhome_1)
    (PROGRAM=dg4odbc)
    #CONNECT_TIMEOUT_LISTENER = 0
    can any one help me ASAP.
    Thanks!

    933663 wrote:
    Hi,
    tnsnames.ora
    %s_gtwSID% =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=%s_gtwSID%))
    (HS=OK)
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 13-JUL-2012 17:46:51
    Uptime 0 days 0 hr. 29 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File e:\app\XXXXXXX\diag\tnslsnr\YYYYYYYY\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mysystemname)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.mysystemname" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.mysystemname" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thanks!you listener port on 1522 , but on your tnsnames.ora on 1521
    Check your hostname on listener and tnsnames.ora
    after do this changes please reload the listener
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding

  • Accessing MySQL InnoDB tables via JDBC using Oracle SQL Developer

    I had posted a problem in the Oracle SQL Developer forum with how that application (v1.1) accesses MySQL InnoDB tables and someone replied that the "[data migration] team created the integration with MySQL", so I am posting here in hopes of learning more about the problem.
    Here's a summary:
    When I use Oracle SQL Developer to query MySQL InnoDB tables, I need to issue a "commit" before I do each query to ensure that I am getting current results. Otherwise, it appears to be using a snapshot as-of the last commit. Is this a problem with SQL Developer, or a JDBC configuration, or MySQL problem even?
    The full details are here:
    Re: MySQL InnoDB tables

    Hi,
    I've posted a response to your original thread.
    Regards,
    Dermot.

  • Oracle SQL Developer Connection Help

    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!

    933874 wrote:
    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!If you have SQL Developer installed & need to connect to some Oracle DB,
    then you do NOT need Oracle client.
    FWIW - SQL Developer is written in Java & uses JDBC (thin) to connect to the DB
    Is the DB Server on a subnet local to your system?

Maybe you are looking for