Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: SNAPSHOT REFRESH
> Seema,
>
> I have seen this happen when you refresh instances and use DBMS_JOB to
> refresh your materialized views (AKA snapshots). What usually happens
is
> that just after you open the database (after creating the control file
of
> the new instance and perform any recovery if hot backup was used) the
> DBMS_JOB runs and refreshes the MV's in the new instance and resets the
MV
> logs on the source (usually production!).
>
> If this is your case then include an 'ALTER SYSTEM SET
JOB_QUEUE_PROCESSES =
> 0;' in your rebuild script just before you issue the 'ALTER DATABASE
OPEN
> [RESETLOGS];' statement. Once the DB is open then include a step to
drop
> the DBMS_JOB that refreshes the MV's and then issue an 'ALTER SYSTEM SET
> JOB_QUEUE_PROCESSES = n;' where n is the value that you would like to
run in
> your non-production instances.
>
> Good Luck!
>
> -f
>
Good info Faan. I think I may have recently shot myself in the foot with
that
during recovery testing. Time to update the docs. :)
Jraed
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon Aug 09 2004 - 12:17:06 CDT
![]() |
![]() |