For Oracle : When will Oracle's JDBC Driver work for Date ?

I try to develop an application that will run on every database.
The only Database I have a problem with is Oracle because of date : I can't use executeQuery or executeUpdate with sql request that use a date field as a parameter.
And this stupid issue is only due to Oracles's non conformity to JDBC Standard.
I know that I can use preparedStatements and that it works, but It's not an issue : This is a minor bug that would be easy to correct so DO IT !
I also know that tit works with SQLJ, but I use Thin client.
I tried to change NLS_DATE_FORMAT, but with timestamp, time format got millisconds and Oracle don't like it ...
No, really, it's a long known bug.
Mike
null

I appreciate the confidence in SQLJ, but since SQLJ runs atop JDBC I would be very surprised if you did not encounter the same issue you are troubled with.
Unfortunately -not already knowing what your problem is- I do not quite understand what you are trying to point out here. Could you give us some code snippets and the expected versus actual behavior, so that we can understand and reproduce your problem? Or, if it is a known issue, would you have a bug assignment for it?
Thank you very much!

Similar Messages

  • Spy for oracle thin jdbc driver

    Does anyone know a good spy utility to intercept the
    query going to the database thru oracle thin jdbc driver?

    If you can post the code, I would be happy to look at. I'm not aware of any 'trapping' mechanism for JDBC, although there may be one. Are you confident that you are 'waiting' on the execute of the SQL? It's very unusual for nothing to happen. In most cases, I would expect a long running query, or that you are getting, but not catching an Exception. Code would help if that's possible...

  • When will a Windows 8 driver be available for the Pixima ip1500?

    When will a Windows 8 driver be available for the Pixima ip1500?

    That's a cop out answer.  I know it's not compatable, there's no driver!  There's no excuse for not providing an updated driver for Windows 8.  There is NOTHING about windows 8 that is so different from Windows 7 that Canon cannot easily delelop a driver for it. If I am forced to buy a new printer because you won't provide a driver for my ip 1500 it wont be a Canon.

  • Data Sources error:[Macromedia][SQLServer JDBC Driver]No more data available to read.

    I have just set up the developer edition coldfusion and a standard SQL Server. When trying to set up a datasource i recieve the following error:  [Macromedia][SQLServer JDBC Driver]No more data available to read. I have no clue what this means. I have tried to find some documentation on this but with now luck. Can anyone help?
    Here are some details:
    SQL SERVER CONNECTION MANAGER:
    Trying to connect to a localhost sql server
    I have TCP/IP Enabled
    Dynamic Ports is set to 0 under IP ALL
    127.0.0.1 is enabled and the port is set to 1433
    COLDFUSION ADMIN:
    server: 127.0.0.1
    port 1433
    username/password set to null (using windows authentication)
    Has anyone ran in to this issue?
    Thanks for helping.

    You can use domain credentials with CF.  To do so you've got to create the datasource in Windows.  Then, in ColdFusion you select ODBC mapping and point it to the Windows DS.
    If I recall correctly, there's a switch in SQL 2005 that you've got to flip to allow SA rights to log in from the network.  I could be way off base on that one though.
    You may want to consider creating a new SQL account with its own password and assigning it to your target database (usually, I grant data reader and writer - your app may vary) and use those new credentials in your JDBC mapping in CF.

  • Will a WD hard drive work with AirPort Extreme to connect with an iPad Air

    Will a WD hard drive work with Airport Extreme to connect by a iPad Air

    If you already have an AE and a WD drive .. the best idea is plug it in and see on a mac in airport utility is the drive recognised.
    If not you have problems.. if it is formatted correctly (Not NTFS mainly) then it can be a drive that is not compatible.
    assuming it works get your ipad and pay for filebrowser or at least download a test copy and see how it goes.
    Always the best way to find out.. try it.

  • HT201758 Will a USB3 External Drive work in the USB2 port?

    Will a USB3 External Drive work in the USB2 port?

    Some do and some do not. You should read the technical information carefully to determine if it's USB 2.0 compatible.

  • I don't want to spend 60  pounds on a apple cd hard drive, so will any cd hard drive work with a macbook air?

    I don't want to spend 60  pounds on a apple cd hard drive, so will any cd hard drive work with a macbook air?

    As you quote the price in 'Pounds' I'm assuming you are in the UK!
    You might want to consider one of these from Amazon.  I have one on my MBA and it works well.

  • Will a BluRay RW drive work with a MacPro?

    Will a BluRay RW drive work with a MacPro?
    Internal SATA or external FireWire/USB?
    Thanks,
    SyBBBB

    Our organization has several Blu-ray drives built into our Mac Pros. They work great.
    http://www.mcetech.com/blu-ray/
    Others make them also.

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Couldnot connect JBuilder 6 to ORACLE 8i , JDBC driver problem

    Hi guys
    I am trying to connect to the oracle 8i database from jbuilder 6 using a simple select statement , but it gives the following error
    Root cause:
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at _0002ftestEmployee_0002ejsptestEmployee_jsp_1._jspService(_0002ftestEmployee_0002ejsptestEmployee_jsp_1.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    plse help me how to connect jbuilder to oracle to access the data. I followed jbuilder doc like from the menu (Tools �� enterprise setup �� database driver ��)
    but could not select the driver since it is marked as red (uninstalled). How can I made jdbc driver to available to jbuilder.?. I am using oracle 8i. Will oracle 8i supports jdk 1.3 b��cos I have noticed the jbuilder supports from jdk 1.3 onwards. So plse correct me if I am wrong
    waiting for reply
    sumesh

    thanks for u'r reply.
    you mean to say i need to install the new JDBC driver (Classes12.zip and nls_charset12) to the oracle/ora8i/jdbc/lib folder.currently this folder contains only classes102 and classes11.zip files and the corresponding charset only.After instaling the new classes12.zip file do i need to set the classpath?.

  • Oracle 7 JDBC driver

    Hi,
    I want to connect to an Oracle 7 database over JDBC. When I go to the download page, it only gives me Oracle 8 and higher download options, even though the documentation index lists an Oracle7 driver.
    Does anyone know where I can get it from?
    Regards,
    Kelsey Grant

    Jin Yu (guest) wrote:
    : Is there a column limitation in Oracle 7 JDBC drivers ? We are
    : not able to retrieve more than 11 columns in a SELECT
    statement.
    : Could someone get back to us on this ?
    : Thanking you in advance
    : Jin Yu
    Hi!
    I tried to use the JDBC driver to connect to Oracle 7. But had
    some trouble with it.
    Could you give me some hints on how to load the driver, set up
    the url for database, etc?
    By the way, we use JBuilder.
    Thanks.
    null

  • Error when going to install jdbc driver using JSPM

    Hi All,
    I am trying to Install JDBC driver using JSPM but its show error like
    <component location="\\xxxxxx\sapmnt\trans\EPS\in\com.sap.aii.adapter.lib.sda" status="ABORTED" dplorder="0" description="1. Runtime name of component [sap.com~com.sap.aii.adapter.lib] is changed from [sap.com~SAP-XI3RDPARTY~com.sap.aii.adapter.lib] to [com.sap.aii.adapter.lib]. Please, first remove the DC and then proceed with deployment" vendor="sap.com" name="com.sap.aii.adapter.lib" csn="BC-XI-CON-AFW" type="DC" version="7.3001.20110318104827.0001" size="0">
    I have also searched for sap.com~SAP-XI3RDPARTY~com.sap.aii.adapter.lib but nothing found. Please suggest how to remove DC?

    Hi Batra,
    Thanks for quick reply.
    I already followed the second link given by you and My jdbc driver installed properly first time but the jdbc adapter was not showing in communication channel. Only RFC and SOAP are showing there. In second link  com.sap.aii.adapter.lib  showing under SAP-XI3RDParty under software Component column but in my system it's not showing there .Software Component column coming blank in my case. So I add additional property Software Component in provider.xml whose value was sa.com/SAP-XI3RDPARTY and deployed it again using JSPM. Now jar deployed  in folder sap.com~SAP-XI3RDPARTY~com.dap.adapter.lib/lib rather than com.dap.adapter.lib/lib. So I removed property Software Component and tried to deploy again but now showing the problem
    <component location="\\xxxxxx\sapmnt\trans\EPS\in\com.sap.aii.adapter.lib.sda" status="ABORTED" dplorder="0" description="1. Runtime name of component [sap.com~com.sap.aii.adapter.lib] is changed from [sap.com~SAP-XI3RDPARTY~com.sap.aii.adapter.lib] to [com.sap.aii.adapter.lib]. Please, first remove the DC and then proceed with deployment" vendor="sap.com" name="com.sap.aii.adapter.lib" csn="BC-XI-CON-AFW" type="DC" version="7.3001.20110318104827.0001" size="0">
    However I have deleted folder sap.com~SAP-XI3RDPARTY~com.sap.aii.adapter.lib.

  • Cant get OCI jdbc driver working on Mac OS X

    I have installed the 10g final release for Mac OS X 10.3.7.
    I did a custom install...ONLY the JDBC drivers...nothing else.
    I have gotten the THIN driver to work fine and connect to the database. But when I try to use the OCI driver, I keep getting unsatisifed link errors. I have set my LD_LIBRARY_PATH and such but no luck. Anyone got any ideas for what I need to do?
    Environment vars:
    echo $LD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    This shows that the file in question DOES exist:
    ls -l /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
    -rw-r--r-- 1 michaelm michaelm 93028 29 Dec 21:22 /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
    When I run the program, I get this:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib:
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2927)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:196)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:146)
    at Test.getConnection(Test.java:32)
    at Test.main(Test.java:12)
    What else do I need to do?

    Same error. I just don't get it. Here are some of the environment vars:
    echo $ORACLE_HOME
    /Users/michaelm/other/oracle/product/10.1.0/client_1
    echo $LD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    echo $DYLD_LIBRARY_PATH
    /Users/michaelm/other/oracle/product/10.1.0/client_1/lib
    What in the world am I doing wrong? Seems like with such a basic installation (just the JDBC drivers) this thing would work!
    thanks,
    Mike

  • Setting maximum packet size in JDBC driver to send data to database

    Could someone tell me how I can set the JDBC connection property of maximum packet size to send data to database?
    Regards
    Rashed

    Hi thanks....I'm having this strange SQLException while trying to insert BLOB image data to Oracle database. I'm saying this strange because for the same image that has been inserted before it's throwing the exception. My program is run from Oracle form and then some image data are inserted into database through a loop. I can't realize what's the problem inside my code that's causing this problem. In fact, when I run my program independently not from Oracle Form, it runs fine, every image data get inserted into database. Given below is my code snippet:
    public void insertAccDocs(String[] accessions) throws SQLException
        for(int q=0; q<accessions.length; q++)
        final String  docName = accessions[q];
        dbThread = new Thread(new Runnable(){
        public void run()
          try{
          System.out.println("insertDB before connection");
                   getConnected();
                   System.out.println("insertDB after connection");
                   st=con.createStatement();
             //String docName = acc; commented
         // String docName = singleAccession;
                   String text = formatFree;
                   String qry = "INSERT INTO DOCUMENT VALUES
    ('"+docName+"','"+text+"','"+formatted+"','"+uiid+"')";
                   System.out.println("parentqry"+qry);
                   int ok=0;
                   ok=st.executeUpdate(qry);
                   if(ok==1)
                System.out.println("INSERTION SUCCESS= "+ok);
                        System.out.println("Image List Size"+ imgList.size());
                // inserting into child
                        for(int i=0;i<imgList.size(); i++)
                      String imgPath = ""+imgList.get(i);
                                  System.out.println("db"+imgPath);
                                  FileInputStream fin = new FileInputStream(imgPath);
                                  BufferedInputStream bufStr = new BufferedInputStream(fin);
                                  byte[] imgByte = new byte[bufStr.available()];
                                  String img = "" + imgNameList.get(i);
                                  System.out.println("imgid="+i);
                callable = con.prepareCall("{call prc_insert_docimage(?,?,?)}");
                callable.setString(1,docName);
                            callable.setString(2,img);
                callable.setBinaryStream(3, bufStr , (int)imgByte.length);
                callable.execute();
            callable.close();
                     con.commit();
            con.close();
                   else
                        System.out.println("INSERTION NOT SUCCESS");
       //   } //else end of severalAcc
                   }catch(Exception err){ //try
                        System.out.println(err.toString());
        } //run
      }); //runnable
      dbThread.start();     
    }And the exception thrown is :
    java.sql.SQLException: Data size bigger than max size for this type: #####
    Please let me know if possible how I can get around this.
    Regards
    Rashed

  • Will Iomega Zip 250 Drive Work?

    I use a Dual 1 Ghz PowerPC G4 Mac (QuickSilver 2002); run Mac OS X 10.5.8.  I have one open bay below my factory installed optical drive.  Will the:
    Iomega Zip 250 MB drive ATAPI work in my Mac?  Mfg. #: 11113  Will I be able to use my Iomega Zip 100 MB disks? Enclosed please see pictures.

    When two devices share the same data ribbon cable in a system that doesn't support "Cable Select," the device at the end connector of the ribbon cable is configured as "master," while the device connected to the middle connector is configured as "slave."  Your optical drive likely has its configuration jumper installed as "master," so the Zip drive should have the small plastic jumper installed across the  pins marked "slave."  Do you primarily have 100 MB Zip disks or a mixture of 250 MB and 100 MB disks?  The reason I'm asking is to determine if you've already acquired the Zip 250 drive or would prefer a Zip 100 drive?  A Zip 250 drive can read and write both Zip 250 and Zip 100 disks, but erasing/reformatting a Zip 100 disk in a Zip 250 drive with the IomegaWare software takes a long time.  Iomega had a tech support article about this some years ago.  Since the IomegaWare software isn't compatible with OS 10.5.x, you wouldn't attempt to install it anyway.  If you only need to access these Zip 100 or 250 disks for file retrieval, why not save yourself some trouble and use a USB bus-powered external Zip 250 drive.  It connects to your computer via a USB cable for both power and data, so it doesn't need a separate power supply.  They're no longer manufactured (as is the case with all Zip drives), but you could probably find one at eBay.  I recently saw a new-in-box/sealed Zip 250 USB drive priced at $10 in a thrift store, but it had no takers for weeks.  After CD-R/RW and DVD±RW disks replaced Zip 100, 250, and 750 drives as the preferred media for data backup, flash drives have gradually replaced CD and DVD burners.

Maybe you are looking for

  • 60 GB Video Ipod ..

    So basically, My warrenty just ran up a few days ago. My ipod hard drive crashed, I went to the Apple Store and they said their was nothing they could do for my 400 dollar ipod. How unfair is that? I contacted Apple and they told me theirs a year war

  • OVD best practices for app-specific views?

    I have a requirement to create app-specific views of joined (OID+AD) ldap directory data. It occurs to me that logically I could take 2 approaches to this as laid out below as option1 & 2. Although I'm not sure how to actually create option 2. I've l

  • Source System Mapping

    Hi,   My requirment is to extract data from 12 databases to BW using DB Connect. The Tables/Views in all DB's are same (technical Name...etc) I am developing 12 different streams (DSO-->CUBE) so that  each DB data will be loaded to corresponding Data

  • Separating SSL and non-SSL transactions

    What's the best way to separate SSL andnon-SSL transactions in a single web app?Ie when the user logs in, the login formis submitted over an SSL connection, butfrom then on only certain pages/forms useSSL. If there's one JVM with the sessioninfo, how

  • Temp files Vs Value of Secure Erase

    Hello, Let's say I write a "top secret" document in Pages. During the writing process, I save it about ten times. I then print it and use secure erase to delete the Pages document. So the absolute final version of the document was securely erased, bu