Error Connecting to Oracle 9i Database

Ok I have a semi large program and a part of it connects to an Oracle 9i databse. I am using Visual Age for Java IDE and I am getting an error of
"java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00917: missing comma"
Of course the prog compiles but something is wrong with the my connectivity/
Below is my code listed below for jsut the Class that opens the Database Connection if you need further information please respond back
Thanks
p
//Code Below//
package musicmatch_library_test;
import java.io.*;
import java.util.*;
import java.sql.*;
public class SQLOutput
     private BufferedReader inFile;
     private PrintWriter sqlStream;
     private GUI g = Main.getGUIInstance();
     private FileChange fc = Main.getFileChangeInstance();
     private String url;
     protected ArrayList driveAL = new ArrayList();
     protected ArrayList folderAL = new ArrayList();
     protected ArrayList genreAL = new ArrayList();
     protected ArrayList artistAL = new ArrayList();
     protected ArrayList composerAL = new ArrayList();
     protected ArrayList albumTitleAL = new ArrayList();
     protected ArrayList trackNumAL = new ArrayList();
     protected ArrayList songTitleAL = new ArrayList();
* SQLOutput constructor comment.
public SQLOutput()
     super();
* Insert the method's description here.
* Creation date: (2/20/2003 8:28:50 PM)
public void writeSQLFile()
     url = "jdbc:odbc:mainDb";
     String insert = "insert into LibraryInfo ";
     String begColNames = "(artistname, cdtitle, songtitle,track genre) values (";
     String endColNames = ");";
     try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");          //load DB driver
          Connection con = DriverManager.getConnection(url,"fake", "fake"); //create DB connection
          Statement stmt = con.createStatement();                    //create instance of connection to run DB commands
                                                                           //instance of an active connection to create a Statement object
          sqlStream = new PrintWriter (new FileWriter(g.returnOpenOrSave().getParent().toString()+"/sqlWrite.txt"));
          //inFile = new BufferedReader(new FileReader(g.returnOpenOrSave()));
          //String line = inFile.readLine();
          int c =0;
          while(c!=songTitleAL.size())
               sqlStream.println(insert + begColNames+artistAL.get(c) + ','+ albumTitleAL.get(c) + ',' + songTitleAL.get(c) +',' + trackNumAL.get(c) +',' + genreAL.get(c) + endColNames);
               stmt.executeUpdate(insert + begColNames+artistAL.get(c) + ','+ albumTitleAL.get(c) + ',' + songTitleAL.get(c) +',' + trackNumAL.get(c) +',' + genreAL.get(c) + endColNames);
               //line = inFile.readLine();
               c++;
          }//end for
          //inFile.close();
          //g.returnSavedFileName().delete();          //delete saved file
          sqlStream.close();
          con.close();
          stmt.close();          
     catch(FileNotFoundException e)
          System.out.println("cant read input file");
     catch(IOException e)
          System.out.println("file error #2");
     catch(ClassNotFoundException e)
          System.out.println(e);
     catch(SQLException e)
          System.out.println(e);

i don't think its your connection. You must be hitting the DB otherwise you would not be getting an ORA error returned wrapped in an SQLException. I think its your pseudo-SQL, it simply says that you are missing a comma in an update string. Realistically, it could be that it is being misled into looking for a comma, probably because you have put a ';' at the end of your update string...

Similar Messages

  • Error connecting to Oracle 11g Database

    Hi All
    I am testing .NET connectivity to Oracle 11g and I am not successful for a while.
    I've tried to connect to database using library included in Oracle 10.2.0.3 Client and as a result I've got "invalid username or password" error. Then I've tried to use ORAC 11.1.0.5.10beta. I successfully connected to the server, but when I try to exec any query my program hangs.
    Both of them work correctly with Oracle 9i database.
    Also I've tried Microsoft .NET provider and it connects and executes queries fine (though 3 times slower).
    How do you think what is reason or how can I find the reason?

    Hi All
    I am testing .NET connectivity to Oracle 11g and I am not successful for a while.
    I've tried to connect to database using library included in Oracle 10.2.0.3 Client and as a result I've got "invalid username or password" error. Then I've tried to use ORAC 11.1.0.5.10beta. I successfully connected to the server, but when I try to exec any query my program hangs.
    Both of them work correctly with Oracle 9i database.
    Also I've tried Microsoft .NET provider and it connects and executes queries fine (though 3 times slower).
    How do you think what is reason or how can I find the reason?

  • Installing JDBC driver to connect to Oracle 8i Database from Weblogic 10.3

    I want to connect to Oracle 8i database from weblogic 10.3 application server. I found a classes12. zip file on Oracle.com to use as driver for the same.
    I am also connecting Oracle 9i database from the app server. Now if i replace the classes12. jar from the lib folder won't it disallow me to connect to the Oracle 9i database.
    2ndly the claases12.zip file i found from the site is for jdk 1.2 will it create any problems. Please let me know
    Kindly let me know what is the standard procedure to install a new driver in Weblogic 10.3.

    I tried to install weblogic 10.3 using jdk 1.5.07 but. it is not supported. Moreover from the sites also i found that it's only the application wars and ears compiled in jdk 1.5 need not be recompiled in 1.6. But no reference of jdk 1.5 is there.
    I tried to use thin client from the code and connect to Oracle 7i
    i got the following exception.
    java.lang.ArrayIndexOutOfBoundsException: 4
    at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:465)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:329)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    490)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.omantel.finacc.DAO.DatabaseConnection.getUBCCConnection(DatabaseC
    onnection.java:372)
    at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:411)
    at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <Apr 22, 2009 3:36:47 PM GMT+04:00> <Error> <HTTP> <BEA-101017> <[weblogic.servl
    et.internal.WebAppServletContext@553afb - appName: 'DMA', name: '/DMA', context-
    path: '/DMA', spec-version: 'null'] Root cause of ServletException.
    com.omantel.finacc.exception.AppException: 4
    at com.omantel.finacc.exception.ExceptionHandler.handleException(Excepti
    onHandler.java:43)
    at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:428)
    at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.lang.ArrayIndexOutOfBoundsException: 4
    at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:465)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:329)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    490)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.omantel.finacc.DAO.DatabaseConnection.getUBCCConnection(DatabaseC
    onnection.java:372)
    at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:411)
    at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >

  • How we build Java Database Connectivity for Oracle 8i Database

    Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
    it will be a grat help
    Thanks & Regards
    Rasika

    You don't need a DSN if you use Oracle's JDBC driver.
    You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
    Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
    import java.sql.*;
    import java.util.*;
    * Command line app that allows a user to connect with a database and
    * execute any valid SQL against it
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        public static final String DEFAULT_DRIVER   = "com.mysql.jdbc.Driver";
        public static final String DEFAULT_URL      = "jdbc:mysql://localhost:3306/hibernate";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    System.out.println("sql     : " + sql);
                    System.out.println("driver  : " + driver);
                    System.out.println("url     : " + url);
                    System.out.println("username: " + username);
                    System.out.println("password: " + password);
                    db = new DataConnection(driver, url, username, password);
                    System.out.println("Connection established");
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Get Driver properties
         * @param database URL
         * @return list of driver properties
         * @throws SQLException if the query fails
        public List getDriverProperties(final String url)
            throws SQLException
            List driverProperties   = new ArrayList();
            Driver driver           = DriverManager.getDriver(url);
            if (driver != null)
                DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
                if (info != null)
                    driverProperties    = Arrays.asList(info);
            return driverProperties;
         * Clean up the connection
        public void close()
            close(this.connection);
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue;
            Statement statement = null;
            ResultSet rs = null;
            try
                statement = this.connection.createStatement();
                boolean hasResultSet    = statement.execute(sql);
                if (hasResultSet)
                    rs                      = statement.getResultSet();
                    ResultSetMetaData meta  = rs.getMetaData();
                    int numColumns          = meta.getColumnCount();
                    List rows               = new ArrayList();
                    while (rs.next())
                        Map thisRow = new LinkedHashMap();
                        for (int i = 1; i <= numColumns; ++i)
                            String columnName   = meta.getColumnName(i);
                            Object value        = rs.getObject(columnName);
                            thisRow.put(columnName, value);
                        rows.add(thisRow);
                    returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            finally
                close(rs);
                close(statement);
            return returnValue;
         * Close a database connection
         * @param connection to close
        public static final void close(Connection connection)
            try
                if (connection != null)
                    connection.close();
                    connection = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a statement
         * @param statement to close
        public static final void close(Statement statement)
            try
                if (statement != null)
                    statement.close();
                    statement = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a result set
         * @param rs to close
        public static final void close(ResultSet rs)
            try
                if (rs != null)
                    rs.close();
                    rs = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a database connection and statement
         * @param connection to close
         * @param statement to close
        public static final void close(Connection connection, Statement statement)
            close(statement);
            close(connection);
         * Close a database connection, statement, and result set
         * @param connection to close
         * @param statement to close
         * @param rs to close
        public static final void close(Connection connection,
                                       Statement statement,
                                       ResultSet rs)
            close(rs);
            close(statement);
            close(connection);
    }%

  • Unable to connect to Oracle Applications database (afscpgcs) after clone

    Hi,
    I have just moved (clone using rapidclone) two of our 11.5.10.2 install from a solaris SPARC 8 to 10 . After the clone, while discoverer 10g works perfectly well in one environment, it is giving the error below in the another environment.
    - Failed to connect to database - Unable to connect to Oracle Applications database (afscpgcs)
    Notes:
    1. For the 2 environments, nothing as changed apart from the hostnames.
    2. The password has not changed on both - from source to targets.
    3. This happens when launching discoverer 10g from Apps.... discoverer works well on it own if not launched from apps.
    I raised a SR with oracle and the 2 things they said have not worked. they said
    1. change signon password case parameter - but I cannot find that in the list of system parameters on our system.
    2. The other note says apply patch 6430269 and I can confirm this patch has been on the system for sometime.
    Please advise on this if you have come accross this before and you can help here.
    Thanks

    Thanks for your concern. I have used the notes you listed but no luck. One thing I have to point out here is that I have always cloned from solaris 8 to 8 for years without this problem. Now I am cloning from solaris 8 to 10 and the problems is on just one environment. The other is working well. The problem seems to be related to the apps password but the password has not changed at all. Also, I have tried to change the password to something else and ran autoconfig but no luck. Please help

  • Unable to connect to Oracle Applications database invalid username/password

    Hi,
    Ou Requirement is we want to connect to Oracle Applications using discoverer plus and discoverer viewer.
    Application Server used : 10.1.2.0.2
    Oracle Applications : R12 RUP4
    We have installed application server 10g with OID and when we try to connect to oracle applications we are getting
    A connection error has occurred.
    - Failed to connect to database - Unable to connect to Oracle Applications database: invalid username/password.
    Regards
    Ketan

    Hi,
    I think better to check with your sysadmin or DBA on this, I had the same isuse before but Apps 11i with Discoverer, I talked to ERP sysadmin and worked fine.
    Since applications userid cannot talk with Discoverer schema (eul10_us) and it should directly talk with APPS user and then APPS user can talk with Discoverer user.
    To the best of my knowledge I provided.
    --skat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem connecting with Oracle 9i Database

    Hi Gurus,
    I'm having problems with connecting to Oracle 9i Database.
    I have a newly installed XML Publisher running on Windows XP SP3.
    I can't get my data source connected to other server running Oracle Database 9i.
    It keep on saying "Could not establish connection"
    Im using jdbc:oracle:thin:@host:port:sid format , username/password are correct.
    What seems to be the problem?
    Hoping for your help.
    Thanks

    Hi Steve,
    Let me clarify. I had an Oracle XML Publisher installed in my laptop (Windows XP SP3). I want to configure my XML Publisher to connect to a server
    where Oracle Database is installed (Oracle 9i DB). I can connect to this database using SQL Plus, SQL Developer. My problem is that after configuring the JDBC connection in XML Publisher, i still can't connect to the said oracle db. The info are correct SID, Hostname etc. and still can't connect.
    Hope this clarifies the situation.
    Thanks

  • Failover not working while connecting to Oracle 11g database

    Hi,
    We have a J2EE application that connects to Oracle 11g database.
    The connection URL we are using is as below
    jdbc:oracle:thin:@(DESCRIPTION =(SDU=32768)(ADDRESS=(PROTOCOL=TCP)(HOST=abc.hostname.com)(PORT=1525))(ADDRESS=(PROTOCOL=TCP)(HOST= xyz.hostname.com)(PORT=1525))(CONNECT_DATA=(SERVICE_NAME=PQR)))
    The issue that we are facing is, the database failover is not working.The application only connects to the first host in the TNS entry.Evertime there is a failure in the connection to the first host,manual steps are required to swap the hosts.
    This started happening after we upgraded Oracle DB from 9i to 11g.
    We are using the client jar of 9i to connect to 11g. Could this be causing the problem?
    Thanks In Advance.
    -Tara

    889517 wrote:
    Yes, you are right. Nothing else was updated.
    The application still works as expected except the failover.If you are correct then I seriously doubt it has anything to do with java. It would be something to do with Oracle and/or network infrastructure.
    If not then it is some small problem with the driver. You can try updating the driver but I wouldn't expect a fix.

  • Which version of SQL*Plus can connect to Oracle 8i Database?

    Which version of SQL*Plus can connect to Oracle 8i Database?
    I would like to know which version of SQL*Plus can connect to Oracle 8i Database?
    Where can I download it?
    (I have tried SQL*Plus version 11 and the program said it does not support the connection to Oracle 8i Database)
    Thank you very much!

    By the way, what's your 8i database release version
    SQL> select * from v$version;
    Any SQL*Plus of 8i can connect to 8i Database.
    Only SQL*Plus of 9.0.1 can connect to 8.1.7 and 8.1.6 Database
    Only SQL*Plus of 10.1.0/10.2.0 can connect to 8.1.7 Database
    Absolutely NO SQL*Plus of 11g can connect 8i databases
    Regards,
    Sabdar Syed,

  • Forms 6i is not connecting with Oracle 11g database?

    Forms 6i is not connecting with Oracle 11g database?
    How to resolve this issue?

    Hi,
    Once you installed the Forms and Reports, you need to configure the paramters like tnsnames.ora in you path.
    There will be one folder in the Installation path of Forms and Reports search for tnsnames.ora file..and you need to Updated the file as per the which ORACLE Server you are connecting and then try.. it..
    Default path for forms will be "ORACLE_HOME/net80/admin".. search for tnsnames.ora and modify it..
    - Pavan Kumar N

  • Oracle 6i Forms can't connect to Oracle XE Database(Linux)

    What is the problem, I can't connect my Oracle 6i Forms to Oracle XE Database that installed on Linux(Fedora Core 4/Ubuntu 6.06), but no problem when I try to connect to Oracle XE Database that installed on Windows.
    Thanks,

    See this thread, seem me interesting
    Re: Trouble to start Oracle XE listener
    on forms 10g it's work:
    using Database XE and Forms 10g
    and see too:
    http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html
    http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm
    http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html
    Regards

  • How to connect from Oracle 9i database on windows to sap database (orcle 8)

    Hi,
    I really need expert advice from anyone..I wud like to connect my Oracle 9i database running on windows platforms to SAP database (oracle 8) running on Unix platform.
    Is there any special code to establish the connectivity...or we can simply use the ORacle net services(tnsnames.ora) file to connect to the SAP database??
    I wud really appreciate any expert comments on this.
    Thank you
    Ratheesh

    Hi Ratheesh
    If you are able to create an ODBC connection from the Windows Oracle server to the SAP database then you can use Oracle Heterogeneous Services to query the SAP database from Oracle through a DB link. To configure Heterogeneous Services is quite easy. You put an entry into the SID_LIST_LISTENER part of the listener.ora file:
    (sid_desc=
          (sid_name=hsql)                    
          (oracle_home=C:\oracle\ora92)
          (program=hsodbc)                    
        )  Then create an entry in your tnsnames.ora file to connect to your new listener service:
    apmacnew =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = tcp)(HOST = cntrra20-lab20)(PORT = 1527))
        (CONNECT_DATA =
          (Service_name = apmacnew)
        (HS = ok)
      )And lastly create a database link using the tnsnames entry.

  • *Crystal Reports 2008 connection to oracle 11g database error IM003*

    Hi ,
    I am getting the following error when connecting to Oracle 11 g database using Crystal Reports 2008.
    _Logon Failed:Details: IM003:Specified driver could not be loaded due to system error 127 ( Oracle in OraClient11g).
    Datebase Vendor Code:160.
    The Login and Pw that I am using are correct.
    *Could you please let me know any steps that i need to do to resolve this problem.
    Thanks!*

    Hello,
    I haven't seen that error in years... There was a version of Oracles client that did not put the client install into the PATH statement.
    Add the Oracle ...\Bin folder to your System Environment variables and then it should work.
    Thank you
    Don

  • ** 911 ** Cannot connect to oracle 9i database No suitable Driver

    All:
    Any help rendered would be appreciated. (jdk 1.4.2_06, Tomcat 4.0,
    Oracle DB 9i Windows XP)
    I have a web app (Jasper report tool) and I cannot connect to a Oracle 9i database.
    1)error received: "Apr 2, 2007 2:05:15 PM com.entDB.Enterprise_db connectToDatabase SEVERE: Function connectToDatabase() - Cannot load the driver, reason:java.sql.SQLException: No suitable driverCheck classpath for driver java.sql.SQLException: No suitable driver
    2)CLASSPATH SETTING = C:\tomcat\common\lib\ojdbc14.jar
    3)Source code:
    protected boolean connectToDatabase() {
    try {
    // I tried this !!! Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("URL,USER,PASSWORD ");
    return true;
    }catch (SQLException e) {
    logger.error("Function connectToDatabase() - Cannot load the driver, reason:" + e.toString() + "Check classpath for driver ", e);
    return false;
    4.I placed a copy of the jar file in TOMCAT common lib, and server lib.
    I have tried various solutions listed at different web sites without success. Has anyone had similiar problems? Can anyone assist?
    thanks ......
    ******* Confused *********

    I used 911 because It is an emergency for me (I am
    under a deadline) . You might want to read this: Urgent Questions
    URL, PASSWORD, USER are strings
    declared in another section of code.Yes, but in the code you posted the variable names are all inside double quotes?

  • Error connecting to Oracle on Red Hat 7.2 with WL 7.0

    I able not able to connect to Oracle on Red Hat 7.2. I have tried both 9.0.1 and 9.2.0.
    I am able to use a very similar configuration and W2k and it works.
    Here is the situation:
    I have installed Weblogic 7.0.0.1 on Redhat 7.2. It works fine in generic form.
    I have also installed Oracle 9.2.0 client files. I have verified connectivity with
    a remote database using the Oracle tnsping tool. I have modified the startWLS.sh
    file so that the oci901_8 libraries are used by Weblogic. I have added the following
    line to startWeblogic.sh:
    ------ BEGIN code snippet ---
    # --- Setup Oracle ---
    LD_LIBRARY_PATH=${ORACLE_HOME}/lib
    POST_PATH=${WL_HOME}/server/bin/oci901_8:${ORACLE_HOME}/bin:
    ------ END code snippet ---
    My config.xml file has this entry (which works on NT)
    ---------- BEGIN config.xml snippet ------------
    <JDBCConnectionPool DriverName="weblogic.jdbc.oci.Driver"
    Name="wamiPool-Oracle"
    Properties="user=bomb;password=wami;server=WAMI_DB"
    Targets="myserver" TestTableName="Country" URL="jdbc:weblogic:oracle"/>
    --------- END config.xml snippet ------------
    On startup I get this error:
    ------- BEGIN Error -----------------
    ####<Jul 11, 2002 8:20:08 PM GMT> <Error> <JDBC> <appbox> <myserver> <Thread-1> <kernel
    identity> <> <001060> <Cannot startup connection pool "wamiPool-Oracle" weblogic.common.ResourceException:
    weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 -
    (bomb/********@WAMI_DB)
    at weblogic.db.oci.OciConnection.getLDAException(Compiled Code)@b8dbe80
    at weblogic.jdbc.oci.Driver.connect(Compiled Code)@b8d7910
    ---------- END ERROR -------
    I have also tried using the Weblogic dbping utility. When I use this I get this
    error:
    ---------- BEING ERROR from dbping ------
    Starting Loading jDriver/Oracle .....
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4d6b88a1
    Function name=snauca_check_adapter
    Library=/opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
    Current Java thread:
    at weblogic.db.oci.OciConnection.native_loginwithblock(Native Method)
    at weblogic.db.oci.OciConnection.login(OciConnection.java:190)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:126)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:175)
    ---------- END ERROR -------
    Any ideas?
    David

    Hi David,
    The driver for 9.2.0 is not yet out. You may want to use the thin driver.
    You can also request this driver by filling a support case.
    sree
    "David Kinsfather" <[email protected]> wrote in message
    news:[email protected]...
    >
    ORACLE_HOME is set to
    ORACLE_HOME=/opt/oracle/product/9.2.0
    and LD_LIBRARY_PATH is set to
    LD_LIBRARY_PATH=${ORACLE_HOME}/lib
    These are same values I used for the tnsping which does work.
    Any other ideas?
    Joseph Weinstein <[email protected]> wrote:
    David Kinsfather wrote:
    I able not able to connect to Oracle on Red Hat 7.2. I have tried both9.0.1 and 9.2.0.
    I am able to use a very similar configuration and W2k and it works.
    Here is the situation:
    I have installed Weblogic 7.0.0.1 on Redhat 7.2. It works fine in
    generic
    form.
    I have also installed Oracle 9.2.0 client files. I have verified
    connectivity
    with
    a remote database using the Oracle tnsping tool. I have modified thestartWLS.sh
    file so that the oci901_8 libraries are used by Weblogic. I have addedthe following
    line to startWeblogic.sh:
    ------ BEGIN code snippet ---
    # --- Setup Oracle ---
    LD_LIBRARY_PATH=${ORACLE_HOME}/lib
    POST_PATH=${WL_HOME}/server/bin/oci901_8:${ORACLE_HOME}/bin:
    ------ END code snippet ---
    My config.xml file has this entry (which works on NT)
    ---------- BEGIN config.xml snippet ------------
    <JDBCConnectionPool DriverName="weblogic.jdbc.oci.Driver"
    Name="wamiPool-Oracle"
    Properties="user=bomb;password=wami;server=WAMI_DB"
    Targets="myserver" TestTableName="Country"
    URL="jdbc:weblogic:oracle"/>
    --------- END config.xml snippet ------------
    On startup I get this error:
    ------- BEGIN Error -----------------
    ####<Jul 11, 2002 8:20:08 PM GMT> <Error> <JDBC> <appbox> <myserver><Thread-1>
    <kernel
    identity> <> <001060> <Cannot startup connection pool "wamiPool-Oracle"weblogic.common.ResourceException:
    weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Error while trying to retrieve text for error
    ORA-24327
    (bomb/********@WAMI_DB)This usually means that the environment variable ORACLE_HOME is not set,
    or set incorrectly.
    at weblogic.db.oci.OciConnection.getLDAException(Compiled
    Code)@b8dbe80
    at weblogic.jdbc.oci.Driver.connect(Compiled Code)@b8d7910
    ---------- END ERROR -------
    I have also tried using the Weblogic dbping utility. When I use thisI get this
    error:
    ---------- BEING ERROR from dbping ------
    Starting Loading jDriver/Oracle .....
    An unexpected exception has been detected in native code outside the
    VM.
    Unexpected Signal : 11 occurred at PC=0x4d6b88a1
    Function name=snauca_check_adapter
    Library=/opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
    Current Java thread:
    at weblogic.db.oci.OciConnection.native_loginwithblock(NativeMethod)
    at weblogic.db.oci.OciConnection.login(OciConnection.java:190)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:126)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:175)
    ---------- END ERROR -------
    Any ideas?
    David

Maybe you are looking for

  • TS1398 unalbe to get ipad to connect to the internet after ios upgrade

    helppppppppppp i had my it guy from work upgrade me to ios 7 i believe but since then ive not been able to get my ipad to conect to the itunes store or even connect to the internet now my it guy says tht it is beyond his skill level and i should take

  • FT Legal control license locked status

    When creating legal control licenses using VX01N the license type is configured with certain items to check such as ECCN number, customer number or destination country. Within those records is a status that shows a lock. The lock is either unlocked m

  • Integrating Flash with Lectora 2006

    Dear all, Does anyone know how I can create a variable in Flash AS 2.0 that can communicate with a SCORM wrapped Lectora course on an LMS (the Flash movie would be within the course as an external HTML object)? Also, how do I do the reverse and creat

  • Printing addresses for day planner

    Hi, I want to print out an address book for my filofax address book and I am having a hard time figuring out how to do it. The program that filofax makes does not run on a mac. any suggestions? I would like it doublesided and I want to be able to pri

  • Wi-fii problem on Iphone 4s

    I have Iphone 4s. I have installed IOS 8.02 and all was working well until this morning. When I woke up this morning, I noticed my wi-fii on Iphone 4s wasn't working. The wi-fii icon doesn't show. I try to go on Settings, Wi-Fi for my surprise, it's