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

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}

  • 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!

  • 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.

  • Problems when starting with oracle SQL developer

    Hello,
    I am very much new with oracle SQL developer. I use oracle 10g and have a database named 'pallabDB' with username: xxxxxx and paswd:yyyyyy. I have installed oracle SQL developer.But i am unable to start up.What i should do? If any body replies it will be a great help.Thanks in advance.

    But i am unable to
    start up.How to understand this sentence without confusion?
    Can you explain exactly what is your problem at start up of SQL Developer?

  • 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

  • Problem etablishing connection between oracle SQL and JDBC

    Hi friends i have been trying this code from two days i donno whats wrong please try to sort the problem thank u in advance this is my program:
    //This is my Connection class
    package com.java.jdbc.util;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class EmployeeUtil {
         public EmployeeUtil()
         public static Connection getconnection()
              Connection con=null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                   //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                   con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORANT","system","manager");
              // Class.forName("sun.jdbc.odbc.OracleDriver").newInstance();
              // con = DriverManager.getConnection("jdbc:odbc:Javatut","System","manager");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (InstantiationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IllegalAccessException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return con;
    //This is my DB class:
    package com.java.jdbc.DB;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import com.java.jdbc.info.EmployeeInfo;
    import com.java.jdbc.util.EmployeeUtil;
    public class EmployeeDB {
         Connection connection=null;
         public EmployeeDB()
              //this.connection=EmployeeUtil.getconnection();
         public void select(EmployeeInfo empinfo)
              this.connection=EmployeeUtil.getconnection();
              String stb = "select * from employee";
         try {
                   Statement stmt = connection.createStatement();
                   ResultSet rs = stmt.executeQuery(stb);
                   System.out.println(rs);
                   //EmployeeInfo empinfo = new EmployeeInfo();
                   while(rs.next())
                        empinfo.setEmpId(rs.getString(1));
                        empinfo.setEmpfName(rs.getString(2));
                        empinfo.setEmplName(rs.getString(3));
                        empinfo.setEmpAge(rs.getString(4));
                        empinfo.setEmpSalary(rs.getString(5));
                        System.out.println("The EmployeeID is : "+empinfo.getEmpfName());
                        System.out.println("The Employee First Name is : "+empinfo.getEmpfName());
                        System.out.println("The Employee Last Name is : "+empinfo.getEmplName());
                        System.out.println("The Employee Age is : "+empinfo.getEmpAge());
                        System.out.println("The Employee Salary is : "+empinfo.getEmpSalary());
                   connection.commit();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    //This is my info object
    package com.java.jdbc.info;
    public class EmployeeInfo {
         private String empId;
         private String empfName;
         private String emplName;
         private String empAge;
         private String empSalary;
         public String getEmpAge() {
              return empAge;
         public void setEmpAge(String empAge) {
              this.empAge = empAge;
         public String getEmpfName() {
              return empfName;
         public void setEmpfName(String empfName) {
              this.empfName = empfName;
         public String getEmpId() {
              return empId;
         public void setEmpId(String empId) {
              this.empId = empId;
         public String getEmplName() {
              return emplName;
         public void setEmplName(String emplName) {
              this.emplName = emplName;
         public String getEmpSalary() {
              return empSalary;
         public void setEmpSalary(String empSalary) {
              this.empSalary = empSalary;
    //This is my Controller class:
    package com.java.jdbc.controller;
    import com.java.jdbc.DB.EmployeeDB;
    import com.java.jdbc.info.EmployeeInfo;
    public class EmployeeController {
         public static void main(String args[])
              EmployeeDB empdb = new EmployeeDB();
              EmployeeInfo emp = new EmployeeInfo();
              empdb.select(emp);     
    // I got these errors:
    java.sql.SQLException: Io exception: Got minus one from a read call
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at com.java.jdbc.util.EmployeeUtil.getconnection(EmployeeUtil.java:18)
         at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:20)
         at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)
    Exception in thread "main" java.lang.NullPointerException
         at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:23)
         at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)

    Are you using Oracle 10.2 in shared server configuration under Windows?
    If so it's a driver bug (BUG - Connection pooling with 10g 10.1.3 Preview 4 App Server Oracle suggest to use OCI driver.

  • 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

  • Problems with debugging in Oracle sql developer

    Dear all,
    I have a stored procedure with about 3500 lines of code. The SP is calling some other SP's , so altogether around 30,000 lines of code is to executed.
    I have some delete statements in the beginning of my SP.
    Till nw i was able to debug and run this SP.
    But nw I am facing a strange problem.
    I can run the SP.
    But if i try to debug it , it gets hanged after the delete statement and does not move forward.
    So i moved all that statements to another SP and I call the new SP from my present one.
    In this way If i debug , after calling the newly created SP , my main Sp does not recognise the break points , and it just finishes execution ..
    Can any one help me on this.
    Thanks in Advance,
    Kurian Simon

    Simon,
    Did you move the breakpoint, and once you'd moved the lines of code, did you recompile, using compile for debug? Also, it's important to do compile for debug on all the program units you want to debug, otherwise SQL Developer will just step over the units not compiled for debug.
    Sue

  • 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

  • Pl/SQL Error ORA-00904 not showing in Oracle SQL Developer

    Hi,
    I am new to Oracle and the various development tools available.
    Whilst using Oracle SQL Developer we have come across a scenario where a PL/SQL package does not compile, but only shows warnings in the compiler log.
    The same packeage when compiled using PL/SQL Navigator shows a much more detailed list of errors, and highlights the real problem.
    Why does Oracle SQL Developer not show the following error?
    PL/SQL: ORA-00904: "SERIAL_LINE_ID": invalid identifier
    Regards
    Adrian

    There are various settings you can give to messages. (eg, informational, warning, severe).
    Tools-PL/SQL compiler options.
    Normally, just the first 20 messages are displayed.
    Either change code to get rid of warning messages, or change settings to ignore informational and warning messages.
    P.S. There is a dedicated sqldeveloper forum where your question should really have been posted.
    Edited by: Keith Jamieson on Mar 9, 2009 1:45 PM

Maybe you are looking for