Upgrade jdbc driver in jdeveloper

Hi,
We have build an application in jdev 10.1.3.3.0 which connects to a database 10.2.0.3.0.
We have been experiencing performance issues during the execution of some of our queries.
When executing this query outside jdeveloper (sqldeveloper, sqlnavigator), performance is ok, and explain plan is as expected.
When exactly the same query is executed from within Jdeveloper, (application and SQL worksheet) the explain plan gets messed up and performance is bad.
We suspect this has to do with the version of the JDBC Client.
As in the past we experienced similar behaviour when running queries from older Oracle clients (fi. 10g rel 1).
Can someone indicate on how we can check and upgrade the version of the JDBC driver Jdeveloper is using.
thanks,
Gert

You can upgrade your JDBC driver by doing the next steps:
1. Download JDBC driver from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
2. Browse to <JDeveloper_home>\jdbc\lib
3. Replace the existing files with the new files you have downloaded (you might need to make a backup first)
4. Now, you have successfully upgraded your JDBC driver.

Similar Messages

  • Adding new JDBC driver to Jdeveloper 3.0

    Hi all,
    How to you add a new jdbc driver to jdeveloper 3.0.

    Add a new library (containing the driver) to the list of libraries for the project -- under the project settings menu.
    None of the JDeveloper wizards will acknowledge or use a non-Oracle driver and BC4J will not work with non-Oracle drivers either, but this will get the driver included into the project settings so that you can reference it using JDBC code in the IDE.

  • Oracle Application Server 4.0.8.2 upgrade JDBC driver how ?

    What I did was I replace the following classes12.zip (thid JDBC driver is from Jdeveloper library folder) file into OAS home directory under jdbc/lib and change the following env variables in OAS.
    Lastly, tested out 2 simple servlet program
    1) No Connection pooling (simple query)
    2) With Connection Pooling (only JDBC 2 has this features)
    both the servlet fail to display and throw me an error "An Application has occured error ..."
    with the old classes111.zip it works fine not after I replaced the new JDBC 2 driver.

    sorry Oracle Application Server 4.0.8.1

  • Using mysql jdbc driver leads to exception

    I try to use com.mysql.jdbc.Driver with JDeveloper 9i business components. The following is the code I use to test if mysql driver works with business components:
    package test;
    import oracle.jbo.*;
    import java.util.Hashtable;
    import javax.naming.*;
    public class Test { 
    public static void main(String[] args) {   
    final String amName = "test.TestModule";
    final String voName = "test.TesttableView";
    final String userName = "some_user";
    final String password = "some_password";
    final String connStr = "jdbc:mysql://localhost:3306/test";
    System.setProperty("jdbc.drivers", "com.mysql.jdbc.Driver");
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    ApplicationModule appMod = null;
    try {     
    javax.naming.Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(amName);
    appMod = home.create();
    java.util.Properties props = new java.util.Properties();
    props.put("user",userName);
    props.put("password",password);
    props.put("defaultRowPrefetch","15");
    appMod.getTransaction().connect(connStr, props);
    } catch(Exception e) {     
    e.printStackTrace();
    ViewObject vo = appMod.createViewObject("vo", voName);
    Row r = vo.first();
    r.setAttribute("Testcolumn", "Some text");
    System.out.println("vo before AppMod post " + r.getAttribute("Testcolumn"));
    try {   
    appMod.getTransaction().commit();
    System.out.println("Commit succeeded.");
    } catch (oracle.jbo.JboException e) {   
    System.out.println("Commit failed. " + e);
    r = vo.first();
    System.out.println("vo after AppMod commit " + r.getAttribute("Testcolumn"));
    Everything works fine until ViewObject.first() is called, then the following exception is thrown:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=com.mysql.jdbc.PreparedStatement
         void oracle.jbo.JboException.<init>(java.lang.Throwable)
              JboException.java:344
         oracle.jbo.Row oracle.jbo.server.ViewRowSetIteratorImpl.first()
              ViewRowSetIteratorImpl.java:1156
         oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.first()
              ViewRowSetImpl.java:2240
         oracle.jbo.Row oracle.jbo.server.ViewObjectImpl.first()
              ViewObjectImpl.java:4345
         void test.Test.main(java.lang.String[])
              Test.java:32
    ## Detail 0 ##
    java.lang.ClassCastException: com.mysql.jdbc.PreparedStatement
         void oracle.jbo.server.OracleSQLBuilderImpl.doStatementSetRowPrefetch(java.sql.Statement, int)
              OracleSQLBuilderImpl.java:894
         java.sql.PreparedStatement oracle.jbo.server.DBTransactionImpl.createPreparedStatement(java.lang.String, int)
              DBTransactionImpl.java:2695
         java.sql.PreparedStatement oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(java.lang.String, int)
              DBTransactionImpl2.java:418
         java.sql.PreparedStatement oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(java.lang.String, int)
              DBTransactionImpl.java:3467
         java.sql.PreparedStatement oracle.jbo.server.ViewObjectImpl.getPreparedStatement(int, boolean[])
              ViewObjectImpl.java:6496
         void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
              QueryCollection.java:483
         void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
              ViewObjectImpl.java:2600
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
              ViewRowSetImpl.java:521
         void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
              ViewRowSetIteratorImpl.java:2197
         oracle.jbo.Row oracle.jbo.server.ViewRowSetIteratorImpl.first()
              ViewRowSetIteratorImpl.java:1141
         oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.first()
              ViewRowSetImpl.java:2240
         oracle.jbo.Row oracle.jbo.server.ViewObjectImpl.first()
              ViewObjectImpl.java:4345
         void test.Test.main(java.lang.String[])
              Test.java:32
    Exception in thread main.
    Is there anyone who would be able to help me with this problem?
    Thank you in advance!

    Use
    Class.forName("com.mysql.jdbc.Driver");Is the MySQL JDBC JAR file listed in project path.?

  • Upgrade Oracle iAS 9.0.4.1 JDBC Driver to 9.2.0.8

    Hi,
    I'm using Oracle Application Server 10g R1 (9.0.4.1) for a JDBC application that connects to an Oracle 9.2.0.7 Database.
    Due to some NLS problems with JDBC connections which are out of the scope of this posting, I need to upgrade the JDBC Driver of iAS 9.0.4.1 to the latest JDBC Driver, closest to my database full version. Since there is no 9.2.0.7 JDBC Driver set, I downloaded the 9.2.0.8 JDBC Driver files for Java JRE 1.4 which is the jdk/jre of the iAS 9.0.4.1.
    This set though, contains files ojdbc14.jar, ojdbc14_g.jar and ocrs12.jar and NOT the JDBC Driver files that are found in the ORACLE_HOME\jdbc\lib path of the iAS 9.0.4.1., and of course, replacing the existing with the new ones, does not work (does not update the JDBC Driver on the server).
    How can this upgrade be archived?
    Is anyone aware of the documented JDBC upgrade procedure for Oracle iAS 9.0.4.1, to driver version 9.2.0.8?
    Why there is no classes12.zip or classes12.jar distribution in the JDBC driver 9.2.0.8 set?
    Thank you

    JspServlet: unable to dispatch to requested page: Exception:java.lang.UnsupportedClassVersionError: wfrecruit/WFRequisition (Unsupported major.minor version 49.0)
    Application is compiled with a JDK version and run with another version of JDK.
    Compile and run application with same version of JDK.

  • Unable to create : com.mysql.jdbc.Driver error with JDeveloper 10.1.3

    Hi all,
    I got this error when I tried to execute a simple JSF app. I am using JDeveloper 10.1.3 release edition. Please advice
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\JDeveloper10g\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper10g\j2ee\home\oc4j.jar;C:\JDeveloper10g\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-01-31 21:40:47.062 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war...
    2006-01-31 21:40:47.093 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms
    2006-01-31 21:40:47.093 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war
    2006-01-31 21:40:47.156 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar...
    2006-01-31 21:40:47.156 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources
    2006-01-31 21:40:47.171 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar
    2006-01-31 21:40:47.218 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear...
    2006-01-31 21:40:47.281 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j
    2006-01-31 21:40:47.359 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear
    2006-01-31 21:40:47.375 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war...
    2006-01-31 21:40:47.375 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp
    2006-01-31 21:40:59.296 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war
    2006-01-31 21:41:08.421 WARNING J2EE OJR0107 Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    06/01/31 21:41:08 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    2006-01-31 21:41:08.531 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 29125 ms.

    I did what Manu suggested with no success. Alternatively, I registered the driver jar with embedded OC4J preferences > global > libraries. Still does not work. Please, note, that when I run JUnit tests against my BC4J application modules with JDBC URL as connection type, everything works just fine. The problem comes while running the JSF application when the application module is using JDBC DataSource as connection type.

  • JDBC Driver 10.1.0.5 to 10.2.0.3 Upgrade Exception: Socket is not connected

    Environment -
    Oracle TopLink 10g Release 3 (10.1.3.3.0) (Build 070620)
    Oracle 10g Release 3 (10.1.3) Application Server
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    JDBC Driver: 10.2.0.3
    Problem -
    I am trying a simple upgrade of my JDBC driver from 10.1.0.5 to 10.2.0.3. I have tried via creation of a shared library according to the OC4J Configuration and Administration Gude, and I even tried a direct replacement of jar files located under <OC4J_HOME>/jdbc/lib. After many deploy/undeploys and server restarts I continually receive the same error when TopLink attemps a datasource login:
    oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: Socket is not connectedError Code: 17002
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:276)
    at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:115)
    at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
    at oracle.toplink.intersnal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:228)
    Has anyone seen or experienced this before? Thanks!

    Hi Srini,
    There are other errors:
    83: Object type TABLESPACE failed to create with error:
    ORA-01119: error in creating database file '/u01/oracle/oradata/patriadb/ptlidx.dbf'
    ORA-27040: file create error, unable to create file
    Linux Error: 2: No such file or directory
    Failing sql is:
    CREATE TABLESPACE "PORTAL_IDX" DATAFILE '/u01/oracle/oradata/patriadb/ptlidx.dbf' SIZE 20971520 AUTOEXTEND ON NEXT 31457280 MAXSIZE 32767M LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MA
    ORA-39083: Object type TABLESPACE failed to create with error:
    ORA-01119: error in creating database file '/u01/oracle/oradata/patriadb/ptllog.dbf'
    ORA-27040: file create error, unable to create file
    Linux Error: 2: No such file or directory
    Failing sql is:
    CREATE TABLESPACE "PORTAL_LOG" DATAFILE '/u01/oracle/oradata/patriadb/ptllog.dbf' SIZE 4194304 AUTOEXTEND ON NEXT 31457280 MAXSIZE 32767M LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MAN
    ORA-39083: Object type TABLESPACE failed to create with error:
    ORA-01119: error in creating database file '/u01/oracle/oradata/patriadb/oca.dbf'
    47,1
    I guess the point is, should I use IMPDP using Network link?
    the doc seems to suggest this will work better

  • Upgrade MS SQL 2005 platform to MS SQL 2008 - Update the JDBC driver...

    Hello to all,
    This is the second post that I created reporting this error because in the first one I open this message in group of "SAP on SQL Server" but without any kind of help from community:
    My problem is...
    I´m planning to do an upgrade of a sap system (SAP ECC 6.0) from SQL Server 2005 to a SQL Server 2008 but I´m facing with a little problem. This system has two stacks - ABAP + JAVA - and because of that the Upgrade Guide to MS SQL Server 2008 describe which are the requirements for this upgrade DB platform, and one of them is this:
    "If you use a Java system, you have updated the JDBC driver as described in SAP Note 639702"
    ... the updated of JDBC driver when we have in system a Java part, like it has in this case! But I´m with a serious problems to find in SAP System Files in Windows 2003 Server the four files that is mentioned in that note 639702. I can´t find it anywhere... in note says:
    Depending on the SAP release and the system configuration, the driver files base.jar, util.jar, sqlserver.jar, and spy.jar are available in an installed system at:
    (NetWeaver'04, Java:) usrsap<SAP SID>JC<InstanceNumber>j2eejdbc
    (NetWeaver'04, ABAP+Java:) usrsap<SAP SID>DVEBMGS<InstanceNumber>j2eejdbc
    (NetWeaver 2004s:) usrsap<SAPSID>SYSexe<NUC|UC>Platformmssjdbc
    But... still I didn´t find them! I also read other note 1109274 - New JDBC driver for NetWeaver 7.0 and higher but even so I still can´t find it!
    Can you help me to find this files on my operation system? I have to update that JDBC... but of course for this task I have to find it first!!!
    Best regards,
    João Dimas - Portugal

    Hi,
    Have you considered the possibility that the directory that was supposed to contain the jdbc drivers has been replaced by a recent kernel upgrade and you never noticed?
    Anyway, looking forward, put in a new set of JDBC drivers in the correct location.
    Also, with reference to the following point from the first note:
    Check your JDBC Driver version before you download it. To do this, unpack the attached check tool SAPCheckVersion in the relevant JDBC directory (refer to the previous paragraph). Then open a command prompt there and execute the following command:
    SAPCheckVersion.cmd <server name> <username> <password>
    Replace <server name> with the name of the database server, <username> and <password> with the logon data of an SQL user (for example, sa or SAP<SID>DB). If you call SAPCheckVersion.cmd without a parameter, the system displays detailed help. The tool supports both DataDirect and Microsoft drivers.
    *The download name tells you which version of the driver you need to download from SAP Service Marketplace.*
    Run this SAPCheckVersion and find out which drivers you need to download and then download them and use them.
    Regards,
    Shitij

  • Upgrade MS SQL 2005 platform to MS SQL 2008 - Update the JDBC driver issue

    Hello to all,
    I´m planning to do an upgrade of a sap system (SAP ECC 6.0) from SQL Server 2005 to an SQL Server 2008 but I´m facing with a little problem. This system has two stacks - ABAP + JAVA - and because of that the Upgrade Guide to MS SQL Server 2008 describe which are the requirements for this upgrade DB platform, and one of them is this:
    "If you use a Java system, you have updated the JDBC driver as described in SAP Note 639702"
    ... the updated of JDBC driver when we have in system a Java part, like it has in this case! But I´m with a serious problems to find in SAP System Files in Windows 2003 Server the four files that is mentioned in that note 639702. I can´t find it anywhere... in note says:
    Depending on the SAP release and the system configuration, the driver files base.jar, util.jar, sqlserver.jar, and spy.jar are available in an installed system at:
    (NetWeaver'04, Java:) usrsap<SAP SID>JC<InstanceNumber>j2eejdbc
    (NetWeaver'04, ABAP+Java:) usrsap<SAP SID>DVEBMGS<InstanceNumber>j2eejdbc
    (NetWeaver 2004s:) usrsap<SAPSID>SYSexe<NUC|UC>Platformmssjdbc
    But... still I didn´t find them!  I also read other note 1109274 - New JDBC driver for NetWeaver 7.0 and higher but even so I still can´t find it! 
    Can you help me to find this files on my operation system? I have to update that JDBC... but of course for this task I have to find it first!!!
    Best regards,
    João Dimas - Portugal

    Hello John Feely,
    Yeah I already know that you mentioned! In my first post/previous message I mentioned that, I already read the note 639702 and it was there I read that explanation... regarding that creation that you refer in the case of files are not in those directories, so you said that I could download this four files and put in there... but where? and how..? Sorry but that solution seems does not make any sense!
    I also look other systems with double stack ABAP + JAVA and I one more time I didn´t see that directories or files that are mentioned in that note!! DAMN!
    Any tip?
    Kind regards,
    João Dimas - Portugal

  • JDBC Driver problem when using JDeveloper 10.1.2 with JDK 1.4

    I hope someone can help me solve this problem (which I am sure others have encountered).
    The JDK that is downloaded together with JDeveloper 10.1.2 is JDK 1.4.2. However, I believe the JDBC jar files that comes together with JDeveloper 10.1.2 are for JDK 1.2 : classes12.jar, classes12dms.jar and nls_charset12.
    What I did was I replaced the JDeveloper 10.1.2 JDBC (JDK 1.2) jar files with the JDBC jar files from JDeveloper 10.1.3 download i.e. ocrs12.jar, ojdbc14.jar, ojdbc14dms.jar and orai18n.jar and then create a new JDBC Library which references these new jar files. I was able to successfully run my applications (under my modified JDeveloper 10.1.2) using this new JDBC library (instead of the original 'Oracle JDBC' library). However, when I created a Database Connection in this modified JDeveloper 10.1.2, the connection was unsuccessful. I received the error message "Unable to find driver: oracle.jdbc.driver.OracleDriver".
    My organisation requires me to use JDK 1.4.2 and therefore I cannot use JDeveloper 10.1.3 (which I did not encounter any JDBC problem) as it is certified to run only on JDK 1.5.
    Please help. Thanks.

    JDev 10.1.2 is quite old, and was never certified for Windows 2008.
    No need to post multiple threads - same question as {thread:id=2271522}

  • What is the impact of upgrading jdbc drivers from 9.2 version to 10g driver

    Hi,
    My application is built on Oracle 9.2 with 9.2 version jdbc drivers.
    To use Java objects mapping with Oracle object TYPES (for ex. STRUCT),
    I had to go for 10g jdbc drivers. Otherwise, I am getting an error:
    java.sql.SQLException: Non supported character set: oracle-character-set-178
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:829)
    at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactory
    Thin.java:150)
    at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:1
    14)
    at oracle.sql.CHAR.<init>(CHAR.java:109)
    at oracle.sql.CHAR.<init>(CHAR.java:133)
    at oracle.jdbc.oracore.OracleTypeCHAR.toDatum(OracleTypeCHAR.java:143)
    at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:385)
    at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:560)
    at oracle.sql.STRUCT.<init>(STRUCT.java:95)
    at oracle.sql.OracleSQLOutput.getSTRUCT(OracleSQLOutput.java:95)
    at oracle.sql.STRUCT.toSTRUCT(STRUCT.java:328)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt
    atement.java:2025)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt
    atement.java:2148)
    I would like to hear from you that, what is the impact on the existing application if I upgrade
    jdbc drivers from 9.2 version to 10g version?
    Please do mention all the impact.
    Vyshu

    JDBC 10g works just fine against 9.2 database. See the interopeability matrix on the JDBC portal http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Kuassi - blog http://db360.blogspot.com/

  • Upgrade of JDBC driver

    Dear all,
    As of now i am using jdbc driver and it is working very fine for ms-sql-2005.
    Now new system has come into landscape ms-sql-2008 64bit os.
    now my comunication channel showing error need to upgrade my jdbc driver.
    So please help me how i need to upgrade. If i do any upgrade there will be any effect for the present comunication channel which are working.. to ovide this what we need to take care.. i have gon through this document. but is this same we need to do for sap-pi-7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
    Regards
    Vijay

    Hi,
    As per document i have done the deployment now all the channels which are working for ms-sql2005 are throughing errors..the error is
    Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://xxxxxxxx:1433;databaseName=yyyyy': UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 49.0)
    So now what we can do again redeploy the  old file or any other option.
    there might me new  driver class and url format for sqlserver 2008.. if nay one knows that please share that. as rite now i am using..
    Driver class: com.microsoft.sqlserver.jdbc. SQLServerDriver
               URL :jdbc:sqlserver://<db_Server>:port;databaseName=< db_name>
    Regards
    Vijay
    Edited by: vijay Kumar on Feb 24, 2009 8:34 PM
    Edited by: vijay Kumar on Feb 24, 2009 8:36 PM

  • JDBC Driver Upgrade

    Hi,
    I need to update the JDBC driver in Portal server.
    Can any body explain me as to what are the steps involved and where we can find the JDBC driver.
    Thanks & Regards,
    Vijith

    Hi Vijith,
    This thread may help you out
    Updating JDBC Drivers
    Regards
    Radhika Kuthiala

  • Re: Download JDeveloper 10.1.2.2.0 (BUILD1929) No jdbc driver for 1.4

    This is the most up to date build for this version which runs with JDK 1.4
    but it does not have the ojdbc14 and ojdbc14dms jar files. I added them to the
    <jdev_home>/jdbc/lib directory. I cannot seem to change the Libraries classpath
    so that the IDE can see these files. When I go to tools>Manage Libraries and pick the Systems Libraries> Oracle JDBC I can only View the classpath. Where can I change the classpath so that JDev will include it in this View?

    I tried that but the choice would not stick. When I set it to 1.4 it changed back to default. I looked in the JDev 10.1.3 directories and they don't have the 1.4 jre. I just added the drives as a new user library and that was successful. I was getting a java.lang.NullPointerException from my servlet. I thought it was the jdbc driver but thats not the problem. My connection object is undefined or null when I send a bad password parameter into the database. I debugged it and I know it is throwing a SQLException which I am catching the problem is that because of the state of the object myservlet is frozen and the only thing I could do was exit. I would like to put up a page before I exit but the situation is not allowing me to do so. Do you know a way to do this?

  • Can't connect using OCI JDBC driver in OC4J 10.1.3.3 standalone

    Hi all,
    I've recently upgraded my JDev from 10.1.3.2 to 10.1.3.3 and now I'm unable to establish any OCI connections with my local Oracle 10.1.0.4 database. Not even through a connection pool. The strangest thing is that when I test an OCI connection running from JDeveloper it works fine and the JDBC jars and the oci client are exactly the same.
    The error is always the same when I execute a test on a connection pool using the OCI driver:
    WARNING J2EE DS-00001 Exception occurred testing connection. Exception: java.sql.SQLException: Closed Connection.
    If I just change the driver to the THIN one, the same test works. If I take the same URL from the OCI test and use it in a test class and run it inside JDeveloper, it works also.
    I've even downloaded the instant client 10.1.0.5 (which happens to be exactly the same version of the JDBC driver that comes with JDev 10.1.3.3) and tried to use it with no success.
    THIN connections are working just fine. The problem happens only when I try to connect via OCI and this problem was not happening in version 10.1.3.2.
    Any help?

    I found the cause of this problem. It turns out that you must be very careful with the environment variable ORACLE_HOME. On Windows, normally, we don't even set this variable because most applications are able to get it from the system's registry.
    Well, it happened that I've edited the script start_oc4j.bat and, for organization reasons, I set the ORACLE_HOME variable with my JDeveloper's home directory (which is the same as my OC4J standalone's). By doing that, I kind of confused the OCI client. Once I removed the "set ORACLE_HOME=C:\JDev" line from the script, everything worked just fine again.
    So, always remember: avoid setting environment variable ORACLE_HOME when using Windows and, if you must set it, be sure to do it right.
    Regards,
    Eduardo.

Maybe you are looking for