Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unable to connect sqlstate=s1000 [oracle] [odbc] [ora]ORA-12514 TNS:listener does not currently know

rachna pandyaFeb 28 2014 — edited Feb 28 2014

we are doing project on intranet mailing system.front end is net beans 7.1 and back end tool is oracle 11g. when we doing jdbc odbc connection then we find this error.

code:

  try

       {

            String A,B,un,pass,dept;

    

          

            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

             con=DriverManager.getConnection("Jdbc:Odbc:adm","system","test");                 //we think because of this connection we get this error

            st=con.createStatement();

            ps=con.prepareStatement("select * from bookup where branch=? and semester=?");

         

            ps.setString(1,s1);

            ps.setString(2,s2);

           

      // out.print(s1);

       // out.print(s2);

            rs=ps.executeQuery();

           while(rs.next())

please help us for this issue

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2014
Added on Feb 28 2014
3 comments
3,101 views