Toad World® Forums

Next 10 scheduled run times ...

Morning all,

Toad 10.6 GA.

I created a schedule and the next 10 run times didn’t take account of
the start date I gave it. I wanted a start date of 1st September 2011
and a BYHOUR=7. When I checked the next 10 run times, they started
“today”.

I also noticed that I’m not able to put an expression into the start
data entry box because Toad wraps what I put in a set of quotes, and
assumes it’s a date format of ‘yyyy/mm/dd hh24:mi:ss tzr’. For example,
I can do this in the MOE:

BEGIN
SYS.DBMS_SCHEDULER.CREATE_SCHEDULE
(
schedule_name => ‘SYSTEM.fred’
,start_date =>
TO_TIMESTAMP_TZ(to_char(trunc(systimestamp)+4,‘yyyy/mm/dd’),
‘yyyy/mm/dd’)
,repeat_interval => ‘frequency=daily; byhour=7,12’
,end_date => NULL
,comments => NULL
);
END;
/

But not in the schedule creator dialogue because whatever I enter gets
wrapped in TO_TIMESTAMP_TZ(’ my_stuff ') and causes an error. Obviously
with Toad 11 well along the way, I’m not expecting a fix in 10, but it
may be still a problem in 11.

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Hi Norm,

In the ‘create schedule’ dialog, if you right-click in the start
time edit box, it’ll give you choices like “now”,
“tomorrow at midnight”, etc. If you choose one of those, it’ll
populate the edit box with the expected format. I guess I didn’t account
for expressions here.

It’s too late to have this in 11, but I’ll fix it for the first beta
after that.

-John

On 26/08/11 14:06, John Dorlon wrote:

In the ‘create schedule’ dialog, if you right-click in the start time
edit box, it’ll give you choices like “now”, “tomorrow at midnight”,
etc. If you choose one of those, it’ll populate the edit box with the
expected format. I guess I didn’t account for expressions here.
Yes, thanks. I saw that when I failed to enter an expression for myself.
I chose “Tomorrow at 8:00 am” to see what it was expecting. In the end,
I copied the SQl to the editor and amended it prior to hitting it with F9!

It’s too late to have this in 11, but I’ll fix it for the first beta
after that.
Excellent. thanks.


Cheers,
Norm. [TeamT]