Oracle 11 driver causes problem in the day when the daylight saving starts

Hi everybody,
I'm facing a really weird problem with daylight saving stuff. So, let me explain:
I have a table where stores some personal data, which one of the columns is a birth date.
On this column there is a constraint like: TRUNC(BIRTHDATE) == BIRTHDATE to ensure that the is the same always.
Now the problem starts:
When a person is born when the daylight saving starts (+1 hour) (e.g: Belgium 22/04/1930) in our Java application
that date is described like: Sun Apr 22 00:00:00 CEST 1923
When the application tries to insert data into the table, it gets a constraint violation exception.
The configuration I'm using:
- JDK 6_0_21
- Oracle driver: 11.2.0.1.0 (ojdbc6.jar)
- Oracle database: 10.2.0.4.0
Now the weird part: When I change back to the previous Oracle driver version (10.X), it works perfectly. I've seen this FAQ:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#08_01
and tried both solutions: Set the mapDateToTimestamp property and change from DATE to TIMESTAMP type in the table. Unfortunately, both don't
work.
Anybody has an idea how to solve that? (Change back to the previous version is not an option for us, since we had transactional problems with it)
Cheers,
Bruno

You might want to post on ODBC

Similar Messages

  • How can I move (copy) my Time Capsule date to a new 2T hard drive and then wipe the TC and start as a new (clean) Time MACHINE backup?

    How can I move (copy) my Time Capsule date to a new 2T hard drive and then wipe the TC and start as a new (clean) Time MACHINE backup?

    Just use the archive utility on the disk page of the airport utility manual setup..
    If you have lion and v6 airport utility.. it missed out. On lots of things.
    Download and install the real.. UTILITY
    5.6 http://support.apple.com/kb/DL1482

  • The Daylight Saving Time in the Salvador City in Brazil is not working!

    Since this month, the government includes the state of Bahia, in Brazil, in the list of the states that will follow the Daylight Saving Time. Maybe Apple is not knowing about that and didn't update it's Daylight Saving Time list. So, Please, include the state of Bahia (and of course the Salvador City) Brazil in the Daylight Saving Time list! Thanks!

    I live in Egypt and have this problem too.
    I hope Nokia provide a patch for that problem very soon.
    My phone model is Nokia N73
    OS version: 4.0839.42.2.1

  • The Daylight Saving Time to add 1h to clock in egy...

    the Daylight Saving Time to add 1h to clock in egypt ( Has been Canceled )
    the problem now all nokia phone automatic add + 1h to the clock but the the Daylight Saving is  Canceled in egypt  !!!
    the problem in
    nokia 6600
    nokia 6260
    nokia 5800
    nokia n97 mini
    nokia n97
    all nokia problem
    any help to solved this problem ?

    I live in Egypt and have this problem too.
    I hope Nokia provide a patch for that problem very soon.
    My phone model is Nokia N73
    OS version: 4.0839.42.2.1

  • Change a timestamp in one timezone to another with the DayLight Saving

    Hi Guys!
    I need to change a timestamp in one timezone to another timezone with the Daylight saving time(DST).
    I can easily convert a given timestamp to a different location timezone by the use of TimeZone class in java, but found myself unable to modify it relative to the
    Daylight saving time(DST).
    I Just want to know that the companies, that are having the International clients then, how they handle these kind of things where they need to track down the user
    activity in that client(End-User) side timezone, with that Daylight Saving Time.
    I am very new to this Daylight saving time concept so if anybody knows about it anything, then plz help me out.

    venus_goyal wrote:
    Hi Guys!
    I need to change a timestamp in one timezone to another timezone with the Daylight saving time(DST).
    I can easily convert a given timestamp to a different location timezone by the use of TimeZone class in java, but found myself unable to modify it relative to the
    Daylight saving time(DST).No you don't. All Java timestamps are stored as a "epoch time" i.e. number of millisecondsseconds since 1/1/1970 GMT.
    Conversion to and from local dates and times is done when converting between stored Date objects and String values from input or for display.
    This happens in DateFormat or Calendar, and DST information is included in the Locale information passed to either class.

  • Hard drive beachball problem for the 17"

    Ok, so I know that there is already a few posts about this issue, (including the very large 96 page one) but I wanted to start a post for those of us with a 17" MBP that are having the same issues.
    I was on the phone to a senior technician at Apple (Australia) today for about 2 hours trying to sort out this problem. Firstly he was a bit hazy about the issue to begin with assuming it was a RAM paging issue. Seriously, this thing has 4gb of ram, I think you would have to running so much stuff at once for it to legitimately run out of ram. I'm a web developer/designer so I can push the machine reasonable hard sometimes but I get the beachballs even when I only have safari and mail open. This is the fastest (stock) laptop Apple have ever produced, surely it can handle a bit of stick.
    So I suggested it could be the hard drive/firmware etc and mentioned about the large amount of people on here with the exact same issue. After looking into some internal documentation he noted that there was indeed similar problems happening around the place but he seemed convinced that this only applied to 13" and 15" models and that the 17" never got the 1.7 firmware update.
    After looking at the firmware page: http://support.apple.com/kb/HT1237 it seems maybe he's right. I can't see my boot ROM version there anywhere (MBP52.008E.B05) The mid 2009 model 17" isn't on that list.
    Whilst my friend at Apple is reasonably sure that my issue is software related and wants me to watch the console when Im having the freezing, I'm positive that I'm having the exact same problem as the 13 and 15s.
    Can other people with 17" MBP that are having the same issue please post here so that we can begin to build a case for Apple to acknowledge the problem for our model too? Please add whether you have installed a 3rd party hdd or whether you are having the problem despite only having the stock hdd like me.
    Thanks guys.

    soniktrooth, count me in. I am experiencing the same problem myself - I just recently posted over in the mega forum here: http://discussions.apple.com/thread.jspa?messageID=10222616#10222616
    There is a chance that the hard disk could be at fault I guess, but the symptoms of this problem for me are remarkably similar to what I've read in the 96 page post, and on the macrumors forums. To summarise:
    * the problem usually begins when I'm playing iTunes all day, and then I'll go to save something, say in TextMate, and then iTunes stops playing.
    * Any app you then try to switch to while the freeze is there will then just beachball itself.
    * Like you, I know this is something out of the ordinary, since iTunes rarely stops playing music, and hardly ever did on my 4 year old G5.
    * I can make the problem go away by restarting and zapping the PRAM. All day today my computer has been fine, but I suspect that sometime tomorrow it'll probably start all over again.
    * My drive is a factory Hitachi 5400 RPM drive... what do you have?
    * My boot ROM version is the same as yours too.
    * I have 8GB of RAM in this machine, so I'm pretty **** sure it's NOT a paging issue for me. paging issues never last 20-30 seconds though, that's absurd if anyone claims that is the cause... also, the hard disk doesn't really crank noticeably while the freeze is there.
    I'm wondering if there was some sort of revision too for this model that may be causing this. Seems unlikely that Apple would have changed the motherboard between the january model and this one, but I'm not sure if this is absolutely confirmed...

  • Does any one know about the small Hardrive that "The Power Company" is producing, sponsored by Indiegogo, for small Apple mobile devices (iPhones, iPods, etc,).  Do they work or cause problems for the device or iCloud storage?

    Does any one about the small hard drive that "the Power Company" is bringing out as a crowdsourced project by Indiegogo?  Does it work, does it cause problems for IOS, iPOD Touch or iCloud?

    I have not heard that mentioned here before. What does the Indiegogo page say?

  • Any problems with the recalled hard disk drives, any problems with the recalled hard disk drives

    Has anyone had their defective hard drive replaced? 
    any problems with the Apple service or restarting the machine with a new hard drive?

    See this FAQ: http://www.thexlab.com/faqs/freeingspace.html

  • Import oracle.jdbc.driver.* problem.

    I've got classes111b.zip from this site, and put it into my $ORACLE_HOME/jdbc/lib; add this: "$ORACLE_HOME/jdbc/lib/classes111b.zip" to my CLASSPATH; use env command, I can see it, but when I visit my jsp page, there occured an error:
    Error: 500
    Location: /tmp/connectdb.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSP/jakarta-tomcat/work/localhost_8080/_0002ftmp_0002fconnectdb_0002ejspconnectdb_jsp_7.java:20: Package oracle.jdbc.driver not found in import.
    import oracle.jdbc.driver.*;
    And jdbc readme file says:
    The Oracle installer installs the JDBC Drivers in the
    [ORACLE_HOME]/jdbc directory.
    Where is the Oracle installer? How could I do?
    Thanks in advance.

    Hello
    here is the modified code
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class Oracle_Test
    public static void main(String args[])
    String sql = "";
    String strdisp = "";
    Connection con = null;
    //Statement cs = null;
    CallableStatement cs = null;
    ResultSet rs = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Hello 1");
    //con = DriverManager.getConnection("jdbc:oracle:thin:@192.1.1.70:1521:epatra","kamna_local","kamna");
    con = DriverManager.getConnection("jdbc:oracle:thin:@10.8.51.182:1521:DEVPG","RINGERS","RINGERS");
    System.out.println("Hello 2");
    try
    CallableStatement proc = con.prepareCall("{ call PHONEGEN.HOME_MDN_SEARCH_RINGER(?, ?, ?, ?, ?, ?) }");
    proc.setString(1, "2231015897");
    proc.setString(2, "1071706417");
    proc.registerOutParameter(3, OracleTypes.VARCHAR);
    proc.registerOutParameter(4, OracleTypes.VARCHAR);
    proc.registerOutParameter(5, OracleTypes.VARCHAR);
    proc.registerOutParameter(6, OracleTypes.VARCHAR);
    System.out.println("Hello 3");
    boolean x = cs.execute();
    String homemin = proc.getString(3);
    String homemdn = proc.getString(4);
    String phoneType = proc.getString(5);
    String outStatus= proc.getString(6);
    System.out.println("Hello 3");
    proc = null;
    con.close();
    con = null;
    catch(NullPointerException sqle)
    sqle.printStackTrace();
    catch(Exception ex)
    ex.printStackTrace();
    System.out.println("error in finding class "+ex);
    The Exception comes at this
    CallableStatement proc = con.prepareCall("{ call PHONEGEN.HOME_MDN_SEARCH_RINGER(?, ?, ?, ?, ?, ?) }");
    And here is the output when the rpogram runs....
    Hello 1
    Hello 2
    Hello 3
    java.lang.NullPointerException
    at Oracle_Test.main(Oracle_Test.java:31)
    Thanks for your help.....
    Looking for a solution soon
    Regards
    Abhinav

  • Oracle.jdbc.driver.OracleDriver() problem

    Hi guys. I am taking a dbsystems class at school. We are required to connect to the schools oracle db using this package: oracle.jdbc.driver
    the code provided by the profesor is meant to be used by logging into unix accounts on the schools servers and running our java programs remotely. I've been trying to connect by running the java program localy.
    i'm using netbeans 4, with java5. netbeans tells me that this oracle.jdbc.driver package doesn't exist.
    here is the connection part of the code:
    //create the oracle driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //create a connection object
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci:@<blahblahblah>", "<myusername>", "<mysuperduperprivatepassword>");
    I have followed many forums and threads on the web. Most of them seem to be fixed just by renaming the classes12.zip file to .jar, placing them in the jre/lib folder and setting the path, but they all seem to be running the java program on the same computer as the database, where as i'm trying to connect remotely. i still tried following the instructions, and this still hasn't worked for me. so, my question is, will this even work since i am trying to connect remotely? and if not, how can i connect remotely to a database using only java? thanks
    gyro

    when you say build path, do u mean the same folder as my .java source? because it is. I don't know if u need to know this, but it will compile, but not run, and then it will print the above mentioned error. but in netbeans, it just tells you ahead of time why it wont run if u try to run it.
    anyways, from what i understand from what u wrote, i will need to use the thin driver...now that comes with the oracle.jdbc.driver package, but i just need to use a different call, right? like, instead of oracle.jdbc i would need oracle.thin, is this what u mean? and if it doesn't contain the thin driver, where can i find it? i found it onces before, but that was completely by accident. can someone supply a url? thanks
    jay

  • Nvidia driver causing problems what should i use?

    Hi,
    Just switched my hard disk to a temporary machine and the nvidia card on it is causing crashes and random freezes on my machine.
    Since its just temporary, I can't be bothered to mess around with the configuration at the moment.
    Could someone please tell me what would be the default driver for me to use?
    I don't have need for compositing or 3d acceleration.
    Thanks in advance,
    Ali

    Well seeing as how you don't need 3d perhaps nouveau might be worth a shot: http://wiki.archlinux.org/index.php/Nouveau
    Word is that eventually it will replace the standard "nv" driver and it will be incorporated into the 2.6.33 kernel.  In my experience the nouveau driver is faster than the standard nv.
    To use it you will need to remove your current nvidia drivers and then change your xorg.conf to use nouveau.  In addition you must enable KMS which is easy enough, see the wiki.  I just happened to change from the nvidia blob to nouveau last night after installing KDE 4.4... So far I am satisfied and feel better about supporting the open source driver.
    Last edited by davidm (2010-02-11 09:17:50)

  • Re: Does partitionning cause problems with the Toshiba Recovery System ?

    I'm french so don't be afraid of mistakes !
    I wonder if I can repartition my HDD as I want
    First of all, I explain you what I've understood with the FAQ:
    If Vista fail to boot, Toshiba Recovery in the hidden partition WinRE ( eisa configuration) offer to repair and use either the DVD we have burn or the directory HDDRecovery in the partition E: to repair.
    My question is if I don't have the DVD (or if I lost it) :
    Can I repartition my HDD (not the Recovery partition but enlarge the partition C: en reduce the partition E:) without causing problems of recovery ?
    In other terms will the Recovery partition at boot update the position of recovery files in E:
    And if it works, can I simply copy-paste the HDDRecovery directory from E: to C: and then to E: while I format E:
    Thank you for your answers
    Juju313

    Hello
    I think you mixed up something...
    The hidden Windows partition (Recovery Environment) has nothing to do with the Toshiba recovery disk or HDD recovery procedure. This is a Windows feature that is on all PCs and notebooks available so my suggestion is you read this good Wikipedia article about this:
    http://en.wikipedia.org/wiki/Recovery_Environment
    The HDD recovery files are stored on the second partition of the HDD in the folder HDDRecovery. So if you use the HDD recovery function only the first partition will be formatted and you can only use this feature if you have access to the advanced boot menu. If you dont have it you must use the Toshiba recovery disk because the disk formats the whole HDD and restore the factory settings of the notebook (the HDD recovery too but only with the first partition).
    You can change the partition size of both partitions but there should be enough free space on both partitions. Otherwise the HDD recovery does maybe not work.
    About the Vista partition tool I can prefer this useful article:
    http://aps2.toshiba-tro.de/kb0/TSB7101OB0006R01.htm
    I hope you understand it better now and if you have more questions please let us know.
    Greets

  • Does dust under the iphone screen protector cause problems for the retina?

    I dont have bubbles under the protector but if I reflect the screen under light I can see tiny dust particles under the protector, they are small white dots. So will this cause issues for the screen and is it worth removing the screen protector itself to fix or will it do nothing to the resolution of the phone?

    will this cause issues for the screen
    No
    will it do nothing to the resolution of the phone?
    no

  • Disc drive causing problems

    I've recently bought an iBook and have noticed that the disc drive is scratching the top of the discs when ejected. Has anyone else had this problem and is it something worth getting back to Apple about?

    Hi Emma,
    Welcome to the discussions.
    You have posted in a section that is for the "Clamshell" type iBooks (G3). It might be better for you to post your issue in the iBook G4 section. That way you have a greater chance of someone more familiar with your model of iBook seeing your issue and responding to it.
    Cheers!
    Karl

  • Time Machine Backups external drive developed problem which the disk repair utility cannot fix, so suggested reformat. I can't reformat because the "Resource Busy". How can I reformat this drive?

    My Western Digital external hard drive which I use as a Time Machine Backup stopped working. I tried repairing the disk using the Disk Utility program,but got the message that the utility can't repair the disk and to erase and reformat the disk. When I try that, I get the message the operation can't be completed because "Resource Busy", even though Time Machine is turned off. Any suggestions for repairing the drive/disk?
    Thank you.

    See Pondini's TM FAQs for starters.

Maybe you are looking for