JDBC Thin Client and Oracle Long Datatype

I am using Wepshere 4.0.2 , JDBC 2.0 (thin driver) and oracle 9i.
I have a procedure which takes Oracle Long Datatype as its parameter.
I use following code to execute procedure.
String dataforsql="AAA000000003 123123 07/01/200301/01/2003";
byte[] bytes = dataforsql.getBytes();
InputStream is = new ByteArrayInputStream(bytes);
cstmt=conn.prepareCall("call nscw.CPPF_SAVEPDCRAWTABLE2(?,?,?)");
cstmt.setAsciiStream (1, is,bytes.length);
The above code works perfectly for data upto 4000 bytes. Once the data crosses the 4000 mark.
i get a procedure error
ORA-01460: unimplemented or unreasonable conversion requested

cstmt.setAsciiStream (1, is,bytes.length);Oracle's support for CLOB (and BLOB) columns using set{Ascii,Binary}Stream() generally s*cks. You'll have to read Oracle's own JDBC manual (you can read it online at http://technet.oracle.com) for whatever sequence they recommend.
E.g. for insertion and updation of CLOBS, you're supposed to use an oracle-specific function (EMPTY_CLOB()) as the value in the INSERT/UPDATE statement, and then do a SELECT, getClob(), and use Clob APIs to update the actual column value. At least officially. Or you have to use some Oracle-specific APIs in oracle.sql.Connection and oracle.sql.CLOB.

Similar Messages

  • JDBC Thin Client for Oracle 8i 8.1.7

    Hi,
    Trying to Driver.getConnection(.....); to an Oracle 8i 8.1.7 DBMS. My client: NT4 and JDK1.3.1 and 100% Java Thin Client "classes12.zip" and "nls(?)_classes12.zip" for JDk 1.2.x
    getConnection(....) is is timing out and exception says "network adapter could not establish connection....". No doubt, the paramters of getConnection(<parameters>) are valid and correct.
    Is it really because the downloaded classes are only for JDK 1.2.x and do not work with jdk1.3.1? In this case I will install jdk 1.2.x again at client host.
    Or is there another thing I have not concerned yet? Note I CAN connect to the host the Oracle 8i DBMS is running on (via BEA Jolt to several Tuxedo services as well as via an HTTP request to an CGI script). So the naming service works. Also te host is alive. A collegue confirmed that the database i want to connect to is also alive and running.
    Any experienced JDBC programmer who can help me?
    Greetings from Germany, hans

    Hi,
    If you get this error, check the follwing things,
    1. make sure you created a listner for your database.
    2. make sure the created your DB listner is up & running as service.
    3. try to connect to database & see that that DB is open for e-transactions (make sure the DB is not in SHUTDOWN mode).
    These checks will solve your problem.
    Good luck,
    Rajesh Singh.

  • JDBC Thin driver and Oracle names server

    Hi
    Any managed to get the Thin driver to user the Names Server aliases, ie I want to connect to service xxx like
    jdbc:oracle:thin:@xxxx and not specify instance and port as the DB is running in a multiple machine cluster and can be switched to a different machine...
    With OCI driver I have managed on NT but having problem with OCI/Linux and Beta 10g...
    Tks
    Andre

    I don't have much experience with OCI from JDBC, but should work like any other kind of connection via SQL*Net. I.e. I would check if connection can be made using SQLPlus, check environment variables (ORACLE_HOME etc.) of 9iAS instance, check version of JDBC classes and their readme.txt. There are also some settings in sqlnet.ora file which might affect this (like default domain - try to use full name of alias - OCRL.WORLD or whatever alias you have there). You may also want to switch tracing for SQLNet and/or listener on (it's not easy to find in doc how to do it, though) to check if there is at least some traffic between klient and server...
    Myrra

  • JDBC Thin-Driver and Oracle Stored Procedure

    I've got a Oracle stored procedure which returns a Oracle record.
    How can I retrieve the record in java using the JDBC Thin-Driver ?
    Record:
    TYPE messagerec IS RECORD
    (log_level VARCHAR(2), timestamp VARCHAR2(19), text VARCHAR2(200));

    Using PL/SQL BOOLEAN, RECORD Types, and TABLE Types:
    Oracle SQLJ and JDBC do not support calling arguments or return values of the
    PL/SQL BOOLEAN type or RECORD types. Also, when using the Thin driver, they
    do not support calling arguments or return values of PL/SQL TABLE types (known
    as indexed-by tables). TABLE types are supported for the OCI driver.
    Check the following guide,
    http://otn.oracle.com/tech/java/sqlj_jdbc/pdf/a96655.pdf

  • JDBC thin driver and Oracle 8.1.6

    Hi,
    I have installed Oracle 8.1.6 on Windows NT 4.0 with service pack 4 and using Oracle JDBC thin driver driver (classes111.zip). My application is multithreaded, but each thread maintains its own connection (and own set of Statements). Things are okay in single threaded mode, but in multi threaded mode, I get weird errors!
    1. My resultsets are SCROLL_SENTITIVE and UPDATABLE
    2. Sometimes, while updating a row, "No current row" SQLException is thrown, although a row exists that satisfies my select criteria
    3. I am also calling executeUpdate() for inserting new rows and such rows are not seen by successive resultsets!
    Appreciate any hints! Thanks!

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

  • Connect to 10g RAC over JDBC thin client

    I'm trying to connect to multiple Oracle 10g databases (failover) over the JDBC thin client, and when I run the following, I get:
    java.sql.SQLException: Io exception: NL Exception was generated
    connection = DriverManager.getConnection("jdbc:oracle:thin:@DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = dbdev) (PORT = 1521))) (CONNECT_DATA = (INSTANCE_NAME = orcldev)))", "scott", "tiger");
    I eventually want to put multiple ADDRESSes in that string, but right now I'm trying to get it to work with just one! I've tried multiple variations of this, like changing INSTANCE_NAME to SID or SERVICE_NAME, and using the internal IP address for the HOST dbdev (see below). Here's the tnsnames.ora file used by SQL*Plus on the same client machine:
    ORCLDEV.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
    (CONNECT_DATA =
    (SID = orcldev)
    )

    I found this in Doc ID #213412.1 on metalink.oracle.com:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTIO N = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = osol1.us.oracle.com) ( PORT = 15000)) (ADDRESS = (PROTOCOL = TCP) (HOST = rmsol1.us.oracle.com) (POR T = 12002))) (CONNECT_DATA = (SERVICE_NAME = PROD))) ", "scott", " tiger"); That's how you would specify the locations of two different database servers for failover. BEA has an article on doing it with Weblogic and Oracle:
    http://e-docs.bea.com/wls/docs81/jdbc/oracle_rac.html

  • RMS installation error: JDBC-thin client oracle/jdbc/driver/T2CConnection.getLibraryVersionNumber()

    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)

  • JDBC THIN CLIENT in V$SESSION inactive

    Hello DBA's
    I have too many inactive session of JDBC thin client. Please suggest can we kill them?? or any other alternative
    SID SERIAL# USERNAME PROGRAM STATUS Inactive_Hours
    12 74 APPS JDBC Thin Client INACTIVE 1772.69806
    13 31 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69806
    18 62 APPS JDBC Thin Client INACTIVE 1772.69806
    20 1 APPLSYSPUB JDBC Thin Client INACTIVE 952.465556
    22 9 APPS JDBC Thin Client INACTIVE 1772.69806
    26 55 APPS JDBC Thin Client INACTIVE 92.1361111
    30 2 APPLSYSPUB JDBC Thin Client INACTIVE 1772.61361
    31 7 APPS JDBC Thin Client INACTIVE 1772.69667
    53 29516 APPS JDBC Thin Client INACTIVE 521.344167
    54 35 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69278
    69 7 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69278
    Can we kill them or any particular check before killing them??

    I am not sure how you have computed the "Inactive Time".
    You need to know if the middle-tier is configured to re-connect when necessary OR whether the middle-tier process will fail at the next SQL / operation it attempts to execute. So middle-tier processes can handle a kill gracefully, others cannot.
    The usernames you list indicate that this is an Oracle EBusiness Suite install. You need to identify the services on the application server that correspond to these sessions and whether they can handle a kill gracefully.
    Why do you need to kill sessions ?
    Hemant K Chitale

  • ADF panel opening too many JDBC Thin Client database sessions.

    Hi All,
    I have several ADF Panels, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    Each ADF panel as I said contains several View Link queries, and links under the form of Jbuttons to other ADF Panels running other ADF View Links.
    Running the ADF Panel as described here opens up to 21 database sessions displaying as “JDBC Thin Client” when I look them up from v$session.
    Why do I end up with that many database sessions.
    Why doesn’t it just use one or two database sessions to run all these View Links? It seems that it is opening one database session for each of these view links.
    How can I change this destructive behavior? I only one to see one or two database sessions for the entire ADF panel no matter how many ADF View Links it contains.
    Your suggestions are most appreciated.
    Thanks.
    Bobby A.

    Thanks for your response.
    I took a quick look at the docs you pointed me to. It seems that I can set some parameters in bc4j.xcfg of each application module Home to control number of database connections that the application module will create. In that case maybe you can recommend which parameters and what value they should be set to.
    Your response will be most helpful as my background is rather in database admin and not java.
    Thanks.
    Bobby A.

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • 12.1.3 EBS with JDBC Thin Client

    Hello,
    I have question about JDBC Thin Client, typically dbc file and context file define connection to RAC Database using thin client, as far as I know jdbc thin client does not support TAF feature when there is database node down, the connection not direct to surviving node until relogin.
    APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(LOAD_BALANCE\=YES)(FAILOVER\=YES)(ADDRESS\=(PROTOCOL\=tcp)(HOST\=XXXX-SCAN.xxx.com)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=DBSID)))
    <jdbc_url oa_var="s_apps_jdbc_connect_descriptor">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=XXXX-SCAN.xxx.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DBSID)))
    And parameter APPS_JDBC_DRIVER_TYPE=THIN in dbc  file, is it must to be THIN?  What is the function of FND_JDBC_USABLE_CHECK=false/true?
    Also to  make connection work to surviving database node, we need to restart process OACORE that connect to down node, is that expected behavior and workaround?  Is there a way or is it supported to use THICK client in R12 EBS?
    Thank you.

    Please see the following docs.
    Is Transparent Application Failover (TAF) Supported on the JDBC Thin Driver? (Doc ID 297490.1)
    Configuring and Managing E-Business Application Tier for RAC (Doc ID 1311528.1)
    Thanks,
    Hussein

  • OS_USER not correct when using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    Could you please provide further details on what do you mean with OS_USER?
    The application is a Java applet based application
    that connects to the database using JDBC Thin client.
    on 9i the OS_USER comes up as the user running the
    applet but in 10G it is coming up as the user account
    that installed 10G on the DB server.
    Are you referring to the user provided to perform authentication against database, i.e. a database user?
    How do you know this user is being changed?
    ~ Madrid

  • OS_USER not correct when connecting using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    What is the return of this command?
    SELECT sys_context ('USERENV', 'OS_USER') FROM dual;
    Is it the DB user or the OS user?

  • OracelAS Report services, Thin Client and JBoss

    Dear all:
    I have to run my oracle reports using Jboss. What I understand is this that I need to have Oracle AS, and oracle Thin Client to accomplish this. Please tell me from where I can find Oracle thin Client on oracle website.
    My second question is this that I have installed Oracle AS but the opmn.xml file has no <ias-component > for report server, please tell me why it is not there...
    I would be grateful for ur help

    I have installed the Oracle AS and the reports services... I have also installed the Stand Alone J2EE Thin Client (http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/Tools/index.html)
    My current web project uses JBoss and I have to show oracle reports keeping the current environment.
    I have followed the steps provided on the doc mentioned in the above link.
    first i did the following steps ( please refer to the text of that readme doc below)
    (//text of readme doc, I have done these steps
    1. Deploy THINCLIENT_HOME/reports/j2ee/reports.ear on the J2EE application server.
    2. Add the following JAR files to the classpath of the J2EE application server:
    * THINCLIENT_HOME/reports/jlib/rwrun.jar
    * THINCLIENT_HOME/jlib/zrclient.jar
    3. Use THINCLIENT_HOME/vbroker4/lib/vbjboot.jar while starting the application server.
    but i cannot understand what is written just next to the above llines in that doc I am pasting those points from that doc
    (text of readme doc:
    The following section provides detailed instructions on carrying out the above 3 configuration steps with OC4J Standalone Distribution 10g (9.0.4). You need to consult your J2EE application server's documentation to carry out the same steps for your application server.
    1. Add the following to OC4J_HOME/j2ee/home/config/server.xml
    <application name="reports" path="<THINCLIENT_HOME>/reports/j2ee/reports.ear" auto-start="true" />
    2. Add the following to OC4J_HOME/j2ee/home/config/http-web-site.xml
    <web-app application="reports" name="web" root="/reports"/>
    3. Add the following to OC4J_HOME/j2ee/home/config/application.xml
    <library path="<THINCLIENT_HOME>/reports/jlib/rwrun.jar"/>
    <library path="<THINCLIENT_HOME>/jlib/zrclient.jar"/>
    according to what i understood i went to OC4J which is under my Oracle_Infra directory and then completed the above steps
    after that I ran the command (according to this doc):
    java -Xbootclasspath/p:<THINCLIENT_HOME>/vbroker4/lib/vbjboot.jar -jar oc4j.jar
    the result of this command is following
    06/02/09 14:57:37 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    and then it never comes back to command prompt
    Now after all these steps...i don't understand what to do next and my problem is still there which is How to deploy reports made by oracle reports from my web project links
    please help
    Waqas

  • Not able to find 10.1.0.4 jdbc thin client driver

    I am trying to download 10.1.0.4 jdbc thin client driver, but I am not able to. I am using this link http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html. But It does not show 10.1.0.4. Can anybody tell me how I can download this driver ? Any help is much appreciated
    Thanks

    I would very much doubt that Oracle ever returned an empty String. Oracle treats (unless something has dramatically changed in 10.x) empty strings as null. This is not related to the JDBC driver. What do you get when you select the values using SQL*Plus?

Maybe you are looking for