Error while connecting to Oracle db using jdbc

When I try to execute a java class which has to access data in
the Oracle db using Jdbc connection, get an error --
Appln- pathname/filename is attempting to call the OCI function
(opinit) this function does not exist in ORA72.DLL.
Exit this appln ? Yes or No
Both oracle db & java are on the same PC.Would like to know what
can be done to rectify this.
Thanks.
null

The OCI driver 7.3 requires the 7.3 OCI to be installed (this is
part of the client required support files or RSF). The particular
call in question wasn't added to the OCI untill 7.3 so it
wouldn't exist in the 7.2 OCI library.
null

Similar Messages

  • JDBC: Error while connecting to MS SQL using JDBC adapter

    Hi All,
    Does anybody know what the error below mean and how to resolve it:
    - 2007-04-10 14:10:26 PDT: Processing started
    - 2007-04-10 14:05:57 PDT: Error: Accessing database connection 'jdbc:sqlserver://DBServer:1433;DatabaseName=name' failed: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://DBServer:1433;DatabaseName=name' : com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.UnknownHostException:
    Thx
    Navin

    Hi,
    Looks like it cannot connect to the database because the host or port number is not correct.
    Verify if DBServer is valid.  Can you ping it from XI server?  You may also have to verify the port number of the database instance using the administrator tool.
    Regards,
    Bill

  • I am getting error while connecting to sqlplus by using apps account in 11i

    i am getting error while connecting to sqlplus by using apps account in 11i. Does anyone has similar error.
    [applmgr@appsc05t01 admin]$ sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 14:34:52 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: apps
    ERROR:
    ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
    Enter user-name:
    Thanks
    Rao

    yes.
    login as: gorantla
    [email protected]'s password:
    Last login: Mon Sep 13 14:39:23 2010 from glng3wy9g1.actuant.pri
    [gorantla@appsc05t01 ~]$ sudo su - applmgr
    [applmgr@appsc05t01 ~]$ ora_setup
    Available databases:
    x = ATUXX
    y = ATUYY
    z = ATUZZ
    Select database: \c
    y
    ORACLE_SID=ATUYY
    IAS_ORACLE_HOME=/apps/ATUYY/atuyyora/iAS
    ORACLE_HOME=/apps/ATUYY/atuyyora/8.0.6
    APPL_TOP=/apps/ATUYY/atuyyappl
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$ tnsping ATUYY
    TNS Ping Utility for Linux: Version 8.0.6.3.0 - Production on 13-SEP-2010 15:42:32
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=dbrac05t01-vip.actuant.pri)(PORT=1611))
    OK (0 msec)
    [applmgr@appsc05t01 ~]$ sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 15:42:40 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: apps
    ERROR:
    ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
    Enter user-name:
    Thanks
    Rao

  • Error While Connecting to Oracle

    Hi All,
    While Connecting to Oracle through jdbc thin driver, following error is displayed. Please help me in resolving the same.
    <b>SQL Exception:
    State  : null
    Message: Io exception: The Network Adapter could not establish the connection
    Error  : 17002</b>

    hi,
    Any or all of the following conditions may also apply:
    1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.
    2) You are able to establish a JDBC OCI connection, but not a Thin
       connection from the same client to the same Oracle instance.
    3) The same JDBC application is able to connect from a different
       client to the same Oracle instance.
    4) The same behavior applies whether the initial JDBC connection
       string specifies a hostname or an IP address.
    Go thru the foll url
    http://www.websina.com/bugzero/kb/oracle-connection.html
    wbr,
    KK

  • Error with Connection to Oracle with Wallet , JDBC, and UNIX

    Hello - our application has been getting this error periodically while connecting to an oracle database using OCI JDBC drivers.
    caused by: java.sql.SQLException: ORA-28759: failure to open file
    at oracle.jdbc.driver.DatabaseError.throwsSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:681)
    at oracle.jdbc.driver.T2CConennection.logon(T2CConnection.java :362)
    at oracle.jdbc.driver.PhysicalConnection.<init>
    at oracle.jdbc.driver.T2CConnection.<init>
    at oracle.jdbc.driver.T2CDriverExtension.getConnection
    at oracle.jdbc.driver.OracleDriver.connect
    at java.sql.DriverManager.getConnection
    at java.sql.DriverManager.getConnection
    Once we get this error we keep getting it and are unable to get a connection until we restart it. the file it has the issue with is the cwallet.sso, which I figured out by turning on tracing. The file is there and it gets the connection originally - but for some reason periodically we lose access to that file. But when we get the error the file is there and when we restart the process it's perfectly fine.
    The only way we have been able to replicate this error is by create a sameple JAVA app which just keeps opening connections to the database with the wallet without closing the connections. Everytime we hit the 50th connection that error appears and it's unable to get another connection. If we close the connections everytime it's alright.
    It's not a limit on the amount of connections to oracle because we have no limit set. The best explaination we can find is that unix has some sort of limit on how many concurrent accesses to that file can be done within one process. We have been unable to figure out that limit. We tried playing around with the file descriptor limits to see if it gets more or less then 50, but no luck.
    If anyone has any other suggestions it would be greatly appreciated - we are stuck right now.
    Thanks!

    No suggestions?

  • Error While Restoring the Oracle Database using Cloud Backup

    Hello,
    I have been facing a serious error while oracle restoration. I have Backed up Complete Database. For Testing restoration, the DBA removed all the DBF, logs and Control File from there orignal Position.
    He restarted the Database in "Startup nomount" mode. No i am not able to connect to target database from my Backup Server remotely.
    Whenever i try to restore, it shows following error:-
    ***RMAN-04005: error from target database:***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***"ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    I am using Oracle 11g R2 x64-bit database and on Windows Platform with Windows Server 2008 R2.
    Can Anyone help me by connecting, rman to the remote target database when it is in nomount mode.
    I am not able to connect the sqlplus remotely.\
    Thanks in Advance...
    Regards
    Pravesh Upadhyay

    Devika,
    You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
    If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
    Tip : use the following select to list the session using oaihub902 user (and get rid off them)
    select username, count(*)
    from V$session
    where username in ('OAIHUB902')
    group by username
    order by count(*) desc, username
    JL

  • Error while connecting to Oracle in Linux

    I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.
    Tony
    null

    I wrote a JAVA program to test the connection with
    Oracle. It worked in NT environment, but it did not
    in Linux Environment. I got the error message: "IO
    exception: The Network Adapter could not establish
    the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection
    n ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id
    d from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There
    must be something wrong in the Linux environment. I
    appreciate your help if someone can give me a little
    advice.
    Tony
    nullDid you ever find an answer to this, I'm having the same problem. My application works under windows, but doesn't under linux.
    Lonnie

  • Error while connecting to Oracle 8 from PI 7.1

    I am trying the connect oracel 8.0 from PI 7.1,
    I am getting following error in communication channel monitoring
    "Exception caught during JDBC adapter processing: java.lang.NullPointerException "
    at the same time I can connect to oracle 10g smoothly without any error.
    Please suggest what would be the reason.
    regards,

    Hi Check this thread
    same problem disueed here & solved
    Error in Sender JDBC communication channel
    Regards
    Abhishek

  • Issue while connecting to Oracle BI using BI Office plugin

    Hi
    I integrated BI Office plugin with OBIEE 11g and while trying to make a connection to it, I am facing the following error:
    Test connection failed.
    http://localhost:7001/bioffice/services/saw?WSDL
    Please, help how to overcome this error.
    Thanks.

    Hi,
    Kindly refer this one,
    http://123obi.com/2011/05/obiee-11g-oracle-bi-add-in-for-microsoft-office/
    Thanks
    Deva

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

  • Connect to oracle 8i using jdbc thin driver

    Hi developers....
    I am a new for java. jdk1.5.1,oracle 8i these are installed in my system.those are working well.Now i want to connect oracle database using Thindriver.I have no idea to write a code.Any one give an example for me.
    My system name:developer
    java :jdk1.5.1
    oracle :8i
    Thank u
    with reguards
    sure....:)

    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html

  • Could not connect to Oracle 8i using jdbc

    I am running Oracle8i Enterprise Edition Release 8.1.5 on Windows 2000 Server. I try to compile a sample program using JDK 1.3 and getting the following error message.
    Program:
    import java.sql.*;
    class Hotels
    public static void main (String args [])
    throws SQLException
    DriverManager.registerDriver (new oracle.jdbc.Driver.OracleDriver ());
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@chandran", "TRAVEL", "TRAVEL");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select NAME from HOTELS");
    while (rset.next ())
    System.out.println (rset.getString (1));
    rset.close();
    stmt.close();
    conn.close();
    Error Message:
    D:\>javac E:\Javaex\Hotels.java
    E:\Javaex\Hotels.java:10: cannot resolve symbol
    symbol : class OracleDriver
    location: package Driver
    DriverManager.registerDriver (new oracle.jdbc.Driver.OracleDriver ());
    I am New to the JDBC 2.0 and JDK1.3. Could you please anyone guide me how can I overcome this problem. Should you require any additional information please reply me.
    Best regards

    rdbms 8.1.5 never was certified to run on win 2000.
    by the way rdbms 8.1.5 goes out of support on dec 31, 2000.
    in addition, oracle products like - the jdbc drivers, rdbms, oas, ias -- are NOT certified to work with jdk 1.3.
    if you run into problems, you'll need to reproduce it with jdk 1.2.x and rdbms 8.1.6 or 8.1.7 to have a bug filed.
    to be in a supported configuration, you'll need to move to rdbms 8.1.6 or 8.1.7 (preferred) and stick with jdk 1.2.x.

  • Help  connection to oracle db using jdbc

    Hi
    I am trying to connect to a oracle database. I am using Oracle 9 and jsdk 1.4.2. but i keep getting the following error and i dont know what iam doing wrong.
    I have put in my classpath where the orcle drivers are. I have also tried puting the drivers in j2sdk/jre/lib folder (files copied nls_charset12.zip,classes12.zip,ojdbc14.jar). My code compiles and runs but the error i get is
    "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver"
    SAMPLE of my code:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String dataSource = "jdbc:oracle:thin:@devflgdb";
    Connection con = DriverManager.getConnection(dataSource,"babu_s2","babu_s2");

    I am working on the same; here is my servlet code, hope it helps
    private static void loadJDBCDriver ()
    System.out.println ("Loading Database driver...");
    try {
         DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    catch (Exception e) {}
    try {
    DriverManager.registerDriver ( new sun.jdbc.odbc.JdbcOdbcDriver() );
    catch (Exception e2) {
    System.err.println ("loadJDBCDriver: " + e2.toString());
    return;
    System.out.println ("Database driver loaded...");
    private static Connection getConnected () {
    System.out.println ("Establishing database connection...");
    String jdbc_url;
    Connection conn;
    try {
    jdbc_url = "jdbc:oracle:thin:@localhost:1521:oracle";
    conn = DriverManager.getConnection (jdbc_url, "scott", "tiger");
    catch (Exception e) {
    try {
    jdbc_url = "jdbc:odbc:BookNook";
    conn = DriverManager.getConnection (jdbc_url);
    catch (SQLException e2) {
    System.err.println ("getConnected: " + e2.toString() );
    return null;
    System.out.println ("Database connection established ...");
    return conn;

  • Error while connecting to Oracle on Unix

    Hi..
    I m new to JDBC.
    I have written a small code which will connect to the Oracle and select some data to display report.
    On execution its throwing NULL POINTER EXCEPTION on conn.
    I guess the URL tht i hav used is a problem area. But i dont know what to use. I have used oracle_SID.
    Can someone tell me if that is correct url or where should i find correct DSN namein UNIX dir?

    hey thanks....
    actually i have done it using DSN on windows. but i
    really dont know wher should i do it on UNIX. The
    oracle 9i is already installed on this unix box. I
    guess, the DSN name also has been created and exists
    on the same. But i dont know where should i search in
    unix dir to structure to find this DSN name.
    Can someone help me to find existing DSN name on this
    box?
    I believe it should be somewhere in ORACLE_HOME ...
    ???For Unix, if you have ODBC installed, there is an odbc.ini where you need to add the necessary configurations.
    The best way you could do is make use of the Oracle thin driver (type 4).

  • Error while loading data oracle table using xslt

    Hi
    I have an following xml:
    <TRAN TRAN_ID = "12" RCODE = "W"> <STATION>1234567</STATION> </TRAN>
    I have created the following xslt for the above xml:
    <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="TRAN"><xsl:value-of select="@TRAN_ID" /> <xsl:value-of select="@RCODE" /> </xsl:template> </xsl:stylesheet>
    I am trying to insert data into the table Tran having columns tran_id and rcode in oracle database 11g.
    I am getting the following error:
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00210: expected '<' instead of '1'
    ORA-06512: at "SYS.DBMS_XMLSTORE", line 78
    ORA-06512: at "SYS.DBMS_XMLSTORE", line 88
    Can anybody tell me if i am making a mistake in writing the xlst?
    Thanks in advance.

    Thank you for your reply. Currently i am using the insert using xmltable and it works fine. But i would like to use xsl if the dynamic passing of values is possible. Actually i want to store the xsl in a table and call it when needed to insert data to the database table (MSGS). Could you please give me an example of it?
    Here is the table structure i have in database:
    Table Name: Tran_data
    columns: SEQ NUMBER NOT NULL ,
    TRAN_ID VARCHAR2(6) NOT NULL ,
    RCODE VARCHAR2(30) NOT NULL ,
    TRAN_DT DATE NOT NULL ,
    xml_data xmltype
    Table Name : Msgs
    SEQ NUMBER NOT NULL,
    RULE_ID VARCHAR2(200) not null,
    MSG_TXT VARCHAR2(2000) NOT NULL,
    TRAN_DATA_SEQ NUMBER NOT NULL ,
    CREATE_USER VARCHAR2(30) NOT NULL ,
    CREATE_DATE DATE NOT NULL ,
    COMMENTS VARCHAR2(2000)
    In this TRAN_DATA_SEQ is a foreign key and is a mandatory column. I can get the Tran_id and the rcode from xml. but the remaining mandatory columns i need to pass them to the xsl. Below is the xsl. Can you please let me know how to pass value to this the xsl.
    [P]
    xml:
    <RES>
    <Status>'PASS'</Status>
    <Tran_id>1A</Tran_id>
    <Rcode>1BR</Rcode>
    <Msg>
    <Rule_Id>A<Rule_Id>
    <Msg_Text>'CRDT Failed'<Msg_Text>
    </Msg>
    <Msg>
    <Rule_Id>B<Rule_Id>
    <Msg_Text>'MAN Failed'<Msg_Text>
    </Msg>
    </RES>
    [P]
    I need an xsl for this xml to insert tran_id and rcode in tran_data table along with the xml as xml_data and the msg information in msgs table. The seq of tran_data needs to be inserted into the msgs table. Please let me know how this can be achieved using xsl?
    Thanks in advance.

Maybe you are looking for

  • SPA9000 + SPA492 + analogic phone: Cancel Request doesn't work

    Hi all, I'm build up a LVS in the following configuration: SPA9000 + SPA942 + analogic phone on FXS1; PBX connected to LAN with WAN interface and IP phones on the same LAN at all; "Force Media Proxy" parameter = "yes"; "Line 1" in trunk with an ITSP;

  • How to do a Clean Install (Don't preserve users and network settings)

    I'd like to make a clean install of Snow Leopard -- but NOT erasing the whole drive and NOT migrating/preserving my users and network settings. I have a bunch of applications and huge data sets (about 40G) on the boot drive that I don't want to go th

  • EDI 850 PO Cancel

    I am trying to configure EDI 850 Purchase Order Cancel. I would like to get some advice from an expert here if I am on the right track. To do this,  I am using the action segment in E1EDK01-ACTION: '001' reverse entire   document. Will the '001' reve

  • Trying to embed images from my iWeb site

    Sorry if this has been asked before but I did a search and could not find any answers. I upgraded from iLife 06 to 08 and managed to get a seamless transition of my iWeb site. The only problem now is that I seem unable to embed images from my site in

  • How to unlock an ipod without reseting it

    i got an older 8 gb ipod and i cant get the password  it has 1300 songs that i want to keep and what do i do to find the pawwsord?