Dba_scheduler runs in wrong time

Dear all,
I am using Oracle 12c database.
I am using a dba_scheduler which runs at 10.AM (Eg.)
That scheduler does some mail alert to my customers. The scheduler failed to run at 10.Am
For testing I am manually execute the scheduler.
But when the scheduler runs, the receiving time in my mail shows wrongly as 11.45PM
I crosschecked the database time it shows correct time.
Previously, I ran the same setup in 10g database which worked fine.
Ideas are appreciated.
Thanks.

Dear Greg,
The result of the query is current time,
9/25/2014 3:37:14.062000000 PM -07:00
By the way,
BEGIN
  SYS.DBMS_SCHEDULER.CREATE_JOB
       job_name        => 'SYS.MY_SCHEDULE'
      ,start_date      => TO_TIMESTAMP_TZ('2014/09/24 15:48:39.262000 +05:30','yyyy/mm/dd hh24:mi:ss.ff tzr')
      ,repeat_interval => 'freq=daily; byhour=10; byminute=0; bysecond=0;'
      ,end_date        => NULL
      ,job_class       => 'DEFAULT_JOB_CLASS'
      ,job_type        => 'PLSQL_BLOCK'
      ,job_action      => 'BEGIN DB.Proc_Mail_Gen; END;'
      ,comments        => 'ALERTS'
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'RESTARTABLE'
     ,value     => FALSE);
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'LOGGING_LEVEL'
     ,value     => SYS.DBMS_SCHEDULER.LOGGING_RUNS);
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'MAX_FAILURES');
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'MAX_RUNS');
  BEGIN
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
      ( name      => 'SYS.MY_SCHEDULE'
       ,attribute => 'STOP_ON_WINDOW_CLOSE'
       ,value     => FALSE);
  EXCEPTION 
    WHEN OTHERS THEN
      NULL;
  END;
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'JOB_PRIORITY'
     ,value     => 3);
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'SCHEDULE_LIMIT');
  SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name      => 'SYS.MY_SCHEDULE'
     ,attribute => 'AUTO_DROP'
     ,value     => TRUE);
  SYS.DBMS_SCHEDULER.ENABLE
    (name                  => 'SYS.MY_SCHEDULE');
END;
Thanks.

Similar Messages

  • 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.

  • Running Jobs in wrong Time Zone

    Hello Gurus.
    All jobs run without troubles/issues in own BW 3.5 (Netweaver2004, SAP_BASIS 640).
    The Jobs in the BW system, self it's running in different Time Zone, because Time Zone of instance is different  in relattion to Host clock.
    The SAP Notes for to apply and fix the problem/issue we have them.
    If we apply these SAP Notes, the time execution of the jobs also it modify?
    Thanks

    Hi
      All you need to do is goto SPRO -> click on reference IMG and General Settings -> Time Zones and Maintain System Zones and then select the Time zone you need for both System and User Default and save it.
    The above solution should resolve your issue, let me now if any problems.
    Thanks,

  • 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.

  • 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.

  • JDKs in weblogic server return wrong time zone

    Hi , i am running weblogic server 8.1.4, 8.1.6 and 10 on my windows vista
    all of the JDK bundled (both Sun's and JRockit) return GMT instead of my local time zone when i call Timezone.getDefault()
    I am quite sure the operating system has set to correct time zone because my self installed JDK (downloaded from sun) works properly (return correct local time zone)
    is that i have missed anything?
    please help.

    I am noticing the same problem with iCal events imported from Orbitz. The thing is that the more I look into it the more I think this is meant as a feature, not a bug. Go into iCal preferences > Advanced and uncheck "Turn on time zone support". Import the event again and this time both the graphic view and the Get Info view will display the same information.
    It appears that this setting is meant to be useful if you travel to different time zones a lot. Basically, with it you get a time zone dropdown menu in iCal. So when you are in a different time zone you can select it from the dropdown and it will show what time your events occur in your new local time. Just keep in mind that when you create a new event it will be created based on the time zone you have selected. So if you are in California and have selected that time zone but you are adding an entry for a meeting you have when you are back in New York make sure that you select the correct time zone when creating that meeting because by default it will be created in California time and when you return to New York and switch your calendar back it will show the event at the wrong time.
    Frank

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • 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

  • Why does the iPhone 5c display wrong time?

    My iphone 5c currently started displaying the wrong time. I hadnt updated the software yet and thought this was the source of the issue. After the update was complete the time was still incorrect. I have tried syncing my phone with itunes, deleting world clocks, doing hard resets, even wiped the phone back to factory settings. Nothing has worked

    Ok, so this is a two fold problem.  One just like brad805 pointed out you have to have Settings App > General > Date & Time > if Set Automatically is OFF > ON, if it was ON > OFF > Set Date & Time yourself (but when you bring up this screen to manually set time there is this little reminder about having location services set to ON for it to change time zones correctly).  So, leave it  Settings App > General > Date & Time > if Set Automatically is OFF > ON, now go back to Settings App>Privacy>Location Services>ON (if off).  Once I did this (which mine was off) and I went back to Date & Time instead of it thinking I was in New York, it now showed a very complicated America/Indiana/Indiana... (I suspect this is due to the fact that Indiana has 3 time zones EST, EDT (for the counties that observe) and CDT).  Now time is running automatic and smoothly.  This was on an iPhone 5c 16 GB running 7.1.2 on Verizon.  I hope this helps.
    On a side note, its sad that techs in the store cannot read the screen and Apples little notes on it to help you out.

  • 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.

  • Is it possible to make sure the app runs all the time either in the foreground or background, User should not have the flexibility to stop it from running

    Hello all:
      I have an enterprise app and i need to make sure it runs all the time.
    If the app is not running i should silently make sure it restarts again.
    Any ideas on how it can be done. It is an enterprise app
    Thanks

    Hmmm....
    How about wrapping all of your dll calls in a single VI (or an Action Engine ) and make sure the VI's thread is NOT set for "Same as caller".
    "Threadconfig.vi" (sp?) will also let you dictate the number of threads associated with an execution system. Set your target thread for "1".
    Not sure on the above.
    Please correct me if this is wrong!
    Ben
    Message Edited by Ben on 07-19-2007 08:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Date Book data transfers to wrong time

    I'm transferring Palm Desktop 6.2 user data from my new 64 bit Vista laptop to my 32 bit Vista desktop for the first time, and the Date Book info transfers to the wrong time - all meetings are 8 hours late. I think I have a screwy installation on the desktop. I've uninstalled and re-installed the program many times, and consistently get the time problem plus:
    - " version (unknown)" in the About dialogue
    - " invalid configuration. terminating the Palm Desktop" message when I run the program after installation (a re-run of the installer in repair mode fixes that)
    - and no response from entries in the Date Book when I change my time zone.
    I've used the 4.0.1 version of Palm Desktop for years, and had to uninstall it (after adding PalmDevC.dll to System32) to do the V6.2 installation. It smells like a registry problem to me, but I've got no experience fussing in that neighborhood. Any help would be greatly appreciated
    Post relates to: None

    Sorry but I led you astray.. I am not familar with that seagate.
    The internal format of the disk drive is not actually relevant. I did not realise you had it setup as network drive.
    Network drives present to the network in SMB ie windows type format or AFP type format. Unfortunately there are some issues with SMB and mountain lion. And if seagate does not support AFP which is very likely that can be one factor at least in it being slow. Just do a google for SMB mountain lion slow and you will see what I mean.
    It is not universal and it should have been fixed but Apple changed something in ML and some other devices .. especially those not purposed specifically for Mac have not updated.
    But there can also be network issues.. these things can be a pain to narrow down.
    Things seem to play fine from the TC, except one weird thing. Some movies play but have no audio. The same movies, playing from my MBP reading from the TC play fine with audio. But when streaming through home sharing on an ipad, no sound.
    This has nothing to do with the TC.. as you probably realise you are trying to break out of the Apple Walled Garden.. itunes and itunes store.. and hence you run into problems is not surprising.
    I can play files just fine from a TC but I use a WDlive TV player.. which is a real media player.. not a streamer like Apple TV.

  • 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 --

  • Wrong time on virtual machine

    Hello,
    I'm running Windows 2003 Standard virtual machines under a Windows 2008 Datacenter Hyper-V Server.  The system time of all of my virtual machines is 3 hours later than the time of my physical host.
    When I try to change the time on my VMs, it resets itself back to the wrong time after a few seconds, and I get this message in the System log:
    Event Type: Information
    Event Source: W32Time
    Event Category: None
    Event ID: 35
    Description:
    The time service is now synchronizing the system time with the time source VM IC Time Synchronization Provider.
    Any ideas on what might be causing this?
    Thanks,
    Stephen

    Hello,
    I'm running Windows 2003 Standard virtual machines under a Windows 2008 Datacenter Hyper-V Server.  The system time of all of my virtual machines is 3 hours later than the time of my physical host.
    When I try to change the time on my VMs, it resets itself back to the wrong time after a few seconds, and I get this message in the System log:
    Event Type: Information
    Event Source: W32Time
    Event Category: None
    Event ID: 35
    Description:
    The time service is now synchronizing the system time with the time source VM IC Time Synchronization Provider.
    Any ideas on what might be causing this?
    Thanks,
    Stephen
    Are any of your DCs on physical boxes? If they are then set them up to pull time from pool.ntp.org. Then set up your hosts and guests to pull from that DC. Allow firewall exceptions for NTP inbound on that DC.
    If all DCs are VMs then set up one of the physical hosts to poll pool.ntp.org for time and then set the VMs to poll the host. Again set the firewall accordingly.
    http://blog.mpecsinc.ca/2011/01/hyper-v-preparing-high-load-vm-for-time.html
    We have had a lot of pain over the time skew situation for VMs.
    The above methods work for us. In some cases we drop in an HP MicroServer with Win2K8 R2 running as a DC and set it up to poll pool.ntp.org and then have all VMs poll it for time.
    The problem has to do with the polling frequency needed as indicated in the blog post. Do that to ntp.org's servers and they will pass along the Kiss-Of-Death packets basically killing the ability to poll their servers for time.
    Philip Elder SBS MVP Blog: http://blog.mpecsinc.ca

  • World clock wrong times

    Hello
    Has anyone noticed on the new update on iso on the iPhones the world clock is showing the wrong times around the world.
    Is anyone else getting this too.
    Thanks
    Ramo

    Hmmm....
    The good news - Mine just got 1.0.2 installed [I presume it failed the initial attempt because I'd run "ifuntastic" to get custom ringtones.....]
    Anyway, I attacked the World clock (now back in its default "Cupertino" time zone - Which happens to be me, so I added New York, London and Madrid - All show up correctly, and for me very "elegantly":
    Cupertino: 5:20pm today
    New York: 8:20pm today
    London: 1:20am tomorrow
    Madrid: 2:20am tomorrow
    Looks good to me.....Sorry, I thought I had it!,
    Cheers,
    Ian

Maybe you are looking for

  • Game Center + 2 iPhones + 2 iPods + 1 Apple ID = ??

    OK, have two iPhones and two iPods in the house all using the same Apple ID*. How will I be able to use the Game Center using the same Apple ID? Possible? All 4.1 compatible devices. *Obvious why I do this - share Apps/purchases across Apple hardware

  • I have a PDF document in Hebrew--how do I convert it to editable Word document?

    I have a document in PDF--in Hebrew.  How can I convert it into a neditable Word document?   When I tied converting it, the Hebew characters of thge original came out as bizarre latin fonts--and when I changed the fonts, some to hebrew, they all appe

  • Renaming Set Code and Stage Code for a refresh set in Concurrent Manager

    Hi, We're using Oracle Applications 11.5.10.2 on a 10.2.0.4 Database: Would anyone know how to rename the Set Code for the Refresh Set and Stage Code for the Stage for a Refresh Set in Concurrent Manager? I've seen it done in the two Report Sets but

  • How to confirm excise register post

    hi, We are doing excise capture and post in MIGO tap. after MIGO, how to check excise register either update or not? rgs mrs

  • RMAN-03002 RMAN Error !

    Hello,For testing purposes I am duplicating my database from 11gR1 to 11gR2 on Windows XP. The Oracle Sid of my database SOurce, which is in 11gR1 is : DB01. The Oracle Sid of my auxiliary database , which is in 11gR2 is : DB02. I am using RMAN for t