Oracle driver oci8&thin

Hi,
I need help with connectiong to oracle database.
I connected to oracle database with thin driver, it worked fine. Than I wanted to connect without specifiing port. I used oci8. First I couldn't connect to database. then i found in some forum that I should copy classes12.jar,classes12dms.jar and nls_charset12.jar from [ORACLE_HOME]\jdbc\lib to [JDeveloper]\jdbc\lib.
It started to work but not properly.
statement.executeQuery () works
but
statement.executeUpdate() throws error:
Fail to convert between UTF8 and UCS2: failUTF8Conv
thanks for your help
blossom

What version of Oracle are you using?
The most recent driver would be ojdbc14.jar
Also note for oci8 you need to install the oracle client on your pc, and have a TNSName set up (which is what specifies the IP address/port of the database as opposed to the java connection string)
It isn't any less work, it just shifts where the declaration has to be.

Similar Messages

  • Oci8,thin driver incompatibility for oracle8.0.3.0.0

    we tried to connect using the oci8,thin,oci7
    drivers downloaded from ur site. our oracle enterprise edition version is 8.0.3.0.0.
    where can we find oci8,thin for the oracle version 8.0.3.0.0.
    the error that comes is
    java.lang.UnsatisfiedLinkError: no oci733jdbc in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
    at java.lang.Runtime.loadLibrary0(Runtime.java:470)
    at java.lang.System.loadLibrary(System.java:768)
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:138)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:93)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:146)
    at java.sql.DriverManager.getConnection(DriverManager.java:457)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at ImageSqlIns.main(ImageSqlIns.java:17)
    null

    we tried to connect using the oci8,thin,oci7
    drivers downloaded from ur site. our oracle enterprise edition version is 8.0.3.0.0.
    where can we find oci8,thin for the oracle version 8.0.3.0.0.
    the error that comes is
    java.lang.UnsatisfiedLinkError: no oci733jdbc in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
    at java.lang.Runtime.loadLibrary0(Runtime.java:470)
    at java.lang.System.loadLibrary(System.java:768)
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:138)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:93)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:146)
    at java.sql.DriverManager.getConnection(DriverManager.java:457)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at ImageSqlIns.main(ImageSqlIns.java:17)
    null

  • Error when changing Oracle thin driver to Bea's Oracle driver

    Hi All !
         I was using this code with WL9.2 and Oracle 10 until recently with an Oracle thin driver
         URL: jdbc:oracle:thin:@[x.x.x.x]:1521:[SID]
         Driver Class: oracle.jdbc.xa.client.OracleXADataSource
         Now this was changed to
         URL: jdbc:bea:oracle://[x.x.x.x]:1521
         Class Driver Name: weblogic.jdbcx.oracle.OracleDataSource
         (Bea's oracle driver)
         but the code is not ok.
         The error is Caused by: java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_weblogic_jdbcx_base_BaseCallableStatementWrapper
         at      com.esi.packages.dataaccess.pagination.ResolvePackageCriteriaPageProvider.getRPCSQLOfPackage(ResolvePackageCriteriaPageProvider.java:1208
         (this is the line where the cast of the result connection.prepareCall() is happenning).
         I tried different CallableStatement objects, from Bea but no success. Any idea/working example about this?
         The code follows:
         org.hibernate.Session session = this.getSession();
         String sqlCode = null;
         OracleThinClob sqlClobCode = null;
         StringBuffer sb = new StringBuffer();
         java.sql.Connection connection = null;
    try {
    connection = session.connection();
    connection.setAutoCommit(false);
    try {
         OracleCallableStatement proc = (OracleCallableStatement) connection.prepareCall("{ ? = call packages_pkg.clob_get_sql_psd_and_package (?,?,?,?,?) }");
         proc.registerOutParameter(1, Types.CLOB);
         proc.setString(2, pkgStatus);
         proc.setLong(3, packageSk); // pkg sk
         proc.setDate(4, new java.sql.Date(date.getTime())); //date
         proc.setString(5, null);
         if(null == provinceSk){
              proc.setNull(6, java.sql.Types.NUMERIC); //province sk
         }else{
              proc.setLong(6, provinceSk); //province sk
    ResultSet rs = null;
    try {
    proc.execute();
    sqlClobCode = (OracleThinClob)proc.getClob(1);
    Writer clobWriter = ((OracleThinClob)sqlClobCode).getCharacterOutputStream();
    if(null != clobWriter){
    try {
         char[] buf = new char[32000];
         buf[0] = '\0';
         sqlClobCode.getChars(1, sqlClobCode.getChunkSize(), buf);
         sb.append(buf);
    } catch(Exception exception) {                           
    logger.debug("Cannot read the SQL from CLOB that resolves the package");
    throw exception;
    sqlCode = sb.toString();
    }catch(Exception e){
         logger.error("Cannot retrieve the benefits types from the database.");
         throw new RuntimeException("Cannot retrieve the benefits types from the database.");
    }finally {               
    if(null != rs){
    rs.close();
    if(null != proc){
         proc.close();
    }

    Horatiu Stanciu wrote:
    Hi All !
         I was using this code with WL9.2 and Oracle 10 until recently with an Oracle thin driver
         URL: jdbc:oracle:thin:@[x.x.x.x]:1521:[SID]
         Driver Class: oracle.jdbc.xa.client.OracleXADataSource
         Now this was changed to
         URL: jdbc:bea:oracle://[x.x.x.x]:1521
         Class Driver Name: weblogic.jdbcx.oracle.OracleDataSource
         (Bea's oracle driver)
         but the code is not ok.
         The error is Caused by: java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_weblogic_jdbcx_base_BaseCallableStatementWrapper
         at      com.esi.packages.dataaccess.pagination.ResolvePackageCriteriaPageProvider.getRPCSQLOfPackage(ResolvePackageCriteriaPageProvider.java:1208
         (this is the line where the cast of the result connection.prepareCall() is happenning).The weblogic.jdbc.vendor.oracle.OracleCallableStatement
    is for obtaining access to some Oracle's non-standard
    methods:
    void registerIndexTableOutParameter(int i, int j, int k, int l) throws java.sql.SQLException;
    void registerOutParameter(int i, int j, int k, int l) throws java.sql.SQLException;
    java.sql.ResultSet getCursor(int i) throws java.sql.SQLException;
    java.io.InputStream getAsciiStream(int i) throws java.sql.SQLException;
    java.io.InputStream getBinaryStream(int i) throws java.sql.SQLException;
    java.io.InputStream getUnicodeStream(int i) throws java.sql.SQLException;
    You're not calling any of those. Good. Just remove the cast. Stick to standard
    JDBC if you can. Also, note the comments I added about your setAutoCommit() call.
    Joe
         I tried different CallableStatement objects, from Bea but no success. Any idea/working example about this?
         The code follows:
         org.hibernate.Session session = this.getSession();
         String sqlCode = null;
         OracleThinClob sqlClobCode = null;
         StringBuffer sb = new StringBuffer();
         java.sql.Connection connection = null;
    try {
    connection = session.connection();
    connection.setAutoCommit(false); // DON'T DO THIS!! I SEE NO COMMIT. LET WEBLOGIC HANDLE ANY TX.
    try {
         OracleCallableStatement proc = connection.prepareCall("{ ? = call packages_pkg.clob_get_sql_psd_and_package (?,?,?,?,?) }");
         proc.registerOutParameter(1, Types.CLOB);
         proc.setString(2, pkgStatus);
         proc.setLong(3, packageSk); // pkg sk
         proc.setDate(4, new java.sql.Date(date.getTime())); //date
         proc.setString(5, null);
         if(null == provinceSk){
              proc.setNull(6, java.sql.Types.NUMERIC); //province sk
         }else{
              proc.setLong(6, provinceSk); //province sk
    ResultSet rs = null; // WHY IS THIS HERE?
    try {
    proc.execute();
    sqlClobCode = (OracleThinClob)proc.getClob(1);
    Writer clobWriter = ((OracleThinClob)sqlClobCode).getCharacterOutputStream();
    if(null != clobWriter){
    try {
         char[] buf = new char[32000];
         buf[0] = '\0';
         sqlClobCode.getChars(1, sqlClobCode.getChunkSize(), buf);
         sb.append(buf);
    } catch(Exception exception) {                           
    logger.debug("Cannot read the SQL from CLOB that resolves the package");
    throw exception;
    sqlCode = sb.toString();
    }catch(Exception e){
         logger.error("Cannot retrieve the benefits types from the database.");
         throw new RuntimeException("Cannot retrieve the benefits types from the database.");
    }finally {               
    if(null != rs){
    rs.close();
    if(null != proc){
         proc.close();

  • Oracle Driver classes12.zip  oci8   Error

    Oracle 9iR2 database.
    I use oci8 in a java application.
    I get the error: java.lang.UnsatisfiedLinkError: free_c_state at oracle.jdbc.oci8.OCIDBAccess.free_c_state(native method)
    I changed the Oracle-Client on the computer where the
    application is running. (from R1 to R2).
    Since this time the error occurs.
    Any idea?
    Thanks in advance
    peter eisert

    Thank you for your promptly response.
    ----I have checked my oracle client computer once again:
    LD_LIBRARY_PATH: /opt/oracle/product/901/lib
    ----In Java program:
    DRIVER: oracle.jdbc.driver.OracleDriver
    URL: jdbc:oracle:oci8:@fizt_zille.local
    ----and I get the following error messages, different than before. Do you have any new idea ?
    java.lang.NoSuchFieldError: OCIEnvHandle
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state (Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:309)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:307)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)

  • Exception with WLS 6.1.3 & Oracle 9.2 thin driver

    I'm testing out an upgrade from the Oracle thin driver that ships with WLS
    6.1
    to the Oracle 9.2 thin driver. My database server is running Oracle 8.1.7.
    The only configuration change I made was to put the 9.2 classes12.zip at the
    beginning of ths classpath. The line of my code where the exception is
    being
    throw is the first attempt at performing a resultSet.getLong() call. Has
    anyone
    gotten this combination to work yet? Any ideas on the error? I'd really
    like to test out the native LOB support in the new drivers.
    TIA - Gordon
    <Oct 14, 2002 2:59:02 PM EDT> <Error> <Audit> <- Login failed because
    loginName:
    buyerOrgAdmin1034621942027 was not found.
    com.eoriginal.engine.core.session.bas
    icAccess.OrgUserDataAccessSessionBean_rngrwj_Impl::findUserAccountInfo,
    java.lan
    g.ArrayIndexOutOfBoundsException
    at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3181)
    at oracle.sql.LnxLibThin.lnxsni(LnxLibThin.java:6571)
    at oracle.sql.NUMBER.toLong(NUMBER.java:373)
    at
    oracle.jdbc.dbaccess.DBConversion.NumberBytesToLong(DBConversion.java
    :2915)
    at
    oracle.jdbc.driver.OracleStatement.getLongValue(OracleStatement.java:
    4373)
    at
    oracle.jdbc.driver.OracleResultSetImpl.getLong(OracleResultSetImpl.ja
    va:529)
    at
    oracle.jdbc.driver.OracleResultSet.getLong(OracleResultSet.java:1540)
    at weblogic.jdbc.jts.ResultSet.getLong(ResultSet.java:518)
    at
    weblogic.jdbc.rmi.internal.ResultSetImpl.getLong(ResultSetImpl.java:4
    77)
    at
    weblogic.jdbc.rmi.internal.ResultSetStraightReader.getLong(ResultSetS
    traightReader.java:142)
    at
    weblogic.jdbc.rmi.SerialResultSet.getLong(SerialResultSet.java:450)
    at
    com.eoriginal.engine.core.session.basicAccess.OrgUserDataAccessSessio
    nBean.findUserAccountInfo(OrgUserDataAccessSessionBean.java:1272)
    at
    com.eoriginal.engine.core.session.basicAccess.OrgUserDataAccessSessio
    nBean_rngrwj_EOImpl.findUserAccountInfo(OrgUserDataAccessSessionBean_rngrwj_
    EOIm
    pl.java:475)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean.valida
    teLogin(LoginSessionBean.java:135)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean.valida
    teLogin(LoginSessionBean.java:94)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh
    EOImpl.validateLogin(LoginSessionBeanmoz7fh_EOImpl.java:37)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh
    EOImplWLSkel.invoke(Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    (com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh_Impl:
    :va
    lidateLogin)>

    Have you tried the thick (oci) driver?
    We're looking to upgrade too.
    "Richard" <[email protected]> wrote:
    >
    I try to connect to an Oracle 9.2.0 on Windows XP with the jdbc thin
    driver. I
    use weblogic server 7.0 SP1 (same problem with weblogic server 7.0.0).
    I try direct connection (without pool) or with the weblogic pool, and
    I get the
    same error :
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.security.o3logon.C0.r(C0)
    at oracle.security.o3logon.C0.l(C0)
    at oracle.security.o3logon.C1.c(C1)
    at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientH
    elper)
    at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:201)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:140)
    at weblogic.jdbc.common.internal.ResourceAllocator.makeResources(Resourc
    eAllocator.java:931)
    at weblogic.jdbc.common.internal.ResourceAllocator.finishInit(ResourceAl
    locator.java:457)
    at weblogic.jdbc.common.internal.ResourceAllocator.<init>(ResourceAlloca
    tor.java:316)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:292)
    at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.
    java:282)
    at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.j
    ava:270)
    The same test works well with an Oracle 9.0 !
    I have already try with this differents drivers :
    8.1.7, 9.0 and 9.2 and I always have the same problem.

  • 500 Internal Server Error java.lang.NoSuchFieldError:  oracle.jdbc.oci8.OCI

    I am running small SQLJ in a JSP to get the hang of it.
    I am running on 920, and have downloaded the new runtime classes for 920 and tested per the instructions.
    Using JDev 903, here is the private method for running a query ( It is from an article I found by Julie Basu at Oracle; I have played around with the empno/emp_no variable to convert it to an int):
    <%! private String runQuery(String emp_no) throws java.sql.SQLException {
    DefaultContext dctx =null;
    String ename = null; double sal = 0.0; String hireDate=null;
    StringBuffer sb = new StringBuffer();
    //int emp_no = Integer.parseInt(emp_no);
    try {
    dctx =Oracle.getConnection("jdbc:oracle:oci8:@olap","scott","tiger");
    #sql [dctx] { SELECT ename, sal, TO_CHAR(hiredate,'DD-MON-YYYY')
    INTO :ename,:sal,:hireDate
    FROM scott.emp WHERE empno=:emp_no
    sb.append("<BLOCKQUOTE><BIG><B><PRE>\n");
    sb.append("Name :"+ename+ "\n");
    sb.append("Salary :"+sal+ "\n");
    sb.append("Date hired :"+hireDate);
    sb.append("</PRE></B>></BIG></BLOCKQUOTE>");
    } catch (java.sql.SQLException e){
    sb.append("<P> SQL Error: <pre> "+e+" </pre> </p>\n");
    } finally {
    if (dctx!=null) dctx.close();
    return sb.toString();
    %>
    I keep getting the following error:
    java.lang.NoSuchFieldError: oracle.jdbc.oci8.OCIEnv.envCharSetId
         int oracle.jdbc.oci8.OCIEnv.get_env_handle()
              native code
         long oracle.jdbc.oci8.OCIEnv.getEnvHandle()
              OCIEnv.java:70
         oracle.jdbc.dbaccess.DBConversion oracle.jdbc.oci8.OCIDBAccess.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OCIDBAccess.java:390
         void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OracleConnection.java:361
         java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OracleDriver.java:485
         java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
              OracleDriver.java:337
         java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
              DriverManager.java:517
         java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
              DriverManager.java:177
         void sqlj.runtime.ref.ConnectionContextImpl.<init>(sqlj.runtime.ref.ProfileGroup, java.lang.String, java.lang.String, java.lang.String, boolean)
              ConnectionContextImpl.java:346
         void sqlj.runtime.ref.DefaultContext.<init>(java.lang.String, java.lang.String, java.lang.String, boolean)
              DefaultContext.java:172
         sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String, boolean)
              Oracle.java:580
         sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String)
              Oracle.java:609
         java.lang.String _SQLJ.runQuery(java.lang.String)
         [SQLJ.jsp]
              SQLJ.jsp:42
         void SQLJ.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         [SQLJ.jsp]
              SQLJ.jsp:20
         void com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              OrionHttpJspPage.java:56
              [SRC:/SQLJ.jsp]
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:317
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:465
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:379
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    When I run it using just JDBC with the thin Driver, I have no problems.
    What could be the issue?
    Thanks,
    Scott Rappoport

    Fail to make OCI connection Using JDeveloper

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Using Oracle driver in JDBC for Unix and Linux based servers

    Please, let me know how to mention the Oracle driver within the forName.class(" "); statement in the Jdbc-Servlet for Unix and Linux based servers.
    I'm using Windows-OS for Java programming. Should I have to use the same environment(Unix/Linux with Oracle) for compiling or just compiling, mentioning the driver in the java program would suffice?
    Please, Help me.
    Thank You.
    from,
    Silas eschole.
    email: [email protected]
    [email protected]

    I've used Oracle's thin driver like this:
    Class.forName ( "oracle.jdbc.driver.OracleDriver" );
    Connection DBConnection = DriverManager.getConnection("jdbc:oracle:thin:USER/PASSWD@database" );
    You need Oracles client classes ( e.g. classes111.zip ) at run time, not during compilation.
    Thin client connects directly to the Oracle DB, so the database description is like PORT:MACHINE:SID
    Connection is made through Oracle's listener even when your DB is in the same machine that your program is running. Port number is propably 1521 or 1526, depending on your listener.ora definitions and used Oracle SQL*Net version.

  • Oracle Driver

    Post Author: jhogan
    CA Forum: Data Connectivity and SQL
    I have upgraded from an oracle 2. to the newest 3. version of the oracle driver and am getting the following error message:
    Failed to open a rowset. 
    Details: HY000:&#91;Oracle&#93;&#91;Rdb&#93;%SQL-F-FLDNOTCRS, Column EPISODES.ADMISSION_CHILDREN_IN_HOUSEHOL was not found in the tables in current scope.
    The actual name of the Column is EPISODES.ADMISSION_CHILDREN_IN_HOUSEHOLD
    Any idea how to fix the problem, as I really need to be able to access all columns of data.
    Thanks,
    Jennifer

    I have tried everything, using jdbc:oracle:oci8@service_name, I have tried with ojdbc14.jar instead of classes12.zip and with nls_charset12.zip but it doesn't want to work from weblogic. But it works fine from the mapping workbench now and from a java jdbc checkup class also.
    My weblogic startup script does contain classes12.zip and nls_charset12.zip but with jdbc:oracle:oci@service_name I get invalid url and with jdbc:oracle:oci8@service_name I get unsastified link...
    Any idea, maybe someone met the same problem?
    Vlad

  • Oracle Driver Error.

    hi all
    i have deploy ojdbc14.jar in VS to connect to an a oracle DB.
    the parametes im using in CC next:
    JDBC Driver: oracle.jdbc.driver.OracleDriver
    Connection: jdbc:oracle:thin:@subuedwd:1521:ddwh
    User: xxx
    pass: xxx
    now. this jar is been used in PE and other legacy system to connect to oracle db but in PI im getting this error:
    Error during database connection to the database URL 'jdbc:oracle:thin:@subuedwd:1521:ddwh' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@subuedwd:1521:ddwh': ClassNotFoundException: oracle.jdbc.driver.OracleDriver'
    in a legacy system checked the conectivity with ddwh db and there no problems, an SQL query was executed perfect.
    in PI server cheked if the deploy was made right, so i go to /usr/sap/XD0/DVEBMGS01/j2ee/cluster/server0/bin/ext to verify if folder  oracle.jdbc.driver.OracleDriver with the ojdbc14.jar was there and it was.
    the server was restarted discard possible errors but nothing change.
    any idea?
    Rgds
    RP
    Edited by: Rodrigo Pertierra on Jan 24, 2008 8:33 AM

    Hi,
    Check this links.
    To install oracle drive in XI server, just check these links,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    http://msdn2.microsoft.com/en-us/library/ms177523.aspx
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
                              JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards,
    Phani

  • Oracle Driver in weblogic.jar - 6.1

    I was browsing through the weblogic.jar file in Weblogic 6.1 and I saw there were
    some oracle.jdbc.* classes in there. Can someone explain what these drivers are?
    Are these just to support the OCI drivers? Is there a Type 4 driver included?
    I didn't see any mention of these in the documentation.

    brian koh wrote:
    >
    I have used the oracle driver from the oracle site ie classes12.zip for oracle 9i. However, I could not get the connection pool to work. When initializing, it throws an sqlException with the error "Invalid arguments in call". Also just before the exception is thrown there is a line which says "sleeping in createResource()".
    This is the url I am using:
    jdbc:oracle:thin:@192.168.10.254:1521:orcl
    Would appreciate any help to solve the error.
    thanx
    BrianHi. Do you have the Oracle driver ahead of all weblogic jar files in the server's
    classpath? Show me the whole stacktrace of the exception.
    Joe
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX

  • ClassNotFoundException raised when attempting to load Oracle Driver in jsp

    ClassNotFoundException occoured when attempting to load Oracle Driver in jsp
    I am using oracle 9i server.here is the code that i have try
    Connection connection = null;
    try
    // Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driverName);
    // Create a connection to the database
    String serverName = "127.0.0.1";
    String portNumber = "1521";
    String sid = "mydatabase";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String username = "username";
    String password = "password";
    connection = DriverManager.getConnection(url, username, password);
    catch (ClassNotFoundException e)
    // Could not find the database driver
    } catch (SQLException e)
    // Could not connect to the database
    can i have to set classpath for this, pls help me.

    Do not modify the serverclasspath in WebServer 6.1.
    Add the path to the driver to the classpathsuffix attribute.
    change
    classpathsuffix=""
    to
    classpathsuffix="/usroracle/driver/classes12.zip" (Unix)
    or
    classpathsuffix="C:/Oracle/driver/classes12.zip" ( Windows )
    Replace the path in the example with the actual path to the driver file.
    HTH,
    Hari.

  • Can't load oracle driver...

    h
    i'm trying to connect to my oracle db from my jbuilder application and get the following error...
    jdbc:oracle:thin@devserver05:1521:xxx_xxx
    error loading class.forname
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
    this is created from my code...
    import java.sql.*;
    public class ConnectionManager {
    private static final String driveName = "oracle.jdbc.driver.OracleDriver";
    private static final String serverName = "dev_server05";
    private static final int serverPort = 1521;
    private static final String dataBaseSID = "xxx_xxx";
    private static final String userID = "xxxxx";
    private static final String password = "yyyyy";
    private static final String URL = "jdbc:oracle:thin@" + serverName + ":" + serverPort
    + ":" + dataBaseSID;
    public ConnectionManager() {
    public static Connection createConnection() throws SQLException{
    try {
    Class.forName(driveName);
    catch (ClassNotFoundException e1) {
    System.out.println(URL);
    System.out.println("error loading class.forname");
    e1.printStackTrace();
    Connection con = DriverManager.getConnection(URL, userID, password);
    return con;
    }

    and when i type the following into the command
    line...
    C:\jtm>java oracle.jdbc.driver.OracleDriver
    i get the following so i guess my path is ok.....
    Exception in thread "main"
    java.lang.NoClassDefFoundError:
    oracle/jdbc/driver/OracleDriverHi ,
    try adding the import statement for the oracle driver, which is
    import oracle.jdbc.driver.*;
    and don't forget to add your oracle driver in the classpath..
    hope this helps..
    Ganesh

  • JDBC 2/Oracle driver problems

    Hello,
    I am trying to use use JDBC 2 features on an oracle 8 database. I was told that this was possible as long as i used the correct driver (Oracle 8.1.6). I have downloaded this driver, added it to the projects library's, changed JDevelopers IDE Classpath to point to "classes12.zip".
    However when i try to set up a simple connection to the database i get errors, but when i switch back to the old oracle driver (8.1.5) it works ok). Below is the code that i use to connect to the DB:
    try
    DriverManager.setLogWriter(errorOut);
    DriverManager.registerDriver (new
    oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection
    (url,"cdr","test");
    System.out.println("Coneecting to db using
    " + url);
    catch (Exception ex)
    The above code fails and produces the following errors/exceptions:
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@3779]
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@37b8]
    DriverManager.getConnection("jdbc racle:thin:@212.240.193.99:1521:inspect")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@3779]
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: oracle/jdbc2/Blob
    void oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(oracle.jdbc.driver.OracleConnection)
    void oracle.jdbc.ttc7.TTC7Protocol.initNls(oracle.jdbc.driver.OracleConnection)
    void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
    java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
    java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
    java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
    java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
    null

    Hi,
    Sorry, I didn't look closely enough at your error stack. The problem appears to be with the Blob class. This class has moved from classes12.zip.
    In the Oracle JDBC Developer's Guide and Reference docs (8.1.6), there is a section on upgrading from JDK 1.1.x to JDK 1.2:
    Migration from JDK 1.1.x to JDK 1.2.x
    The only migration requirements in going from JDK 1.1.x to JDK 1.2.x are as follows:
    Remove your imports of the oracle.jdbc2 package, as discussed above under "Datatype Support".
    Replace any direct references to oracle.jdbc2.* interfaces with references to the standard java.sql.* interfaces.
    Type map objects (for mapping SQL structured objects to Java types), which must extend the java.util.Dictionary class under JDK 1.1.x, must
    implement the java.util.Map interface under JDK 1.2.x. Note, however, that the class java.util.Hashtable satisfies either requirement. If you used
    Hashtable objects for your type maps under JDK 1.1.x, then no change is necessary. For more information, see "Creating a Type Map Object and Defining
    Mappings for a SQLData Implementation".
    If these points do not apply to your code, then you do not need to make any code changes or recompile to run under JDK 1.2.x.

  • JDBC-Oracle-Driver

    Hi all,
    where can I download an JDBC-Oracle-Driver except of Oracle itsself?
    Tnx
    Marko

    You could use the thin[i] driver.
    Or, if you find a provider other than Oracle... you can... but, exactly, why do you want to do that???

Maybe you are looking for

  • Need help now please. macbook wont start up

    I have a white macbook. I was using it yesterday and the computer just shut off. I went to restart it and it does the chime, goes to the apple screen and just as the little circle under the apple spins, the laptop totally shuts down. it will not star

  • Mouse Not Working in Windows Bootcamp

    I have a 13 inch Macbook Pro late 2011 and i recently installed Windows via Bootcamp and then i found out that i had no internet connection. i Installed the Bootcamp Windows Support driver i got my internet connection and i solved my wifi problem. Bu

  • Best practices for adding CLICK listeners to complicated menus?

    OK, I’m gonna wear out my welcome but here’s my last question of the day: I’ve got a project that is essentially a large collection of menus, some buttons common across multiple screens, others unique. The following link is the work in progress, most

  • PS CS4 Classroom in a Book Question

    Lesson 8 > Adding a vector mask to a Smart Object. It says to select the Title layer then click the add a layer mask button Select the polygonal tool & set black as the forground color. My problem is that the tool did not hold the settings from the p

  • Onnecting wireless to netgear DG834G router?

    ive got my shiney new macbook, which is my first mac. and when it set up it found my wireless network, but when it asked for my WEP key it said password was incorrect and would not connect. i have been able to connect using the ethernet cable to the