Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: FAST snapshot to refresh once per day at 8pm.
Rob van den Berg <rvdbNoSpam_at_gni.ns.nl> wrote:
> create (or alter) snapshot ..
> refresh next trunc(sysdate) + 8
As written, this will actually set the refresh to happen every eight days, at midnight.
What is actually desired is:
refresh fast start with sysdate next trunc(sysdate + 1) + 8/24;
(for 8 am the next day)
Or: next trunc(sysdate + 1) + 20/24;
(for 8 pm the next day)
The trunc(sysdate + 1) evaluates to midnight of the next day; the fractional date added to it is the number of hours to be used as an offset to that date.
-bn Received on Tue Mar 24 1998 - 00:00:00 CST