Sysdate giving wrong time

When I log in to DB via the listener I get different time to when I log to DB direct (on the db box, set ORACLE_SID).
Say OS time is 15:00 and my TZ=GB for oracle user.
1. When I do sqlplus [email protected]
I get sysdate as 14:00
2. Set ORACLE_SID=DB01, Then do sqlplus user
I get sysdate as 15:00
My listener process has TZ=GB
Why when using TNS alias I get wrong time, is there a config for listener about time?
I think it is to do with, when Oracle lsnrctl hands off connection to client it is giving in GMT (since machine default is GMT).
I am reading on Oracle docs, it’s taking time.
Please help.

What version of Oracle is this happening with and are you running RAC? If you run RAC and use svrctl to start the database the utility fails to pick up the correct enviornment time zone information unless you set it in the utility with version 9.2.
The client session also has nls parameter for date and time zone information. The difference could be due to these settings also. Check out your .glogin file and your person .login file if you have one.
HTH -- Mark D Powell --

Similar Messages

  • AnyGantt APEX chart wrong Time Format

    I'm trying to create an anyGantt chart within APEX but the XML keeps misconverting the time section of date. Thus, where an activity should start on 05-11-2012 15:16:17 (DD-MM-YYYY HH24:MI:SS), it actually starts on 05-11-2012 12:11:00. It seems to take the Year as the Hour and the Month as Minutes, but assigns nothing to the minutes. The Year is also random, it's either 0, 1, 12, or 13.
    So say I have this Record:
    ID___________NAME______________DATE_START_____________________DATE_END_____________________________DRIVERID
    2____________Driving_____________21-9-2012 12:04:40_______________22-9-2012 13:05:50______________________228And complete this statement:
    SELECT null link,
    t.driverid resource_id,
    TRIM(r.lastname) || ', ' || r.firstname resource_name,
    NULL parent_id,
    t.date_start actual_start,
    t.date_end actual_end
    FROM "user"."gantt" t, "user"."drivers" r
    WHERE r.driverid = t.driveridThe Gantt chart translates this activity to:
    RESOURCE_NAME______RESOURCE_ID_______________ACTUAL_START______________ACTUAL_END
    Sleeman,_Bob_________228________________________21-9-2012 *01:09:00*___________22-9-2012 *01:09:00*Thus giving me a wrong gantt chart, as these records would overlap, and start at the wrong time.
    The XML settings are as following:
    <settings>
    ________<title_enabled="False"_/>
    <outer_margin_left="0"_top="0"_right="0"_bottom="0"_/>
    ____<background>
    __________<fill_type="Solid"_color="0xFFFFFF"_/>
    __________<border_enabled="false"/>
    __________<corners_type="Square"/>
    ____</background>
    ____<navigation_enabled="true"_/>
    ____<locale>
    _______<date_time_format_week_starts_from_monday="True">
    _________<months>
    ___________<names>Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December</names>
    ___________<short_names>Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec</short_names>
    _________</months>
    _________<week_days>
    ___________<names>Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag</names>
    ___________<short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
    _________</week_days>_
    _______<format>
    __________<full><![CDATA[%yyyy.%MM.%dd.%HH.%mm.%ss]]></full>
    __________<date><![CDATA[%yyyy.%MM.%dd]]></date>
    __________<time><![CDATA[%HH.%mm.%ss]]></time>
    ________</format>
    _____</date_time_format>
    ____</locale>
    _</settings>I know the default format for the 24-hour notation in Oracle is "HH24" and the minute notation is "mi" and not "mm", but the notation in AnyGantt says minutes are %mm (lowercase) and months are %MM. The notation in anyGantt is different from the Oracle-notation. Who can explain this problem, and better, solve it?

    Hi Rik,
    Thanks for providing the login credentials to your example. I hope you don't mind but I've created a second Gantt chart on the page, to illustrate how to display the time component for the tasks on the chart.
    In order to represent the time component on your charts, you need to use TIMESTAMP columns in your chart query. If you run your existing query from the chart in SQL Workshop, you'll see that the results only return the date component, and do not include the time. In order to retrieve the time component, you would need to use the TO_CHAR function on your DATE columns, which you have done for your report on the same page. Given that the chart query syntax must either reference DATE or TIMESTAMP columns, you therefore need to use the TO_TIMESTAMP function in this situation to ensure that you're capturing the date and time. I've got an example on my sample application, here: http://apex.oracle.com/pls/apex/f?p=36648:83.
    So to get the chart displaying the correct information, I did the following:
    1) Updated the chart series query to use TO_TIMESTAMP on your DATE columns
    2) Updated the Application Timestamp Format via the Edit Application Properties page, changing it from DS to DD-MON-YYYY HH:MIPM, otherwise your timestamp values would still not display the time component.
    Let me know if you've any further questions. I hope this helps.
    Regards,
    Hilary

  • Query giving wrong values in portal but correct through RSRT

    Hi,
    Users are running a query through portal which is giving wrong figures. But when we are running the query through RSRT it is showing correct values. The quesry is built on top of an InfoCube which is regularly updated and data in it is matching with R/3.
    This is an Inventory Valuation Query.
    Please suggest what could be the possible issue.
    BR,
    Sayan

    Hi,
    Make sure cache is deleted for the particular query. While the report is executed through portal it refers the cache and if the data in the backend is not changed then the cache for a particular query selection is active and referred each time the query is run.
    on other hand while running RSRT we have an option of not using cache and thus it refers the infoprovider and fetches the correct result. In this case cache could be invalid.
    Try deleting the cache.
    Regards,
    Amit

  • DVR records at wrong time

    What gives?
    I have my DVR set to record a show that runs in the wee hours of the morning.
    A couple times a week, it works.  But two or three times a week, it starts recording anywhere from one hour to three hours later.  It thinks it has recorded the program, giving all the correct program guide information.  But shows that it started recording at these wrong times.
    Like I said... What gives?
    Richard W.

    I don't know "what gives,"  but you might try fixing the problem by going to the DVR's menu:
    Settings > DVR > Default Series Options > Air Time.  Set it to "Selected Time Only."
    Once you've changed that setting delete and reschedule the series you want to record.  Hopefully that will stop the recording happening at the wrong time.

  • FOX CLOCKS not giving correct time. Central time is 2 hours ahead of the actual time

    FOX CLOCKS not giving correct time. Central time is 2 hours ahead of the actual time

    sorry not an Atomic clock issue I read your post wrong
    actually last night I tried to set my clock back to the time without Daylight savings and it would only let me set it to 1 or 3 am but not 2.. I noticed this, but I would wait till Sunday is over and see if this bug is only a one day issue which I have a feeling it may be, wait till 3am march 10th and see if this bug fixes itself I have a feeling it will

  • DBMS_JOB running at wrong time

    We have a bunch of jobs scheduled using DBMS_JOB (yes, I know I should be using DBMS_SCHEDULER, but we haven't migrated there yet). We are running Oracle 11.2.0.3 on Windows Server 2003 x64.
    Lately, we've seen jobs kick off at incorrect times. For example, we have a job that is supposed to run every Wednesday at 20:00. The Interval we have set up is "NEXT_DAY(TRUNC(SYSDATE), 'WEDNESDAY')+20/24". This has been working as intended. Today (Monday), however, the job kicked off at 11:52. It was the wrong day and the wrong time.
    Can someone let me know how I got about starting to troubleshoot this? I don't see anything weird in my alert log. Where else should I check to figure out why this job ran today?
    JOB     LAST_DATE     LAST_SEC     NEXT_DATE     NEXT_SEC     INTERVAL     WHAT
    293     1/7/2013 11:52:46 AM     11:52:46     1/9/2013 8:00:00 PM     20:00:00     NEXT_DAY(TRUNC(SYSDATE), 'WEDNESDAY')+20/24     ACQUISITIONS.WORKLOAD_STATUS_UPDATE_NOTIF;

    I'll have a look at DBMS_LOGMGR.
    Last week's run appears to have completed at the right time, based on the fact that I'm not seeing any errors in my alert log and I can see entries in our own log table.
    I'll ignore BSalesRashid comment, helpful as it was. Check out my threads - MANY have gone unanswered, unresolved, or I found workarounds on my own.

  • WINDOWS SERVER SYNCHS WRONG TIME!!

    Hi guys,
    The giving: we have a Hyper-v environment, [Hyper-v A] hosting [DC A] and [Hyper-v B] Hosting [DC B] now DC A & B are replicated and working fine, suddenly we found out that all client PC's synching with the DC's wrong time!!! going to DC A or B, we
    found that Clock time is WRONG! its about an hour offset,  the time on DC A & B is configured to sync from web
    [Automatically Adjust Clock for Daylight Saving Time] but for some reason its synching a wrong time!! for the meantime we set the clock manually and cancelled the Auto Adjust, but for resolution what the deal!!?
    HOW CAN WE FIX THIS!????
    FYI MS CU didnt fix this even.
    Thank you in advance.
    Aabed Yassine. Systems Engineer.

    Hello,
    please see for time sync on the PDCEmulator
    http://msmvps.com/blogs/mweber/archive/2010/06/27/time-configuration-in-a-windows-domain.aspx
    How is the Hyper-V host configured for the DCs? PLease assure to follow
    http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/11/19/time-synchronization-in-hyper-v.aspx
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

  • My iphone was disable due to giving wrong passcode

    my iphone was disable due to giving wrong passcode and how to open it

    That would only happen if you entered the wrong passcode many, many. many. many, many times.  Hard to imagine how that would happen with your own phone...
    The only way around this is to restore the phone on the computer it was last synced with.

  • NTP sets SMB clients to wrong time

    Hi
    The Server (Mac OS 10.6 server) is set as a time server for the domain but from yesterday reset most of the Windows clients that logged on via SMB to about 3/4s hr fast with the result that IP address's were dropped (Lease expired) and software relying on a network connection failed, time stamps of saved files were wrong and emails had the wrong time. In one case the month was changed to October so the guy went on holiday! Seriously, this is a big problem.
    I've tried resetting the time locale, NTP time server and got rid of "LocalTime" which was a folder instead of a simlink but clients are still reporting time anomalies.
    Thanks

    ntp isn't particularly related to smb/cifs/samba, nor to dhcp, and ntp doesn't implement local time; ntp uses utc/gmt as the time base, and the local boxes adjust their time and timezones based on the client-local timezone definitions.
    It could be that ntp is misconfigured, that something has gone seriously wacky with the ntp time base (hardware error? software error? network error? time-based attack? etc), or there's a rogue ntp server running.
    Have a look at the ntp chatter in the system.log console log on the ntp server as a starting point, and at whatever passes for logging on the ntp clients, and at the settings for ntp. Out-of-the-box, there can be the requirement to tweak the ntp client or daemon configuration via the /etc/ntp.conf file, for instance.

  • IPhone 4 shuts down on its own all the time. Sometimes restarts without ability to make calls, receive emails, and the wrong time.  Only a restore fixes it.  What can I try?

    So my iPhone had a broken screen and back for a while, which may have something to do with this.  I mean like missing peices.  I realize this leads to corrosion and I may have a broken iPhone but this is a really strange problem.  It's always shutting off on its own, sometimes in my pocket while locked and sometimes randomly while in use.   For example the other day this started happening everytime I started safari.  This happens all the time, I usually just restart it and it works for a while.   Sometimes after shutting off a few times in a row, after restarting it will show the wrong time, screws up phone calls and says that it cannot locate the gmail server, or something to that extent (won't load emails).   The phone calls are weird, I can't receive any.   Any calls that are made from the phone, go through on the other side and ring for them, but won't ring or make a connection on my side, also I can't end the call when this happens, it responds to me pressing end by fading the screen to that graytone color that it does before ending usually but stays on that screen whenever you go back to it, only disappearing after reseting.  Texts work, not in iMessage, and internet seems to work.   The only thing that fixes this condition is a restore. The iphone has been turning itself off over the last 3 months and its been getting progressively worse.  Recently its been pretty bad, and then the phone started to do all that weird stuff I've been talking about.  That started about 3 weeks ago and has happened 4 times, the last two times relatively close together.   This is really annoying and I can't afford to replace it.   Do I have to live with it?   What can I try?  Should I maybe replace the battery?  I took the panel off to look at it and the plastic around it was pitted possibly from being really hot.

    Please don't respond with useless comments.  I've already addressed the fact that my screen was broken a few months ago.  My phone may or may not be broken beyond repair either way, as I said before I can't afford a new phone.  It's a strange problem because from what I can tell no one else has posted the same problem anywhere I can find.  Don't be a dickhole.

  • My Ipod is stuck on a white screen with the wrong time and a lock. computer doesn't recognized my Ipod..also gets hot when connected to charge..any ideas on how to fix this? Thank You

    Hi
    My Ipod nana...has frozen up and working. It shows a white screen with the wrong time and a lock symbol. When I connected it to my computer, it didn't show up. Back of Ipod gets really warm..Any ideas on how to fix it? Than You

    If it happens again and the reset (home + power buttons) doesn't work, just let the battery drain; you'll know when the screen shuts off. Charge it back up and it should be fine. Frankly, I'm surprised this worked for you. Usually I hear people with this problem say that holding both buttons doesn't work, and they have to do the battery drain.
    If the issue is incurable next time, you have a one-year warranty from the date of purchase.

  • MPX 2.1.1.2 - Wrong time in e-mail notification header

    Hi,
    when I schedule a meeting withMeeting Place Express 2.1.1.2, everobody recieve the notification for the meeting but the e-mail is coming with wrong time in its header(as shown in the attached file). The date seems to be set correctly but the time is always 00:00.
    Meanwhile the schedueled time in the e-mail body is correct, as I've specified it.
    The date and time on the server and the application are correct.
    Any ideas what can be the problem?
    Regards,
    Vladimir Stankov

    Thank you very much for your reply, Jonathan.
    I suspected it was a bug but couldn't find it. Any chance you can give the bug ID?
    Anyway I will contact TAC on this matter.

  • My mail has recently started showing the wrong time. i am set to uk london time but it will not do it. help?

    i recently noticed that my mail was displaying the wrong time. i have tried looking on help and have unset and reset to london time but it makes no difference. how do i get this to go back to the right time?

    Oh my goodness this has been happening to me since 20th November. I have tried EVERYTHING. Its also effected my imessages as I had 9 come through this sunday....from before Christmas. My network provider hs told me to send it off to Apple....a 60 mile round trip and theyll possibly give you a new one as Ive not had it a year. I need my phone for work too.
    Please Apple...HELP !!!!

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • XFCE's Clock shows the wrong time...

    XFCE's clock shows the wrong time constantly (it always shows the GMT time), but whenever I run hwclock -r, it tells me the correct time. Can anyone help fix it?

    Well, I think I found what was wrong at last. It seems that the timezone wasn't set in the rc.conf, even though the TZ variable was set. I changed it, but will have to restart in a bit to see if it works.

Maybe you are looking for