Get date from Oracle when local time zone is different from Oracle time zon

Hi!
Local machine time zone= +2
Oracle time zone= +1
I set date to Oracle using java.sql.Date.
From application I save date at 00:30 clock and send e.g. 28.06.2002, but in Oracle date is save as 27.06.2002 01:00 (hour=01 , I suppose that is because java.sql.Date hasn't time the Oracle set it time = time zone=+1) And when I get date from Oracle I get incorrect date. In SQL I don't use date masks. Maybe solution is to use java.sql.Timestamp object (when save date to Oracle) instead of java.sql.Date?
But if I save date at e.g. 01:00 clock and send e.g. 28:06.2002 in Oracle, date is save as 28.06.2002 01:00 and when I read from Oracle I get correct date.
Thank you.

Hi!
Local machine time zone= +2
Oracle time zone= +1
I set date to Oracle using java.sql.Date.
From application I save date at 00:30 clock and send
e.g. 28.06.2002, but in Oracle date is save as
27.06.2002 01:00 (hour=01 , I suppose that is because
java.sql.Date hasn't time the Oracle set it time =
time zone=+1) Presumably you are using setTimestamp() to store the value. If you are explicitly using a varchar (string) then you will have to correct the timezone your self.
And when I get date from Oracle I get
incorrect date. In SQL I don't use date masks. Maybe
solution is to use java.sql.Timestamp object (when
save date to Oracle) instead of java.sql.Date?The method setDate/getDate store a 'date' which is not the same as a 'date and time' for which setTimestamp/getTimestamp are used.
But if I save date at e.g. 01:00 clock and send e.g.
28:06.2002 in Oracle, date is save as 28.06.2002
01:00 and when I read from Oracle I get correct date.
Thank you.

Similar Messages

  • I get this error message when I try to back up my laptop:  Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle is already in use.  Anyone know how to fix it?

    I get this error message when I try to back up my laptop:
    ' Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle' is already in use. "
    Anyone know how to fix it?

    Reboot the TC.. Sometimes you need to reboot the whole network.
    This is what comes of Lion and then made worse in Mountain Lion of Apple not spending enough time to fix the bugs.
    Read C12 in pondini.
    http://pondini.org/TM/Troubleshooting.html
    C17 can be related I think.

  • Getting the below error when running the Baseline.grf for the first time

    I am getting the below error when running the Baseline.grf for the first time.
    Appreciate your support in resolving it.
    Error below:
    INFO [main] - *** CloverETL framework/transformation graph, (c) 2002-2012 Javlin a.s, released under GNU Lesser General Public License ***
    INFO [main] - Running with CloverETL library version 3.2.1 build#63 compiled 04/01/2012 12:53:21
    INFO [main] - Running on 4 CPU(s), OS Windows 7, architecture amd64, Java version 1.6.0_20, max available memory for JVM 901120 KB
    INFO [main] - Loading default properties from: defaultProperties
    INFO [main] - Graph definition file: graph/Baseline.grf
    INFO [main] - Graph revision: 1.114 Modified by: mkressirer Modified: Thu Apr 12 13:27:18 EDT 2012
    INFO [main] - Checking graph configuration...
    INFO [main] - Graph configuration is valid.
    INFO [main] - Graph initialization (Baseline)
    INFO [main] - [Clover] Initializing phase: 0
    INFO [main] - [Clover] phase: 0 initialized successfully.
    INFO [main] - register MBean with name:org.jetel.graph.runtime:type=CLOVERJMX_1306871483270_0
    INFO [WatchDog] - Starting up all nodes in phase [0]
    INFO [WatchDog] - Successfully started all nodes in phase!
    INFO [RUN_GRAPH1_0] - Running graph ./graph/InitDataStore.grf in the same instance.
    INFO [RUN_GRAPH1_0] - Checking graph configuration...
    INFO [RUN_GRAPH1_0] - Graph configuration is valid.
    INFO [RUN_GRAPH1_0] - Graph initialization (InitDataStore)
    INFO [RUN_GRAPH1_0] - [Clover] Initializing phase: 0
    WARN [RUN_GRAPH1_0] - WS messenger cleanup failed.
    java.lang.NullPointerException
         at org.apache.axis2.client.Stub.cleanup(Stub.java:134)
         at com.opensys.cloveretl.component.WebServiceClient.free(Unknown Source)
         at org.jetel.graph.Phase.free(Phase.java:487)
         at org.jetel.graph.TransformationGraph.freeResources(TransformationGraph.java:681)
         at org.jetel.graph.TransformationGraph.free(TransformationGraph.java:955)
         at org.jetel.graph.runtime.PrimitiveAuthorityProxy.executeGraph(PrimitiveAuthorityProxy.java:149)
         at org.jetel.component.RunGraph.runGraphThisInstance(RunGraph.java:511)
         at org.jetel.component.RunGraph.runSingleGraph(RunGraph.java:409)
         at org.jetel.component.RunGraph.execute(RunGraph.java:302)
         at org.jetel.graph.Node.run(Node.java:414)
         at java.lang.Thread.run(Thread.java:619)
    WARN [RUN_GRAPH1_0] - Some graphs wasn't executed (because graph "./graph/InitDataStore.grf" finished with error).
    WARN [RUN_GRAPH1_0] - Some graph(s) finished with error.
    ERROR [WatchDog] - Graph execution finished with error
    ERROR [WatchDog] - Node RUN_GRAPH1 finished with status: ERROR caused by: Graph './graph/InitDataStore.grf' failed!
    ERROR [WatchDog] - Node RUN_GRAPH1 error details:
    org.jetel.exception.JetelException: Graph './graph/InitDataStore.grf' failed!
         at org.jetel.component.RunGraph.execute(RunGraph.java:324)
         at org.jetel.graph.Node.run(Node.java:414)
         at java.lang.Thread.run(Thread.java:619)
    INFO [WatchDog] - [Clover] Post-execute phase finalization: 0
    INFO [WatchDog] - [Clover] phase: 0 post-execute finalization successfully.
    INFO [WatchDog] - Execution of phase [0] finished with error - elapsed time(sec): 2
    ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!
    INFO [WatchDog] - -----------------------** Summary of Phases execution **---------------------
    INFO [WatchDog] - Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
    INFO [WatchDog] - 0 ERROR 2 20132
    INFO [WatchDog] - ------------------------------** End of Summary **---------------------------
    WARN [exNode_0_1306871483270_RUN_GRAPH1] - Attempt to unregister non-registered thread in the ContextProvider.
    ./graph/InitDataStore.grf: Execution of graph failed! Error during graph initialization: Phase 0 can't be initilized.
    INFO [WatchDog] - WatchDog thread finished - total execution time: 2 (sec)
    INFO [main] - Freeing graph resources.
    ERROR [main] - Execution of graph failed !

    It can't find an Endeca specific class when running via the clover command line utility. Thus, the classpath being set in that shell script is not incorporating the .jar files where the endeca-specific classes are packaged. I would start by adding an line to see what your classpath is set to. There are actually already some lines of shell script in clover that you can uncomment to see what .jars are getting loaded:
    #echo $CLOVER_LIB/*
    for i in $CLOVER_LIB/*.jar $CLOVER_LIB/*.zip; do
         LOCAL_CLASSPATH="$LOCAL_CLASSPATH:$i"
    done;
    #for i in `ls $CLOVER_LIB/*.jar`; do
    #echo $i
    #done;
    You could also echo LOCAL_CLASSPATH to see what is getting set there. At the end of the day, you will need the endeca-specific jars to load which can be found here: /Endeca/Discovery/2.3.0/Integrator/plugins/com.endeca.latitude_1.0.0/*
    HTH,
    Dan
    http://branchbird.com

  • Scenario is HTTP to db. In HTTP client, when Sender is Business Component, Pi is getting data successfully but when Business system is used as sender Pi is not getting any message in sxi monitor. Please help

    Scenario is HTTP to db. In HTTP client, when Sender is Business Component, Pi is getting data successfully but when Business system is used as sender Pi is not getting any message in sxi monitor. Please help

    Hi Ankita,
    Try to trace at ICM level, Go to smicm transaction
    Set level to 3.
    Later send your request. Finally trace the request in:
    When you have seen the log, check if any exception is raised with your request or the request and share it here.
    Regards.

  • Why do i get an error message when i try to transfer photos from my pc to my ipad

    why do i get an error message when i try to transfer photos from my pc to my ipad

    Don't know why, what exactly is the error message?

  • I get an error message when I try to move mail from Junk to Inbox

    Why do I get an error message when I try to move mail from Junk to Inbox

    Make sure your PC has a fresh reboot and is fully updated via Windows Update.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • HT201272 How do I download previously purchased albums from iTunes when the album has either disappeared from my computer or the tunes are not playable?  The album shows as purchased on the iTunes store, but not available to download to my authorized devi

    How do I download previously purchased albums from iTunes when the album has either disappeared from my computer or the tunes are not playable?  The albums show as purchased on the iTunes store, but not available to download to my authorized device.  I also have albums that appear in my library, but are not able to be added to my iPod from my computer

    When you download something from the iCloud, it is a brand new licensed copy. Your iCloud account just contains a notation that you have this app. It isn't storing an actual copy of the app from your Mac.

  • How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    lunagirl wrote:
    The first 3 apps listed are not installed because I have not run the activation assistant for the Office trial that came with the T61.  Add/Remove programs has only these pre-installed apps:
    Microsoft Office 2003 Web Components
    Microsoft Office 2007 Primary Interop Assemblies
    Microsoft Office Small Business Connectivity Components
    MS SQL Server 2005
    MS SQL Server Native Client
    MS SQL Server Setup Support Files
    MS SQL Server VSS Writer
    Is the activation assistant one of them?
    No, AFAIK should be listed as Microsoft Office Suite Activation Assistant
    Rgds,
    Ahti

  • [svn:osmf:] 14598: Fix FM-500: reinstating onMetaData handler clause that prevents incoming dimensions from being applied if they are not different from the dimensions that were already set .

    Revision: 14598
    Revision: 14598
    Author:   [email protected]
    Date:     2010-03-05 02:13:40 -0800 (Fri, 05 Mar 2010)
    Log Message:
    Fix FM-500: reinstating onMetaData handler clause that prevents incoming dimensions from being applied if they are not different from the dimensions that were already set.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-500
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamDisplayObjectTrait.as

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Why do I keep getting an unknown error when trying to download an app from the app store on my iPod touch 4th generation when I put in the correct password?

    I keep getting the same unknown error has occurred when trying to download an app what is wrong?

    as an example.. from the sprint forum for a different device (unsure what device.. it's just not an iphone since no iphone or ios device has these settings -- ive seen this advice several times and I believe it's some form of android.. but not sure)
    advice from the carrier advisor --
    "Clear data in the Dialer and Dialer storage.... under manage Applications> All.
    That is Settings - Applications - Choose All to view All choices - then find Dialer and clear the Data. Repeat this for the Dialer Storage as well. I personally also deleted the message thread first from the text message window and my log history which is a menu item from your call screen."
    and another for you from a customer -- it is sprint again.. but this time a Samsung Epic
    "OMG ... if someone can't tell me how to fix this "9230: Message sent using invalid number of digits..." error, I'm going to scream.  My husband and I both have Sprint Epic phones and love them EXCEPT for this one problem! Help!"
    Maybe they should sue Samsung?

  • File getting locked in RDC when saving it to redirected drive (from remoteapp).

    Hello,
    when exporting excel file from our RemoteApp to my local C disk (\\tslcient\c) the file is getting locked and can not be used until I close the RemoteApp. If for example I try to delete file before closing RemoteApp,
    I get the error that file is being used by Remote Desktop Client.
    If during export I choose to save the file on remoteApp server, or on mapped network drive, it is not getting locked and can be used right away.
    Is there a way to save it to my redirected C drive and be able to use it without closing remoteApp ?

    Hi,
    Thank you for posting in Windows Server Forum.
    Initially see that you have client mapped drive is enabled. You can enable the setting under collection properties client settings-Drive Redirection Option. In addition, we can also check the GPO setting “Do not allow drive redirection” under below
    mention path.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection
    Also can generate some script that would add shortcut and points to the shared drive. After this the shortcut would be added to the default location you see when you do the save file from your application.    
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Client drive is redirecting without problem and it is accessible, we can browse it, copy and save files there.
    The problem is that when we save file from RemoteApp to redirected client drive, the file is locked by remote desktop connection process and can not be accessed until RemoteApp is closed.

  • Getting a 1809 error when trying to remote control PC from the Console.

    This is message i get when trying to remote view or remote control PC.....
    1809: An error has occurred while generating a session key for
    encryption.The remote session cannot be initiated. Contact Novell
    Techical Services and specify this code.

    This is for a 1807 error. My error is and 1809 error. Is there somewhere
    else to research on a 1809 error when trying to remote control PC from
    the Console?
    > Perhaps.................
    >
    > http://support.novell.com/techcenter/search/search.do?
    cmd=displayKC&docType=kc&externalId=10094808html&s liceId=&dialogID=2356487
    >
    > --
    > Craig Wilson
    > Novell Product Support Forum Sysop
    > Master CNE, MCSE 2003, CCNA
    >
    > Editor - http://www.ithowto.com
    >
    > (Seeking Full-Time Expert? Drop me a note :> )
    > <[email protected]> wrote in message
    > news:09i_e.2044$[email protected]..
    > > This is message i get when trying to remote view or remote control
    PC.....
    > >
    > >
    > > 1809: An error has occurred while generating a session key for
    > > encryption.The remote session cannot be initiated. Contact Novell
    > > Techical Services and specify this code.
    >
    >

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Uploading a file from user's local machine and put it in oracle table

    Hello All experts,
    I have a requirement such that the file from User's local machine needs to be uploaded and the custom oracle table needs to be populated.
    Any answers how to do this?Sounds challanging right?
    Thanks
    Kumar

    Have a look at attachments API, since this also does the same thing except that it puts the file in fnd_lobs instead of the custom table.
    Thanks
    Tapash

  • HT4623 My ipad is getting a disable notice when i try to download anything from the app store

    When i try to download anything from the app store i get "your  apple id has been disable ,how to enable it?

    Contact iTune Support
    https://ssl.apple.com/emea/support/itunes/contact.html

Maybe you are looking for

  • Clarification using Elements 7 and Sony DVD architect please ..

    Hello all, I am close to finishing my 2nd set of "How To" instructional DVD's. I have been reviewing the required steps in order to create a menu with "Sony DVD Architect." I see in a past discussion that it was mentioned to: " .. Export [your Elemen

  • Change itunes from PC to Mac with external drive

    Been using a Dell with itunes for my music system in mt home. I installed an additional 80G that i've maxed out with tunes. This is in addition to the 30G that came with the system. I have a Mini and just purchased a 500G Western digital external dri

  • EXTREMELY URGENT!!  Last question on Local Interfaces

    Using Oracle9iAS 9.0.3 Running on RedHat 8.0 Trying to implement local interfaces to my entity bean. (Oracle9iAS Containers for J2EE for 9.0.3) provides an example for writing local interfaces. pg. 2-10 states: //The variable is specified in the asse

  • Attempting to copy to disk failed.

    I was using my iPod in cold weather the other night. The battery died and when it warmed back up the screen was in grayscale and it was in "disk mode". I have since restored it several times and am trying to sync it with iTunes. I keep getting an err

  • Cannot add mailbox database copy to DR site - .edb file not getting created

    I have a DR site setup that I want copies of 4 of my mailbox databases.  3 of the mailbox databases copied over successfully but the last and largest one which is really not that large 69Gbs keeps failing when i Update the database copy.  Seems to no