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)
>

Similar Messages

  • How To Connect To Oracle 11g Database From Microsoft Excel

    Hi All,
    I have Windows7 64bit installed in my laptop.
    I have Microsoft Excel 2007 installed.
    I tried connecting to Oracle database ( This is not a local database).
    Navigation used:
    Data> From Other Sources > From Data Connection Wizard > Other/Advanced > Next > Microsoft OLE DB Provider For Oracle > OK
    Now I get a pop up to enter:
    username
    password
    server
    When I enter all the required details I get this error "ORA-06413 CONNECTION NOT OPEN"
    Is there no need to give PORT number?
    Thanks,
    Vishwamber Shetty

    Hi,
    Did you install oracle client on the machine? Can you do "tnsping <SID>"? Can you connect to DB using sqlplus ?
    Try using tnsname for server name.
    Connecting to Microsoft Data Sources Through ODBC Connection  This shows how to connect using ODBC connection. I think this would be more appropriate.

  • Which ojdbc14.jar JDBC driver to use for Oracle 10g database

    When ODI is installed there seems to be an Oralce JDBC driver in place in the drivers folder (ojdbc14.jar).
    When we connect to an Oracle datastore and point to a table and use the 'reverse' function to populate the columns - it sort of works OK but does not bring back the datatypes properly. This is found to be when the Oracle table has UNICODE character datatypes NCHAR and NVARCHAR. If a table has CHAR and VARCHAR it is all OK but any table that has UNICODE datatyoe has a problem.
    Is this likely to be the JDBC driver ?
    We have tried replacing this ojdbc14.jar with the older classes12 and this, as expected, did not resolve the issue.
    We then tried replacing it with the latest 10.2.0.4 ojdbc14.jar but again no difference.
    Does anyone have any experience with Oracle JDBC drivers and what release level to use - and using against UNICODE datatypes in tables ?
    Regards

    Our problem is that when we use 'reverse' to populate the columns from a physicla table in an Oracle database - ODI is obviously 'seeing' the ORacle table and is correctly understanding the columns in the table and defining them in it's model - but wherever there is a column with a datatype in the ORacle database of NCHAR or NVARCHAR it fails to populate the datatype or the 'length' of these columns. If I manually try to specify the datatype these 2 unicode data types do NOT exist in the pull down list of datatypes.
    I see what you are asking - if these datatypes are actually defined as datatypes within the actual technology - I cant access my lab right now but will check as soon as I can. Thanks for the suggestion.

  • Can I use 8.1.7 jdbc driver to connect 8.1.6 database?

    I want to develop a J2EE application. but now I only have 8.1.6 database on hand. Can I use 8.1.7 jdbc driver instead of 8.1.6 driver to implement ConnectionPool feature?

    I am in the same situation...we are currently on Oracle 8.1.6 using a Jdbc 2.0 driver, but would like to go ahead with using an Oracle Jdbc 3.0 driver ...

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI JD

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to establish a connection to Oracle 9I database from Developer Forms

    I've installed the Oracle 9I database in the Windoes NT server with SID = ORA9i. Using the SQL*plus coming with oracle 9I database, I can connect to the database. I've also installed the Developer with Forms 6I and Reports 6I in the same computer. I tried to establish a connection to the Oracle 9I from Developer through "Oracle Net8 Easy Config". After giving the settings, when I do a connection test, it is giving the error "TNS Could not resolve the Service Name".
    the following is the entry in the 'tnsnames.ora' file
    TEST9I.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST = ((PROTOCOL = TCP)(Host = ntserver)(Port = 1521))
    (CONNECT_DATA = (SID = ORA9i))
    Can somebody tell me how to make a connection from Developer (Forms6I and Reports 6I) to Oracle 9I database.
    Thank you.

    hi matz,
    i tried this one too, but it is not working. giving the same error. if i've making a connection thru the 'Oracle Net8 easy config', it is giving the following error at time of connection test.
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    this is the message i'm getting. but i couldn't find any error in the fields i entered.
    if i'm editing the 'tnsnames.ora' file and make the connection, and when i open the Form builder and try to connect to the database, it is giving a memory error.
    the instruction at "0x67614f04" referenced memory at "0x000000160". The memory could not br "written".
    i don't know why it is happening. i can connect from the same forms to Oracle 8i database. is there any additional settings we need for Oracle 9i on windows platform?
    regards
    george

  • Cannot connect to Oracle 11gR2 database from SQL Server 2005

    Both SQL Server (Windows) and Oracle (Linux) are in 64bit environments.
    I have done the following on a Windows 2008 R2 with SQL Server 2005:
    Install InstantClient from Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) to C:\Oracle
    Install oledb from 64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64 by executing install.bat oledb c:\oracle odac
    Note: Not sure whether 11.2.0.2.1 version of ODAC will cause any problem since I cannot find 11.2.0.1.0 version.
    I have checked the Allow inprocess of OraOLEDB.Oracle provider in SSMS.
    I have executed sp_addlinkedserver @server = 'ORACLE_TEST', @srvproduct = 'Oracle', @provider = 'OraOLEDB.Oracle', @datasrc = '##.##.##.##:1521/TEST'
    The ##.##.##.## is the ip address of the Linux server which has the Oracle 11gR2 database TEST.
    I have executed sp_addlinkedsrvlogin @rmtsrvname = 'ORACLE_TEST', @useself = 'FALSE', @rmtuser = 'xxxx', @rmtpassword = 'yyyy'
    The xxxx is the oracle username and yyyy is the password for the oracle user xxxx.
    I know the oracle database TEST is up since I have setup connection in Oracle SQL Developer having:
    ##.##.##.## as the hostname
    1521 as the Port
    xxxx as the username
    yyyy as the password
    TEST as the service name
    When I click Test Connection for the linked server ORACLE_TEST in SSMS, it just hang.
    When I issue a query like select count(*) from oracle_test..xxxx.table1, it just run forever. I'm not so sure how to query an oracle table. I have also tried select count(*) from oracle_test.xxxx.xxxx.table1.
    When I retype the password in the Linked Server Properties, it just run forever.
    Do I need to create a tnsnames.ora on the Windows machine?
    Do I need to change the tnsnames.ora on Linux machine?
    I'm very new to Oracle.

    This forum is dealing with connections from an Oracle database to SQL Server - so the Oracle database is the driving site and this is the way round from your linked server set up.
    As you're suing the instant client you might post your issue in the instant client forum:
    Instant Client

  • JDBC connection to Oracle 8.16 from Weblogic 6.1

    I am trying to connect to an Oracle DB using the JDBC thin driver to Weblogic 6.1
    I am getting the following error when starting up the Weblogic server:
    "oracle.net.TNSAddress.SOException"
    Anyone have an idea as to why I am getting this.
    Thanks
    Lathell McKeller

    If the url fix does not work - try updating your jdbc drivers for oracle 8 (get the latest one). There is a chance that using the older oracle 7 drivers you might encounter some problems.
    Regards,
    Michael Bogecho

  • Help to connect to Oracle 9i database from an java programme in Solaris 5.9

    Hi,
    I use to access Oracle Databse in Windows machine by creating DSN using ODBC and the following piece of code
    import java.io.*;
    import java.sql.*;
    public class DBConn
         public Connection con;
         public DBConn()
              try
                             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                        catch(Exception se)
                             System.out.println("Error here driver:" + se);
                        try
                        con = DriverManager.getConnection("jdbc:odbc:AJProject","seplc30","happy");
                        catch(Exception se)
                             System.out.println("Error here connection:" + se);
    Now I have to port the same in Solaris 5.9 platform .Please help me ut by providing the details step to do the same.
    Thanks & Regards,
    Saibal

    Hi,
    It's easier and better to switch to the thin driver instead of using the jdbc-odbc bridge. The thin driver is written in pure java.
    /Kaj

  • NullPointerException from oracle.jdbc.driver.OracleDriver.connect()

    I ran into an NPE when using Oracle thin client 11.1.0.6.0 (ojdbc6.jar) to connect to a 10g server. It is not easy to reproduce though. The following is the stack trace, any suggestions?
    java.lang.NullPointerException
    at java.util.Hashtable.get(Hashtable.java:334)
    at java.util.Properties.getProperty(Properties.java:932)
    at oracle.jdbc.driver.PhysicalConnection.parseConnectionProperty_String(PhysicalConnection.java:2037)
    at oracle.jdbc.driver.PhysicalConnection.parseConnectionProperty_int(PhysicalConnection.java:2072)
    at oracle.jdbc.driver.PhysicalConnection.readOCIConnectionPoolProperties(PhysicalConnection.java:1936)
    at oracle.jdbc.driver.PhysicalConnection.readConnectionProperties(PhysicalConnection.java:1927)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:471)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:458)
    at com.verisign.uaservice.dbverify.dao.DBVerifyDAOImpl.getRecordAsPair(DBVerifyDAOImpl.java:255)
    at com.verisign.uaservice.dbverify.Verifier.verify(Verifier.java:37)
    at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    What is the exact 10g version?
    According to MOS note 207303.1, for connection between 11g client and 10g server, there is a minimum version requirement on 10g server side.

  • NullPointerException at oracle.jdbc.driver.OracleDriver.connect()

    I have written a java stored procedure. The method can be executed properly in local PC environment.
    but when the java program is load into Oracle DB JVM by loadjava command. such method is called in SQL> prompt as a java stored procedure. I got
    java.lang.NullPointerException
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:379)
    at java.sql.DriverManager.getConnection(DriverManager.java:573)
    at java.sql.DriverManager.getConnection(DriverManager.java:187)
    at WCZSynchronizer.testLocalConn(WCZSynchronizer:901)
    as shown in the trace file.
    The line in my own java program WCZSynchronizer is simply
    Connection conn = java.sql.DriverManager.getConnection(db_connection_string,username,password);
    I am sure that the db_connection_string, username and password are correct as it works in my local PC.
    I even try to get default connection by
    Connection conn = java.sql.DriverManager.getConnection("jdbc:default:connection:");
    and
    Connection conn = new oracle.jdbc.driver.OracleDriver().defaultConnection();
    I got the same NullPointerException in both cases too.
    In fact, the java stored procedure worked before. but suddenly it's failed! The Oracle DB server is under my control and I did not change any configuration nor setting on it.
    I can't find similar case from this forum. Do any one know why?
    thanks.

    First try debugging the test case by making sure that none of the parameters passed to getConnection is null.
    When you are sure that none of the parameters are null, if the issue still reproduces. Let us know
    - The driver version
    - The jar file you are using
    cheers
    Ashok

  • Installing IBM Websphere Advanced Edition 3.0 and connecting to Oracle 81 database

    When we install IBM Websphere Advanced Edition 3.o for Solaris and try connecting to the Oracle 81 database some errors were faced as below
    003.820 1ef19816 ConnectionPoo W Failure while creating connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.CreateNsTables.dbInit(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.NameServer.init(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeNameService(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    003.856 1ef19816 CreateNsTable W Failed to get a connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.CreateNsTables.dbInit(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.NameServer.init(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeNameService(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    004.208 1ef19816 AdminServer A Initializing WebSphere Administration server
    004.228 1ef1ff18 DrAdminServer A DrAdmin available on port 36,133
    004.248 1ef19816 ConnectionPoo W Failure while creating connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.Connect ionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    004.263 1ef19816 DBMgr F Failed to create a data source: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    FATAL Failed to create a data source: {0} java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    java.lang.Throwable
    at java.lang.Throwable.<init>(Compiled Code)
    at com.ibm.ejs.ras.CBuffLogger.fatalEvent(Compiled Code)
    at com.ibm.ejs.ras.Tr.fireTraceEvent(Compiled Code)
    at com.ibm.ejs.ras.Tr.fatal(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    Please help
    Thanks in Advance
    null

    When we install IBM Websphere Advanced Edition 3.o for Solaris and try connecting to the Oracle 81 database some errors were faced as below
    003.820 1ef19816 ConnectionPoo W Failure while creating connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.CreateNsTables.dbInit(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.NameServer.init(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeNameService(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    003.856 1ef19816 CreateNsTable W Failed to get a connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.CreateNsTables.dbInit(Compiled Code)
    at com.ibm.ejs.ns.CosNaming.NameServer.init(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeNameService(Compiled Code)
    at com.ibm.ejs.sm.server.ManagedServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    004.208 1ef19816 AdminServer A Initializing WebSphere Administration server
    004.228 1ef1ff18 DrAdminServer A DrAdmin available on port 36,133
    004.248 1ef19816 ConnectionPoo W Failure while creating connection java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.Connect ionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    004.263 1ef19816 DBMgr F Failed to create a data source: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    FATAL Failed to create a data source: {0} java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionPool.<init>(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext._ConnMgrBaseImpl.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.ConnectionManager.getConnectionPool(Compiled Code)
    at com.ibm.ejs.dbm.jdbcext.SMDataSource.getConnection(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    java.lang.Throwable
    at java.lang.Throwable.<init>(Compiled Code)
    at com.ibm.ejs.ras.CBuffLogger.fatalEvent(Compiled Code)
    at com.ibm.ejs.ras.Tr.fireTraceEvent(Compiled Code)
    at com.ibm.ejs.ras.Tr.fatal(Compiled Code)
    at com.ibm.ejs.sm.util.db.DBMgr.initialize(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.startConnectionMgr(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.initializeRuntime(Compiled Code)
    at com.ibm.ejs.sm.server.AdminServer.main(Compiled Code)
    Please help
    Thanks in Advance
    null

  • Does anybody know step to install JDBC driver?

    Hi
    All,
    I have windows xp and i want to install jdbc driver for jdk 1.5.. I have downloaded ojdbc14.jar. but I don't know how to execute that file. I have tried with
    java -jar ojdbc14.jar
    it gives me following output
    C:\>java -jar c:\ojdbc14.jar
    Failed to load Main-Class manifest attribute from
    c:\ojdbc14.jar
    so it is not working.
    does anybody know step to install JDBC driver?
    Thanks,
    Vishal
    Message was edited by:
    vishal patel
    Message was edited by:
    vishal patel

    The JDBC drivers aren't "installed" like application software. The ojdbc.jar file is a library that contains the driver. To use it in a Java program, two steps are required:
    (1) Invoke the driver (using the Class.forName() method is most common), and
    (2) include the library in the class path when you run your program.
    Here is a sample program I have put together to illustrate:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class JDBCTest {
         public static void main(String args[]) throws SQLException, ClassNotFoundException {
              Class.forName("oracle.jdbc.OracleDriver");
              String dbString = "jdbc:oracle:thin:@localhost:1521:xe";
              String username = "forums";
              String password = "forums";
              Connection connection = DriverManager.getConnection(dbString, username, password);
              Statement statement = connection.createStatement();
              ResultSet rs = statement.executeQuery("select 'hi' as my_column from dual");
              while(rs.next())
                   System.out.println(rs.getString("MY_COLUMN"));
              rs.close();
              statement.close();
              connection.close();
    }Below, I compile and run this program. You can see the necessity of including the JAR in the class path:
    C:\workspace>javac JDBCTest.java
    C:\workspace>java JDBCTest
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at JDBCTest.main(JDBCTest.java:9)
    C:\workspace>java -cp ojdbc14.jar;. JDBCTest
    hi
    C:\workspace>Although no classes in this JAR file are explicitly used by the program (other than the Class.forName() line), it is necessary. Without it, the JVM will return the following error message (to see this first-hand, simply comment out the Class.forName() line in the above program):
    C:\workspace>java -cp ojdbc14.jar;. JDBCTest
    Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:xe
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at JDBCTest.main(JDBCTest.java:15)Kind regards,
    Christopher L. Simons

  • How can i install jdbc driver

    Hi
    i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
    pls tell me how can i install jdbc driver in my websphere
    with regards

    You may get a better response posting this question in a WebSphere specific forum. Maybe this will help, the following link shows the command you need to execute to install a JDBC driver in websphere 5.0.
    http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=mysql+driver&maxHits=50

Maybe you are looking for

  • The iPod could not be updated because the firmware file was corrupt.

    So i kept having this problem in this thread here: http://discussions.apple.com/thread.jspa?threadID=1226490&tstart=255 I decided that maybe doing a Restore on my iPod would maybe sort it out however i got that message "The iPod could not be updated

  • identifier expected � why show up when I was trying to compile !

    When i was trying to add another botton as a " buttonAdd " I will get the error message so I would be glad to help me , please ! import java.awt.*; import java.applet.*; import java.applet.Applet; import java.awt.event.*; import java.awt.image.*; pub

  • Two to Three loan to be posted to vendor account

    Hi I have assinged the symbolic accounts with "K" and in the OBYU assinged to *0002 with the respective symbolic accounts. For example if an employee has festival loan and housing loan when i am posting both loans are adding and appearing in vendor a

  • I need a Mentor!!

    I am asked all the time, for advice on basic Photoshop CS4, Adobe Elements and even a little Indesign issues, but now I need a little help. I have a logo for my company, which I have inserted. Now the logo itself is all right but it has a white backg

  • Web Housing

    Hey Guys, Here's my situation: I'm fairly new to web design. I know Dreamweaver, HTML and CSS pretty well, but my back-end development knowledge is presently lacking. I'm beginning to do web design commercially, and am getting to the point where I ne