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.

Similar Messages

  • Oracle Drive Problem

    I am having a strange problem with Oracle Drive (v10.2.0.0.5 WinXP)
    I am connecting to Portal on AS10g R2 10.1.2 SEOne (SLES 9.3)
    http://myportal.com:7779/dav_portal/portal
    The installation went smoothly, and I can connect to the portal, login, and see the folders, but there are no files inside (I tried logging in both as a user with priviliges to manage content and as orcladmin).
    When trying to copy items to the folders, only the folders are copied, and not the files inside them. I get the following error for each file:
    There was a problem saving filename.pdf. Error 5, Access is denied.
    Subsequently, I can see the folders in the portal (with no files, of course). What is going on? Why is it saving the folders but not the files?
    Thanks,
    DC

    One more thing. I did find an FAQ doc for Oracle Drive, and it describes this error, but the suggested workaround did not fix it for me.
    http://www.oracle.com/technology/products/cs/user_info/ocontent_services/drive_index.html#015010
    FAQ ID: 015010
    Updated: 2006-08-14
    Version: 10.1.1, 10.1.2, 10.2
    When viewing a list of files in a folder, a message says "There was a problem saving filename. Error 5, access denied."
    You may see this error message if you are viewing a list of files in a folder to which you only have read access. To prevent this error message from appearing, set your Windows Explorer windows to open in List view or Details view.

  • Oracle driver problem

    Hello,
    I'm currently trying to install the Jive forum application on the WAS. The installation itself went very well, but I have a problem with the initial setup.
    At a certain point I have to give the DB driver class and the according connection string.
    I have a oracle DB installed for this and was using the following driver class:
    oracle.jdbc.driver.OracleDriver
    As error jive setup gives me :
    Unable to load database driver 'oracle.jdbc.driver.OracleDriver' - make sure it is in your appserver's classpath.
    I have deployed the classes12.jar as described in
    http://help.sap.com/saphelp_nw04/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
    This also did not solve my problem.
    Does somebody has some experience  with this?
    Thanks a lot!
    Regards,
    Peter

    Hi,
    how likely is it that your DB connect code produces the problem ? Did you try this question on the database forum ?
    Frank

  • JDBC pooling Oracle driver Socket read timed out

    I run Java EE application on Glassfish server v3 together with Oracle 12 DB on the same machine under Windows Server 2012 64bit. I use latest ojdbc7 driver.
    Connection pool config:
      <jdbc-connection-pool validation-table-name="DUAL" steady-pool-size="20" statement-cache-size="100" associate-with-thread="true" statement-timeout-in-seconds="30" idle-timeout-in-seconds="60" max-wait-time-in-millis="2000" validate-atmost-once-period-in-seconds="20" datasource-classname="oracle.jdbc.pool.OracleDataSource" pool-resize-quantity="5" max-pool-size="60" res-type="javax.sql.DataSource" name="dbPool" is-connection-validation-required="true">
      <property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
      <property name="user" value="xxx"></property>
      <property name="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"></property>
      <property name="password" value="xxx"></property>
      <property name="portNumber" value="1521"></property>
      <property name="databaseName" value="orcl"></property>
      <property name="serverName" value="127.0.0.1"></property>
      <property name="oracle.jdbc.ReadTimeout" value="300000"></property>
      <property name="oracle.net.CONNECT_TIMEOUT" value="10000"></property>
      </jdbc-connection-pool>
    After 2 or 3 hours, when there is more than 1 user (3-5) using my application, it stops responding and I get this in glassfish logs
      javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=152;_ThreadName=Thread-2;|RAR5038:Unexpected exception while creating resource for pool dbPool. Exception : javax.resource.spi.ResourceAllocationException: Connection could not be allocated because: IO Error: Socket read timed out
      Local Exception Stack:
      Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
      Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO Error: Socket read timed out
    From the database side it looks like this
    Fatal NI connect error 12560, connecting to:
      (LOCAL=NO)
      VERSION INFORMATION:
      TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
      Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Time: 13-JUN-2014 03:14:49
      Tracing not turned on.
      Tns error struct:
      ns main err code: 12560
      TNS-12560: TNS:protocol adapter error
      ns secondary err code: 0
      nt main err code: 0
      nt secondary err code: 0
      nt OS err code: 0
      opiodr aborting process unknown ospid (3404) as a result of ORA-609
    When I just reset db listener everything works ok for next 1-2 hours (depends on application load). So temporary solution is to run bat script from windows scheduler to reset the listener every 1h.
    I tried everything I could find - applied these parameters:
      - Sqlnet.ora:
      SQLNET.INBOUND_CONNECT_TIMEOUT=180
      SQLNET.EXPIRE_TIME=5
      - Listener.ora:
      INBOUND_CONNECT_TIMEOUT_LISTENER_IPC=120
    But still without success

    Is the problem here just that you need a connection pool that closes idle connections?  Some pools will close idle connections after a time out period.  And the pool lets you set that time out period.  If the pool you are using doesn't provide that then use a different pool.

  • JDBC sender adapter - driver problems

    Hi.
    Iu2019m struggling with a little problem regarding the JDBC sender adapter, querying an Oracle database.
    Iu2019m making a simple SELECT statement, where one of the fields is of the typeu201DTIMESTAMP(0) WITH LOCAL TIMEu201D.
    Making the query in a SQL client works just fine, but in the JDBC sender adapter, it generates this error u201DError during conversion of query result to XML: java.sql.SQLException: Session Time Zone not set!u201D
    Iu2019ve searched for answers on numerous forums, and found one place, where the following where the solution:
    >>> Hi. The issue is that the driver itself needs to have a time zone
    >>> set. You have to call setSessionTimeZone() on the connection object.
    Unfortunately it is a bit hard to call this function in the adapter.
    Any of you guys have an idea what to do?
    I can add, that making a query, where no date fields are selected, works fine in the adapter.
    Regards...
    Peter

    Problem solved...
    Put a conversion (CONCAT, SUBSTR, TO_CHAR, etc.) around the date field you are about to fetch, and it works just fine.

  • JDBC Type 3 driver problem with WLS 6.1 SP4

    We have Oracle 8.1.7.4 client running on WebLogic 6.1 SP4 on Solaris 2.6 connecting to Oracle OPS 8.1.7 running on Solaris 2.6. We are getting core dumps while running stress testing using Load Runner for 100 concurrent users. The performance is very good for a while in the beginning of the test and all of a sudden we see requests for connections queueing up on the WLS and the server crashes. Please send us details of any previous instances any one faced similar problem and the fix applied will be very helpful.
    Regards,
    Raj

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions cannot be answered. We recommend that you post this thread to the SQLJ/JDBC forum.
    The URL is: http://forums.oracle.com/forums/forum.jsp?forum=99
    Thanks, OTN Team

  • URGENT! Oracle driver problem.

    Hi all,
    i have an urgent question:
    I have a program that generates SQL code automatically where each data element is included in single quotes, equal if it's an integer, date or string value. If I try to insert this SQL code into an Oracle database using the thin-driver I get an error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    But if I insert the same SQL code manually by copy and paste, it works fine.
    Is there any problem with the Oracle thin-Driver you know?
    Thanks for your help.
    Marko

    I cannot post the original SQL string, I'm sorry. But it looks like this:
    INSERT INTO tab_name (Col_1,Col_2,COl_3...) VALUES ('Val_1','Val_2','...')
    where Col_i are the column names and Val_i are the data values which are sometimes strings and mostly integers.
    The code that creates this string is as follows:
         //Bereite den n�chsten Datensatz vor
         public int NextRecordset(){
              iIndex=0;
              try{
                   do{
                        sReadLine=sfFile[iIndex];
                        iIndex++;
                   while (!(sReadLine.equalsIgnoreCase("<patient>")));
                   sfFile[iIndex-1]="<patient done=1>";
                   sReadLine=sfFile[iIndex];
                   while (!(sReadLine.equalsIgnoreCase("</patient>"))){
                        //suche nach dem Anfang des Spaltennamens (in Tags eingeschlossen),
                        int iStartIndex=sReadLine.indexOf("<")+1;
                        //suche nach dem Ende des Spaltennamens
                        int iEndIndex=sReadLine.indexOf(">");
                        //und kopiere ihn in das Spaltennamen-array.
                        sfHeaders[iCounter]=sReadLine.substring(iStartIndex,iEndIndex);
                        //Das dazugeh�rige Datum beginnt unmittelbar dahinter
                        iStartIndex=iEndIndex+1;
                        //und geht bis zum Beginn des SchlussTags.
                        iEndIndex=sReadLine.lastIndexOf("<");
                        //Kopiere das Datum in das Daten-Array
                        sfData[iCounter]=sReadLine.substring(iStartIndex,iEndIndex);
                        iCounter++;
                        iIndex++;
                        //Lies die n�chste Zeile im Datensatz.
                        sReadLine=sfFile[iIndex];
              catch(Exception e){
                   System.out.println("Cought: "+e.getMessage());
                   return (-1);
              return(0);
         //Baue aus den gesammelten Daten einen SQL-String auf
         public String getSQLString(String SQL){
              iCounter=0;
              sSQLString=SQL+" (";
              for (int count=0;count<sfHeaders.length;count++){
                   if (!(sfHeaders[count].equals("Abbruch"))){
                        sSQLString+=sfHeaders[count];
                        iCounter++;
                        sSQLString+=(sfHeaders[count+1].equals("Abbruch") ? ") VALUES (":", ");
                   else{
                        count=sfHeaders.length;
              for (int count=0;count<iCounter;count++){
                   sSQLString+="'"+sfData[count]+"'";
                   sSQLString+=((count+1)==iCounter ? ")":", ");
              return (sSQLString);
    where sfHeaders is a string array containing the column names and sfValues is also a string array containing the values.
    The parameter 'SQL' has the value "INSERT INTO tab_name".
    sfFile is a string array that contains the image of an XML-file.
    sREadLine is just a string.
    If you see a relevant error, please post it. I don't see one.

  • P6 8.3 Professional Typical Install Oracle Driver Problem

    Hello,
    I have installed P6 8.3 EPPM on a machine on top of Oracle 11g database. Now I just want to see how P6 Professional interface looks like so I am trying to do P6 Typical Install.
    After selecting "Typical" in installation screen, it asks for
    1. Oracle Connection String
    2. UserName and Password (Database Alias is readonly and set to PMDB)
    I have database with SID orcl running on port 1521, my question is what should I give for connection string and username and password. Also I didn't get significance of PMDB alias.
    I tried orcl and //machine:1521/orcl in connection string and in username/password I tried PUBUSER (a schema present in oracle database) and its password, but get this error
    Bad public user name or password. Cannot load OCI DLL: oci.dll;
    Can someone help here?
    regards, Prasad

    Hello Daniel,
    this is how my Path=E:\instantclient_11_2;...... variable looks like. I have put tnsnames.ora and sqlnet.ora in E:\instantclient_11_2 and this is how
    TNS_ADMIN=E:\instantclient_11_2 looks like.
    Contents of tnsnames.ora
    # tnsnames.ora Network Configuration File: E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.27)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    Contents of sqlnet.ora
    # sqlnet.ora Network Configuration File: E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    still the same error
    Database connection failed: Error Message:
    Bad public user name or password. Cannot load OCI DLL: oci.dll;
    I tried both ORCL and //172.16.3.27:1521/ORCL as connection strings.
    should instant client used be 32 bit as well?
    regards, Prasad

  • Oracle 8.1.5 JDBC driver problem with LONGVARCHAR

    Hi, I'm having problem with 8.1.5 release on Solaris with the
    JDBC type 4 driver (thin). If I create the following table
    create table test1 (col1 NUMBER, col2 LONG);
    Using JDBC driver to insert into the second column any string
    longer than 4000 characters causing run time exception. The type2
    driver works fine, but type2 is slow.
    String sql = "insert into test1 (col1, col2) values (1099,?)";
    PreparedStatement stmt ;
    stmt = conn.prepareStatement(sql);
    // create a string with very long value , bigger than 4096
    stmt.setString(1,string);
    stmt.executeUpdate();
    runtime exception:
    java.sql.SQLException: Data size bigger than max size for this
    type
    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.check_error(Compiled
    Code)
    at oracle.jdbc.ttc7.TTCItem.setArrayData(Compiled Code)
    at
    oracle.jdbc.driver.OraclePreparedStatement.setItem(Compiled Code)
    at
    oracle.jdbc.driver.OraclePreparedStatement.setString(Compiled
    Code)
    at testi.main(Compiled Code)
    Any help is appreciated.
    Thanks
    Steve
    null

    Post the full stacktrace here
    Also you might want to post jdbc related questions to weblogic.developer.
    interest.jdbc
    Kumar
    DreamNEON wrote:
    Hello,
    the NSAPI integration works, also the JSP files.
    But I have still problems with the Jdriver for my Oracle 8.1.5.
    I get the message :
    Failed to invoke startup class
    weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.JdbcStartup
    when the WebLogic Server is started.
    Any ideas or hints about that?
    Thanks in advance
    Armin

  • JDBC Connection Driver Problem for Oracle in a J2EE servlet/class

    Hi,
    I am having a big problem with setting up a JDBC connection with my oracle database, I have been trying to fix it for about 6 hours now with no joy, I have read that many threads about JDBC, class paths etc.. that i dont know which way is up any more!!
    Here is the issue:
    (Please bare in mind that I am new to this when posting replies)
    I have a Web Application set up as a project in the netbeans IDE. I have a servlet which creates a new object call dbaseFunc which is a public class I have wrote and within this class is a function called getAppConfigCon(). The code for this function is below:
    public Connection getAppConfigCon()
    Connection con = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","cavdev", "password");
    catch (SQLException e)
    e.printStackTrace();
    catch (ClassNotFoundException e)
    e.printStackTrace(System.out);
    return con;
    The database is Oracle XE and is installed on the same machine I am developing on, the database is up and I can connect to it via the netbeans IDE database interface after telling it where the driver is (C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.zip). Obviously this is just IDE functionality and allows you to browse the database objects from netbeans however I now need to know how to tell the jre where the drivers are, right??
    Well like I said multiple forums led me down the classpath route and I have a system environment variable called CLASSPATH set up with the oracle jdbc driver specified as its value, when i run the set command from the command line ( I am running Windows XP Pro) I can see the class path entry in the output as follows:
    CLASSPATH=C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.zip
    When I try to run my web app it doesnt assign the connection object with a value, i.e. when i was debugging my con object was null after calling the method mentioned above. After some time debugging i found a ClassNotFoundException was being thrown when the following command was executed:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Which I understand is because their is a problem with the class path but what is the problem??? The IDE likes the driver so why doesnt the jre.
    I am runnin jdk and jre 1.5, an Oracle XE Database using the netbeans environment.
    Some one please help me, I have spent far to much time on this rather than actually working on my project!!!!
    Thanks
    Keith

    Well After 10.5 hrs I actually sorted this myself, the two problems that were throwing me were this:
    1. Netbeans does not stop the tomcat server when it finishes running the app, you either have to stop the server from the menu or exit netbeans, until the server restarts it will not pick up on any driver files you add to common/lib
    2. You are very right Kiros tomcat does not do .zip files!!!!~~~###
    In order to sort this I had to add the oracle driver as a package to my project using the netbeans ide Project > Libraries > New Jar file, this allowed me to access the oracle classes. Then I had to set the server up to deal with the drivers as well, this meant adding the .jar file (not the latest .zip as it wont work) to the bundled tomcat common lib directory and restart the server via the ide (using the start/stop bat files in the tomcat conf directory doesnt work for some reason when its bundled with netbeans!)
    Thanks for the help guys but in the end it took 10 hrs a lot of reading and 2 bottles of lucozade to keep the brain goin.
    Keith

  • Classpath problem instatiating oracle driver

    Hi everybody,
    I have made a little desktop application that fetches sum data in a oracle database and processes it. The program runs fine when I run it from my IDE. I have downloaded the oracle driver classes ojdbc14.jar . My problem is that I cant seem to set the classpath correct when running the application from commandline.
    I use the command:
    java -classpath .:ojdbc14.jar:jdom.jar QueryBox
    where jdom.jar is for postprocessing the data i fetch out, and QueryBox is the GUI that starts the application.
    The program is started correctly but when I come down to this part in the code:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Then an execption occurs because for some reason it cannot find the OracleDriver class when im runnin from commandline. Any help wud be much appreciated!

    Don't register the driver that way - just do this:
    Class.forName("oracle.jdbc.driver.OracleDriver");That registers the driver class. - MOD

  • Hibernate 3 + Oracle Driver 10g = problem

    Good Day.
    I'm trying to use Oracle 10g driver to work with Oracle 9i Database through Hibernate 3.0.5. And I'm getting the following exception when Hibernate tries to build its SessionFactory:
    11:09:51,831 WARN SettingsFactory:103 - Could not obtain connection metadata
    java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: invalid or unknown NLS parameter value specified
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:648)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:348)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
    1. Hibernate 3.0.5 + Oracle Driver 9i works perfectly.
    2. In Windows (XP) Control Panel -> Regional and Language Options -> Advanced -> Language for non-Unicode programs
    the settings is "Russian". If switch to "English (Unated States)" - the problem dissapears.
    3. Two jars for oracle are included into the project:
    ojdbc14.jar - jar, containing OracleDriver 10g
    orai18n.jar - jar for internationalization
    Could you help me with this Exception, please.
    Best regards,
    Roman

    yorkroad wrote:
    TheAvalanche wrote:
    You need to specify your classes in the persistence.xml by adding the following after the provider-tagTrue...providing they are not already in the same deployment unit (the jar with persistence.xml in it) as they will be automagically registered with the PU.Not with Hibernate as far as I know, or it requires an additional setting in persistence.xml or something (I am not so well-versed in JPA / Hibernate)

  • WLS6.1 SP4 weblogic JDBC driver problem

    Hi,
    We have a big Oracle table (more than 13000000 rows). The query cost by SP2 weblogic
    driver is about 200 milli-second while SP4 cost is more than 200 seconds. Does
    anyone know how to fix the problem? Our Orale is 9.2.0.1. The test program is
    a simple java application running on Sun 5.8, JDK 1.3.1_02-b02.

    amyshuai wrote:
    We are using the weblogic jdbc driver. The connection is from JDBCTxDataSource.
    Problem can be solved by using oracle jdbc driver 9.0.1.4, but we are curious
    why
    the jdbc driver can impact the query performance so much?So all connections are coming through our pool, and you found a performance
    regression in our Oracle driver between sp2 and sp4, which you work around
    by using Oracle's own driver. Is that correct?
    thanks,
    Joe

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

  • Oracle XA driver problem with WLS 7.0.1.0, Oracle 9.0.1

    We are using simplified chinese, after swith to bea jdriver, it messed up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince except webservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error. Is
    there a way to turn off isolation level in workshop? I tried manually edit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

    I did try to change the value in this config file as well, but did not help.
    In fact, the installation default setting is with
    '<transaction-isolation-level>' commented out.
    And when I use bea oracle jdriver, it somehow messed up with database
    character set encoding, so our Chinese characters could not be retrieved
    correctly. And I try to set the encoding of jdriver to 'GBK', it did not
    work.
    "Anurag Pareek" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
    :[email protected]..
    Hello Ma,
    The transaction isolation level value for EJBs backing the JWS files is
    specified in the <transaction-isolation-level> tag in the
    WEB-INF/weblogic-jws-config.xml file of a Workshop project. You can
    manipulate this value to serve your purpose.
    Please do let me know how it goes.
    Regards,
    Anurag
    Workshop Support
    "Ma Jie" <[email protected]> wrote in message
    news:[email protected]..
    We are using simplified chinese, after swith to bea jdriver, it messed
    up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince exceptwebservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error.Is
    there a way to turn off isolation level in workshop? I tried manuallyedit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

Maybe you are looking for

  • Memory upgrade for Satellite A10-S811 PSA10E

    I want to upgrade the memory on my old laptop i've found the manual and read a bit in it. Apparently it uses PC2100 DDR (266 Mhz) has two memory slots and only allows up to 512 mb modules. Is it at all possible to use larger and/or faster modules. I'

  • Looking for a (better) import solution

    Hi All- I have had aperture for a while now, but haven't actually gotten around to using it too much (I had hoped that my wife would adapt, but hasn't, she is still using iPhoto). I was hoping that someone could recommend a method for importing that

  • Adobe photoshop cs6 lags in my 2 month old macbook pro retina

    hi, i had bought a mbp retina 15' 2 months ago. i have installed photoshop cs6 extended. but there was a lag while zooming, while moving the image when zoomed, when using brush, responce comes after 1-3 seconds the command has given. Sometimes i need

  • Flash 8 objects created in Director 10.1.1

    OK, I'm pulling out my hair here. In Director MX2004, with Flash 7 movies, everything was dandy. I was able to create an object in Director and pass it into Flash and all was good: -- In Director myFlashObj = sprite(1).newObject("Object") myFlashObj.

  • How to update Asset transactions

    Hi FI Experts, I've been updating a asset by providing values for ANLC table during asset creation. The asset summary is getting updated properly for the fiscal year. I can see them under Planned Value tab.. But Transactions is not updated. Could any