JDBC connection refused error ...oracle 8i

Dearest Java Programmer!
i am getting an error while using JDBC to connect to oracle8i, my program is simple connection testing using type1 driver .. every thing is perfect as far as the program is concerned, it is compiled successfully.
but while executing it is raising some exception(error message followed).
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle
on SQL_HANDLE_ENV failed
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
23)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at OracleODBCConnection.main(OracleODBCConnection.java:9)
so please help in rectifying this error.
thanku

Dearest Java Programmer!
i am getting an error while using JDBC to connect to oracle8i, my program is simple connection testing using type1 driver .. every thing is perfect as far as the program is concerned, it is compiled successfully.
but while executing it is raising some exception(error message followed).
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle
on SQL_HANDLE_ENV failed
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
23)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at OracleODBCConnection.main(OracleODBCConnection.java:9)
so please help in rectifying this error.
thanku

Similar Messages

  • JNDI Connection refused error

    HI
    I am new to Java so please excuse my stupid questions and general lack of ignorance. I am trying to connect to an Oracle database using JNDI to retrieve a Datasource using a 'data-source.xml' file but I get a 'Connection refused' error I am at a total loss at what this can be, I just have a simple Java Class which gets an InitialContext then does a lookup from here but this is were it fails.
    Could anybody give me any idea as to where to look. Could it be a problem with the JNDI server itself?. I'm using JDeveloper 10.1.3 and am just trying to run it in the embedded server.
    Sorry for the general rambling nature of this post and please ask me to provide any extra information required.
    Any help would be much appreciated as I'm going nowhere with this at the moment and very frustrated as have searched everywhere with no results.
    Thanks
    Andy

    Hi
    Thanks for the reply. I have checked my data-sources.xml and this all seems fine. I can even connect to the DB using DriverManager rather than the JNDI method. One thing that confuses me is which data-sources.xml it is using as there appear to be many. In JDeveloper you can specify the data sources in 'embeeded oc4j preferences' plus create your own under meta-inf. Which is being used when run in embedded, maybe thats obvious the first one?
    thanks once again

  • Connection Refused Error In Connection Client

    Hello Geeks
    I am runnig a RMI application in which runs on internet , i have setup RMI server on a host server and it is running there.
    Now, when i try to call client using ip address of the Host , i am getting Connection Refused error.
    Example :
    Registry registry=LocateRegistry.getRegistry("70.33.246.110");
    System.out.println("Above connectMe");
    String  serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);
    System.out.println("Below connectMe");
    boolean log=stub.login(username,password,1);
    System.out.println("Below login");Here "connectuser" is name i have given in server to which client lookups.I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.
    Please Help Me Out.....ASAp
    Edited by: Hardik.Mishra on Oct 3, 2009 5:46 PM

    Registry registry=LocateRegistry.getRegistry("70.33.246.110");There's no point to doing that ...
    System.out.println("Above connectMe");
    String serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);... if you're doing that. The getRegistry() doesn't do a network operation, it just constructs a stub to that Registry locally. Only by using it would you find out whether it meant anything: and you're not using it.
    I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.See item A.1 on the RMI Frequently Asked Questions list in the Javadoc.

  • Connection refused error showing in ironport s170 - WSA

    Connection refused error showing in ironport s170 -  WSA
    I am getting “Connection refused” error while I connect ironport s170 through console cable. also i am not able to connect it through HTTP and SSH. Complete output is given below.
    Last login: Thu Sep 11 07:16:59 on cuad0
    Copyright (c) 2001-2011, Cisco Systems, Inc.
    AsyncOS 7.5.2 for Web build 303
    Welcome to the Cisco IronPort S170 Web Security Appliance
    Traceback (most recent call last):
      File "/usr/build/iproot/ap/ipoe/ipoe/bootstrap.py", line 55, in <module>
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 128, in _run_module_as_
    main
        "__main__", fname, loader, pkg_name)
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 34, in _run_code
        exec code in run_globals
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/cli.py", line 426, in <modul
    e>
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 212, in initialize
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 118, in _setup_old_authentication
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 674
    , in quick_read_var
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 133
    , in connect
    Commandment.CommunicationError: <host name>: Network communication error
    : Connection refused
    AsyncOS <host name> (cuad0)
    login:

    Hi,
    You can upgrade to 7.7+ but if you require a root cause analysis I suggest you to open a TAC case.
    Regards,
    Luis Silva

  • RDS Server : Connection refused error

    Hi All,
        I am using flash builder 4.
       When i try to connect rds from DataServices - > Connect to LCDS it throws a connection refused error.
       I have uncommented the rds in web.xml and set the useappSecurity to false.
       Can any body please help me get rid of this issue.
       I am still using a trial version. Does this have any impact.
       Any help is highly appreciated !!!!!!!!!!!!!!!!!!!!!!!
    Thanks

    I have the same problem.

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Connection refused error while connecting to port.

    Hello,
    I have a service (Connect Direct) listening at port 1364 in server X.
    $ netstat -an | grep 1364
    11.22.33.44.1364 *.* 0 0 0 0 LISTEN
    (Assume 11.22.33.44 = Server X's IP.)
    Now, when another server (say Y) tries to use this service in server X, it is getting "Connection Refused" error. I tried telneting.
    From Y:
    telnet 11.22.33.44 23 is working
    telnet 11.22.33.44 1364 is giving the same Connection Refused error.
    telnet 11.22.33.44 1364
    Trying 11.22.33.44...
    telnet: Unable to connect to remote host: Connection refused
    /usr/sbin/ping 11.22.33.44
    11.22.33.44 is alive
    To complicate things, 11.22.33.44 is not the original IP of server X.
    ifconfig -a gives:
    hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
    inet 11.22.33.55 netmask ffffff00 broadcast 11.22.33.255
    hme0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 11.22.33.44 netmask ffffff00 broadcast 11.22.33.255
    (in additional to a couple of other IPs).
    What could be the problem?
    Help!!!!

    IPF firewalling could cause this, if you have it enabled.
    I havent used it, so I'm not entirely sure how to check.
    Of another firewall if its between the 2 machines. Are they on the same subnet?

  • Connection refused error running JSP on Jdev 10.1.3.0.3.3412 with MySL 5.0

    Hello,
    I'm using Jdeveloper 10.1.3.0.3.3412 on a Mac with a MySQL database. In Jdeveloper i can make a connection to the database and create adf business components
    I've made a JSP page with ADF on a single table. No errors when compiling. When I try to run the JSP Page using Embedded OC4J (on Mac OSX Tiger) I get the error:
    5/12/09 00:45:50 java.net.ConnectException: Connection refused
    05/12/09 00:45:50      at java.net.PlainSocketImpl.socketConnect(Native Method)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    05/12/09 00:45:50      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428)
    05/12/09 00:45:50      at java.net.Socket.connect(Socket.java:507)
    05/12/09 00:45:50      at java.net.Socket.connect(Socket.java:457)
    05/12/09 00:45:50      at java.net.Socket.<init>(Socket.java:365)
    05/12/09 00:45:50      at java.net.Socket.<init>(Socket.java:207)
    05/12/09 00:45:50      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    05/12/09 00:45:50      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1041)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:927)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:98)
    05/12/09 00:45:50      at java.lang.Thread.run(Thread.java:613)
    What am I doing wrong? The embedded OC4J library is added to the project. I've tried to use the javac compiler. It looks like the OC4J instance cannot make a connection to the db.
    Thanks,
    Martin

    Hello
    I've added the connection to the web.xml, but still get the same error.
    When I go to embedded OC4J preferences and change the JNDI-names of the datasources (global and current-workspace) to the same name (this was default), i get this error message:
    9-dec-2005 9:30:09 com.evermind.server.ApplicationStateRunning initNativeDataSource
    SEVERE: Error creating native data source. The location 'jdbc/MySQLConnectionCoreDS' is already in use.
    05/12/09 09:30:09 Application: current-workspace-app is in state FAILED
    05/12/09 09:30:09 Error instantiating application 'current-workspace-app' at file:/Users/martinsuijs/jdevhome/mywork/myWorldApp/myWorldApp-oc4j-app.xml: Error creating native data source. The location 'jdbc/MySQLConnectionCoreDS' is already in use.
    05/12/09 09:30:14 java.net.ConnectException: Connection refused
    grtz
    Martin

  • Connection Refused Error!! Please help to resolve

    I am using Oracle 9i in Windows 2000. I have created a new db called DTSDB. And I have used the following program for getting connection
    code:
    package com.example; import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;      public class ConnectionPool{          public ConnectionPool(){}          public Connection getConnection(){          Connection con = null;          try{               Class.forName("oracle.jdbc.driver.OracleDriver");                         con = DriverManager.getConnection("jdbc:oracle:thin:@mike-dm210ghop:1521:DTSDB","scott","tiger");                              System.out.println("con ::##############"+con);          }catch(SQLException e){               e.printStackTrace();          }catch(Exception e){               e.printStackTrace();          }          return con;     }      public static void main(String[] args) {          System.out.println(new ConnectionPool().getConnection());     }     }
    Error I am getting:
    code:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12537)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=507)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 109: Unknown error'))))     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)     at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)     at java.sql.DriverManager.getConnection(Unknown Source)     at java.sql.DriverManager.getConnection(Unknown Source)     at com.example.ConnectionPool.getConnection(ConnectionPool.java:17)     at com.example.ConnectionPool.main(ConnectionPool.java:28)null
    I have also tried to create a connection thru ODBC and given the DSN name as "reg" and username and password and I am getting the error as
    TNS:listener could not start a dedicated server error
    My tnsnames.ora File
    ====================
    code:
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora# Generated by Oracle configuration tools. DTSDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DTSDB) ) ) INST1_HTTP = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = MODOSE) (PRESENTATION = http://HRService) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE) ) )
    My listener.ora File:
    ======================
    code:
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora# Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\ora92) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = ORACLE) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = ORACLE) ) (SID_DESC = (GLOBAL_DBNAME = DTSDB) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = DTSDB) ) )
    PLease help to reolve my problem

    Did you started the Oracle Net Listener for your database instance ?
    Can you connect with SQL*Plus to your database instance ?
    If no, what are the errors message do you get ?
    Did you have a look to the Oracle Net Services Administrator's Guide relevant section.

  • Web Services/BPEL - Connection Refused Error

    I am getting the following error while invoking this web service (in JDev 10.1.2) from Oracle BPEL console...
    faultSubcode: faultString: java.net.ConnectException: Connection refused: ..............
    Did anyone face the same error...pleaseeee help!!!

    where is your web service deployed?

  • Connection Refused Error while running AS ABAP Initial Load

    All,
    I've never connected SAP NW IdM to an actual SAP system before, and I feel like I'm missing some obvious step of configuration, but I can't figure out what.
    We are in the process of trying provision user accounts to our SAP ABAP systems. My first step was to try to read all of the existing accounts from the ABAP system:
    Our Basis team created me a Communication user with the proper authorizations (I ensured that the authorizations included in SAP_BC_SEC_IDM_COMMUNICATION)
    I created a repository using the SAP NewWeaver AS ABAP (Specific Application Server) Repository Template (No CUA, No SNC) using that user's credentials
    I then used the Job Wizard and used the job template AS ABAP - Initial Load, specifying my repository above.
    When I run the job I get the following:
    Initializing SAP connection with parameters:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server failed Connect_PM MSHOST=<IPADDRESS>, R3NAME=<SID>, GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR partner not reached (host <IPADDRESS>, service sapms<SID>) TIME Wed Jun 01 13:54:36 201 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8840 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1
    Error Init failed
    I'm running SAP NW IdM 7.1 SP5 on Windows Server 2003 with MSSQL 2005. The ABAP server is on a UNIX box with an Oracle 10.2 dB.
    Is there additional configuration that needs to take place on the ABAP side to accept the connection?
    I've tried to find documentation on this, but have been unsuccessful. If someone could point me to the correct documents, or at least point me in the right direction for troubleshooting, it would be greatly appreciated.

    Ankur,
    Looks like the endpoint URL of the webservice is not updated and still pointing to the localhost. Try changing it to http://<ip_addres_of_your_server>:7101..... and see if it works fine then.
    -Arun

  • Io exception: Connection refused Error

    I am trying to configure a connection pool on Weblogic 8.1 using Oracle thin client.
    When I click on the Test Driver configuration, I get the following error:
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    I have verified that the username/url are correct.
    Any ideas?

    Sreeram wrote:
    I am not sure how to run utils.dbping.Try this:
    C:\> java utils.dbping
    It will print out a usage message.
    Anyway, I am able to connect to the database using SQLPlus. I have the following
    entry in my tnsnames ora:
    dbalias.world=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server.xx.com)(PORT = 1521))
    (CONNECT_DATA =
    (service_name = dbname)
    )Ok, and how did you define the pool? What were the properties and URL?
    Did your URL contain 'dbname' as the SID, or did you set the SID in the properties?
    show me the pool definition and show me how you start SQL-PLUS.
    Joe
    Thanks!
    Joe Weinstein <[email protected]> wrote:
    Sreeram wrote:
    I am trying to configure a connection pool on Weblogic 8.1 using Oraclethin client.
    When I click on the Test Driver configuration, I get the followingerror:
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    I have verified that the username/url are correct.The SID is probably wrong. What does utils.dbping show?
    Joe
    Any ideas?

  • RMI: connection refused error while invoking remote method from client mac.

    Hi All,
    when i run client program, which is calling remote object from other system, it shows the below error.
    please help me solving this issue, i also have policy file and installed security manager.
    Exception in Cliendjava.rmi.ConnectException: Connection refused to host: 10.66.
    112.137; nested exception is:
    java.net.ConnectException: Connection refused: connect
    thanks in advance.
    Regards,
    Anand.

    See item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].

  • Connection refused Error while writing file to FTP server.

    Hi All,
    We got below error while writing file to FTP server. Any one have any idea on this?
    sABCS_1.0_8e88588d4fb54ebd2ac7ef66c8421d52.tmp/writeEncryptedFile.wsdl [ Put_ptt::Put(opaque) ] - Could not invoke operation 'Put' against the 'FTP Adapter' due to:
    ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server. [Caused by: Connection refused]
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.

    Hmmm ...
    Same issue as your post from three months' earlier?
    Re: Error while putting file in sftp location.

  • Xorg won't start - gives Connection Refused error

    I'm trying to use Xorg, I have it configured with Xorg -configure and all that, but when dtlogin tries to start it reports these errors in it's logfile:
    XIO: fatal IO errors 146 (Connection Refused) on X server ":0.0"^M
    (the ^M is part of the message as well)
    Any ideas?

    Hi Reasons,
    Your problem seems to appear atfer loading the libglx module:
    (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
    Maybe you're having this issue described in nouveau's wiki: http://nouveau.freedesktop.org/wiki/InstallNouveau
    9. Now start Xorg and run for cover. If you used the the nvidia blob before, the X server may possibly not start because NVIDIA overwrites the libglx.so which the X server provides with it's proprietary libglx.so. If that happens, install the X server package from your distribution again to resetore the original libglx.so and make a backup copy of it in case you install the blob again.

Maybe you are looking for

  • Win32 exception in FormDesigner.exe error when inserting a table

    I'm trying to insert a simple table on a document but every time I try I get a pop-up that "Adobe LiveCycle Designer ES has encountered a problem and needs to close." When I looked into it a bit further it appears to be an issue of "an unhandled win3

  • TAS not defaulted in sales order

    This is a third-party order. In spro, i haved configured as following: Order type "TA" + item cat Group "BANS" + Usage (blank) + High level (blank) = DfItC "TAS", MItCa "TAN", MItCa "TANN", MtCa "TAW" Questions: 1. TAN iso TAS was defaulted when sale

  • Error Joining Airport Network

    My new Mac will not go online at home - although it will join other networks elsewhere. There are 3 other Macs online at home and when I set up my new mac I transferred all the settings over so surely they should be the same and therefore able to acc

  • Audio levels low in final cut pro 5

    my levells seem low in final cut, tho the master fader of the audio mixer is set to its default zero. I know they are low too because i made omf files from my time line having boosted the levels, which still had to be boosted considerably in the fina

  • Error class cannot be loaded (oracle.xml.xsql.ViewObject)?

    Hallo, i want to use oracle.xml.xsql.ViewObject and i become the error class cannot be loaded in xsql action. What can it be? Any help is appreciated