SQL Developer - database connect problem

Hello
Just wanted to give SQL Developer a try, downloaded it, unzipped and pointed at Java SDK's java.exe.
It started, I created a TNS connection and successfully passed test. But when I try to connect to database - it errors with following
java.lang.ArithmeticException: / by zero
     at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:1233)
     at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:100)
     at oracle.jdbc.driver.T4CCallableStatement.<init>(T4CCallableStatement.java:27)
     at oracle.jdbc.driver.T4CDriverExtension.allocateCallableStatement(T4CDriverExtension.java:88)
     at oracle.jdbc.driver.PhysicalConnection.prepareCall(PhysicalConnection.java:3135)
     at oracle.jdbc.driver.PhysicalConnection.prepareCall(PhysicalConnection.java:3090)
     at oracle.dbtools.db.DBUtil.executeReturnOneCol(DBUtil.java:275)
     at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:137)
     at oracle.dbtools.raptor.InitializeConnectionListener$1.run(InitializeConnectionListener.java:85)
I googled for this error and found nothing suitable
Other development tools including SQL Plus connect an run fine.
I have 10g client, and I connect to 9.2.0.6 database. My OS is Vista Business SP1, so I though it might be UAC issue and tried running as both standard user and administrator, also allowed java.exe and sqldeveloper.exe through firewall. Nothing helped :(
Any settings and ideas that might help will be appreciated.
Thanks for help
Edited by: user8082464 on Apr 27, 2009 12:25 AM

Duplicate post in SQL Developer - database connect problem

Similar Messages

  • SQL Developer - Database connection problem

    Hi all,
    I had SQL Developer 1.5.4 with JDK, when connect to database with connection type TNS,
    test connection successfully, but when I try to open tables; here the error that I got:
    java.lang.NullPointerException
         at oracle.javatools.db.ora.BaseOracleDatabase.getCurrentSchema(BaseOracleDatabase.java:163)
         at oracle.javatools.db.ora.OracleDatabaseImpl.hasRole(OracleDatabaseImpl.java:247)
         at oracle.javatools.db.ora.OracleDatabaseImpl.reconnected(OracleDatabaseImpl.java:119)
         at oracle.javatools.db.ddl.DDLDatabase.<init>(DDLDatabase.java:53)
         at oracle.javatools.db.dictionary.DictionaryDatabase.<init>(DictionaryDatabase.java:57)
         at oracle.javatools.db.ora.BaseOracleDatabase.<init>(BaseOracleDatabase.java:130)
         at oracle.javatools.db.ora.OracleDatabaseImpl.<init>(OracleDatabaseImpl.java:109)
         at oracle.javatools.db.ora.Oracle8.<init>(Oracle8.java:17)
         at oracle.javatools.db.ora.Oracle8i.<init>(Oracle8i.java:38)
         at oracle.javatools.db.ora.Oracle9i.<init>(Oracle9i.java:181)
         at oracle.javatools.db.ora.Oracle9iR2.<init>(Oracle9iR2.java:41)
         at oracle.javatools.db.ora.Oracle10g.<init>(Oracle10g.java:26)
         at oracle.javatools.db.ora.Oracle10gR2.<init>(Oracle10gR2.java:18)
         at oracle.javatools.db.ora.OracleDatabaseFactory.createDatabaseImpl(OracleDatabaseFactory.java:112)
         at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:147)
         at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:130)
         at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:637)
         at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:564)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:1119)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:631)
         at java.lang.Thread.run(Thread.java:595)
    Any help would be appreciated.
    Thanks
    Michael

    It has nothing to do with the user and privilige thing.
    I think maybe it is a jdk problem.
    Maybe you can check the jdk version you are using.
    Goog luck.

  • Oracle-sql developer database connection problem

    hi all,
    i tried creating a new connection in SQL developer but unable to create.
    i tried with all the combinations such as
    connection name:hr_orcl
    username:hr
    password:hr
    connection tyrpe:basic,Role:default
    hostname:localhost/ip address of my system
    port:1521
    SID:xe/orcl
    But still it is hsowing as " network adapter could not establish the connection".
    So could anybody please help me in this regard as to how to resolve this issue as I have searched several sites but could not find a solution for this.Waiting for your reply at the earliest
    Thanks,
    Rajesh P.
    9949254433

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\rajesh>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-DEC-2012 08:21
    :08
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 28-DEC-2012 08:20:36
    Uptime 0 days 0 hr. 0 min. 31 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
    og\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rajesh-PC)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Users\rajesh>

  • Error in SQL Developer: Database Connections has no JNDI context so cannot

    Hello,
    I have installed SQL Developer 3.1.07 version on Linux. Previously I was able to create a connection and browse the existing tables, add tables, etc.
    Now when I launch SQL Developer, I see that no connections are displayed. Instead there are these three messages indicating an error. Can you please advice on how to resolve this?
    Thanks,
    Errors:
    SEVERE     44     0     oracle.jdeveloper.db.DatabaseConnections     DatabaseConnections has no JNDI context so cannot list connections.
    SEVERE     43     36     oracle.jdevimpl.db.adapter.DefaultContextWrapper     Failed to create naming Context for db connections at url: file:/home/user/.sqldeveloper/system3.1.07.42/o.jdeveloper.db.connection.11.1.1.4.37.59.48/connections.xml
    SEVERE     42     0     oracle.jdevimpl.db.adapter.DefaultContextWrapper     Failed to create naming Context for db connections at url: file:/home/user/.sqldeveloper/system3.1.07.42/o.jdeveloper.db.connection.11.1.1.4.37.59.48/connections.xml

    Hi uparthas,
    Here is a similar thread (Windows 7) marked as answered, and may be applicable to a Linux environment if you are using jdk1.7 rather than jdk1.6:
    Lost my connections.
    If that does not solve the issue, you might also wish to ...
    1. Exit SQL Developer
    2. Delete or rename the /home/user/.sqldeveloper/system3.1.07.42 directory
    3. Launch SQL Developer, perhaps without choosing to migrate settings from a prior install.
    Hope this helps,
    Gary
    SQL Developer Team

  • JSTL - SQL Server Database Connectivity problem

    Hi All
    I am trying to implement DB connection using JSTL sql tag using the following code :-
    <c:set value="jdbc:sqlserver://localhost;databaseName=Studentreg;user=sa;password=pass" var="URL"/>
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="${URL}" user="sa" password="pass" var="stc"/>
    But I am getting the error :-
    exception
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    But when I am trying to implement the same using the jdbc-odbc driver It work fine. This is the code:-
    <sql:setDataSource driver="sun.jdbc.odbc.JdbcOdbcDriver" url="jdbc:odbc:dsn_name" user="sa" password="pass" var="stc"/>
    Please help me in this regards
    Thanks in Advance
    Sulfikkar

    java.sql.SQLException: No suitable driverMeans that it can not find the JDBC driver in the classpath.
    Make sure your Database driver is in your WEB-INF/lib directory, or [TOMCAT]/common/lib directory (or equivalent)
    Cheers,
    evnafets

  • How to use sql developer to connect informix

    hi, everyone,i want to use sql developer to connect to informix database.
    i have added the informix jdbc driver,but when i create a new connection,i can't find the informix database.
    does it not support informix?
    please help.
    Edited by: 917391 on 2012-2-27 下午7:10

    SQL developer supports (as listed in the release notes: http://www.oracle.com/technetwork/developer-tools/sql-developer/sqldev31-ea-relnotes-487612.html) only these foreign databases:
    Third Party Databases
    SQL Developer supports IBM DB2 UDB LUW , Microsoft SQL Server and Microsoft Access, MySQL, Sybase Adaptive Server and Teradata.

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • SQL Developer-Cannot Connect

    Hi, I have the same problem as the person who posted the question
    The history is i already have oracle 10g express edition installed on my system but with it I cannot create tables or execute DML or DDL commands so I downloaded SQL developer .
    When it came to the connection I wanted to fill in the Hostname , Port and SID in that order it gave me that same error "The network adapter could not establish connection ", and to fill in those spaces I used the link I saw when opening the Human Resources schema in the express edition(The schema came in the express edition and I used it to learn the SELECT statement). so i tried to use that address and it came in this format :- http://127.0.0.1:8080/apex/f?p=4500:1000:3171371893604961
    And since SQL told me to fill those parameters as Hostname:Port:SID I felt the use of the last 3 digits i.e 4500:1000:3171371893604961 would have worked but that is what is giving me the error.
    I would appreciate the help. Thank you

    This post has been branched off from and refers to
    SQL Developer-Cannot Connect
    @user 867945,
    Please do not resurrect long dead threads.
    It is poor forum etiquette.
    Post your own new inquiry so that anyone that responds is answering YOU.
    Feel free to provide a reference link to any discussion, anywhere, that may be somehow similar.

  • SQL Developer not Connecting to Oracle after Updating java

    Hi,
    I am using Oracle 11gR1. Windows XPsp2 OS. Earlier Sql Developer was connecting successfully to Oracle , but when i updated my java Runtime to 'Update 17' (Of version 6), I am getting problem...Something like vendor problem error(tried to connect many times, also restarted system...but same problem persisted).
    BUT, at this time when i am writing this problem, I though to check again that problem and get that actual error message....but surprisingly now that error is resolved automatically as if something magic has happened...
    I am continuously connected to internet for last 5 hours.
    SO, WHAT WAS THE PROBLEM , AND HOW IT IS RESOLVED AUTOMATICALLY?

    Hi ,
    once again the same problem. Again i am not able to connect to Sql Developer environment. My JRE is updated to update 18, since then again i am facing the same problem.what could be the possible solution?
    The exact error message is "An error was encountered performing the request operation:Io exception:The network Adapter could not establish the connection vendor code 17002"
    Thanks
    Edited by: user12222356 on Apr 2, 2010 5:39 AM
    Edited by: user12222356 on Apr 2, 2010 5:42 AM

  • Production and Development Database Connections

    Within JDeveloper I have created a database connection to a DEVELOPMENT database and am exposing PL/SQL packages in the development database as web services.
    I can develop and test successfully the exposed packages as web services, and can deploy and run them to a standalone OC4J container on my local machine.
    I then handover the generated EAR file to the production team who deploy the EAR as a web service to the Oc4j container in a remote 9i Application Server.
    This runs successfully from 9iAS.
    So far so good.
    If I have the same PL/SQL package in a live database and development database, but only have access to the development database, how can I expose the package in the live database?
    Can I have a database connection in JDeveloper with a connection name pointing to the development database connection, and have a connection defined in 9iAS with the same name pointing to the live database?
    Any information will be useful.
    Thanks,
    Claire.

    Per the J2EE "roles" definition this is a deployment role todo.
    I.E. the theory is; take a 3rd party ear, depoyee with your appserver vendor's
    deployment tool, edit the data-sources.xml imbeded in the ear on the fly, as
    deployment happens.
    Bake to reality-
    OC4J 903 is intended to be used with OEM for the J2EE spec'ed role of deployer. I'm
    headed this way, but not started the 903/OEM todo.
    Today, OC4J 902 and 902 Jdev, I deploy to a local instance of OC4J. I take that
    ear to production. I've written procedural instructions on poping open the ear and
    editing the data-sources.xml for the DB connection URL and possible login/passwords.
    BTW all your AppModule configurations will have to use data-sources DB connections else
    you'll have DB connection info littered in your bc4j.xcfg's for each AM deeper in your war's.
    I'd like to hear how this is supposed to work from some other folks? :)
    Good luck,
    curt

  • Database connection problem when i try store the values in JTable

    Hi Sir,
    I have a database connection problem when i try to store the data's in a JTable.I think the problem is with in the database connection.I have used 3 vectors here.The database which i have used is
    Access.Where the program is compiling well.But when i run it only the first column heading is printed and error message showing that
    "Invalid Cursor State".I need to solve this problem.pls. do help me.
    I will provide u with the code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    public class DataBaseVector extends JPanel
    //Container contentPane=getContentPane();
    JScrollBar jsb = new JScrollBar(JScrollBar.HORIZONTAL);
    JScrollBar jsb1 = new JScrollBar(JScrollBar.VERTICAL);
    Image i1;
    String url="jdbc:odbc:Ananth";
    Vector col=new Vector();
    Vector rows=new Vector();
    Vector rdata=new Vector();
    Connection conn;
    public DataBaseVector()
    //super("JTable With ScrollBars");
    this.setLayout(new BorderLayout());
    UIManager.put("ScrollBar.track",Color.red);
    UIManager.put("ScrollBar.thumb",Color.blue);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn=DriverManager.getConnection(url); // Is there any problem here?
    Statement st=conn.createStatement();
    ResultSet rs=st.executeQuery("Select * from AccountMaster");
    // rs is the result set obtained
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
    for(int i=1;i<=cols;i++)
    col.addElement(rsmd.getColumnName(i));
    rdata.addElement(rs.getString(i));
    rows.addElement(rdata);
    }catch(Exception e)
         System.out.println("The Error Message was:"+e.getMessage());
    JTable jt=new JTable(rows,col);
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp=new JScrollPane(jt,v,h);
    this.add(jsp,BorderLayout.CENTER);
    this.add(jsb, BorderLayout.SOUTH);
    this.add(jsb1, BorderLayout.EAST);
    public static void main(String args[])
    JFrame jf=new JFrame();
    JPanel frame=new DataBaseVector();
    jf.getContentPane().add(frame);
    jf.setSize(800,600);
    jf.setVisible(true);
    Thanx,
    m.ananthu

    The problem is ResultSet.next() is not called.
    Try this and modify the table creation as you need.
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
         while(rs.next()) {
              for(int i=1;i<=cols;i++)
                        col.addElement(rsmd.getColumnName(i));
                        rdata.addElement(rs.getString(i));
              rows.addElement(rdata);
    Hope this helps

  • SQL Developer (Cloud connections) to Cart not working

    I follow the QBE execise along with Oracle Public Cloud. Why nothing happend when I drag/drop tables in SQL Developer (Cloud connections) to Cart?

    Can reproduce same issue in 11gR1.. DIFF works fine in 10gR2.
    I noticed that 10gR2 allows something like:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    and 11GR2 returns error similar to error SQLNAVIGATOR returns while running diff:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    end;
    Error report:
    ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 8424
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 9484
    ORA-06512: at "SYS.DBMS_METADATA", line 3950
    Its safe to assume that this is SQLDEVELOPER bug. Hope it will be addressed sometime.
    Edited by: user5420304 on Jun 15, 2010 10:29 AM

  • I suspect work of SQL Developer after connect

    what want about work of SQL Developer after connect ?
    Thank you very much

    Not really my area, and not really a SQL Developer question, but it's using a standard Java SQL connection in this case.
    If you do not supply the DNS suffix (perhaps as a suffix to the host or service name), then it must get it from somewhere, probably some OS configuration. For example, on Win XP, I see this from a Cmd console window...
    ipconfig /all
    Windows IP Configuration
            Host Name . . . . . . . . . . . . : <myhostname>
            Primary Dns Suffix  . . . . . . . : us.oracle.com
            Node Type . . . . . . . . . . . . : Hybrid
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
            DNS Suffix Search List. . . . . . : us.oracle.com
    ...Hope that helps (and corrections welcome),
    Gary

  • Problem in sql developer while connecting to oracle 11g

    when am creating a database connection with oracle 11g in sql developer editor it s throwing network adapter could not establish the connection
    connection name test
    user name system
    password system
    Role default
    Host name localhost
    Port 1521
    SID orcl
    Can any one help me to resolve the problem?
    Thanks in advance

    Those parameters probably aren't correct.
    Is that 11g on your machine? Try to specify the real IP instead. And sure the listener is up?
    Also sure about the SID and port?
    Hope that helps,
    K.

  • Database Connection Problem-SQL SERVER 2005

    Dear all,
    I have been struggling with this database connection.I have installed sql server 2005 in my PC and i am trying to connect to the Database Adventity.But it is showing port 1432 invalid.I have placed sqljdbc jar in my lib folder.If i dont specify Database name then it will print hi Message..if i specify Database name then the error will come.
    MY CODE is::
    <%@page import="java.sql.*,java.io.*,java.lang.*,java.util.*,java.util.Vector,bean.*" %>
    <%
              Connection con;
              Statement stmt;
              String url= "jdbc:sqlserver://156.0.11.140:1433/Adventity";
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              con = DriverManager.getConnection(url,"sa","hcl@123");
              stmt = con.createStatement();     
              out.println("hi");
    %>
    THE ERROR IS:
    javax.servlet.ServletException: The port number 1433/Adventity is not valid.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.adv1_jsp._jspService(adv1_jsp.java:66)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    PLEASE HELP ME TO GET RID OUT FROM THIS PROBLEM.
    THANKS IN ADVANCE.

    hi
    i have given what u said and it is not working but it displays blank page.even i tried to getdate..
    pls help me
    <%@page import="java.sql.*,java.io.*,java.lang.*,java.util.*,java.util.Vector,bean.*" %>
    <%
              Connection con;
              Statement stmt;
              try
              String url= "jdbc:sqlserver://156.0.11.140:1433;databaseName=test";
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              con = DriverManager.getConnection(url,"sa","hcl@123");
              stmt = con.createStatement();
              String user="select getdate();"
              System.out.println(user);
         catch (Exception e) {
                   out.println(e.toString());
              } finally {
                   try {
                   } catch (Exception e) {
                        e.printStackTrace()     ;
    %>

Maybe you are looking for

  • Where can I get a "servletrunner" from?

    Hi all, I am looking at ways to get an applet that is served by many servers to talk to a servlet at a specific server however to run a servlet at that server I need "servletrunner". Most docs say that I should find it in /bin directory, but for the

  • Qosmio X500-10T - Where can I get it?

    I can't not find the Qosmio X500 10T anywhere in the UK. No on-line retailers stock it, no local shops stock it. The Toshiba website doesn't even have a link for sale. Anyone heard of any stock updates, or has the USA had all of the 1st off the produ

  • Adobe acrobat 8 pro download for mac

    I just got a new Mac and my old Mac had Adobe Acrobat 8 Pro installed on it and I use it for work and I don't a newer version for what I do and I would rather not pay for an upgrade.  Is there a free download somewhere of Adobe Acrobat 8 Pro or can I

  • LF official support, Lenovo G780 defect

    Hello everyone.  Writing here in desperation since I don't know where to turn to. I'm angry, desperate and disappointed.  Some time in september I bought a Lenovo G780 i5-3230M laptop. After a while there were problems, mainly the fact that the scree

  • Color management for web and print.

    Hi there.  I would like to post my images and have them print ready for clients.  When I read about both of these I find one thing for web and one thing for print. I don't want to edit them twice. What would you suggest for easiest workflow?  I like