Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL error while refreshing snapshots -- please help
When I call the following PL/SQL procedure:
CURSOR C_USER_SNAPSHOTS IS
SELECT NAME FROM USER_SNAPSHOTS WHERE LAST_REFRESH<SYSDATE - .1;V_SNAPSHOT_NAME USER_SNAPSHOTS.NAME%TYPE; begin
FOR V_NAME IN C_USER_SNAPSHOTS LOOP
V_SNAPSHOT_NAME := V_NAME.NAME; begin dbms_snapshot.refresh(V_SNAPSHOT_NAME); DBMS_OUTPUT.PUT_LINE('ERDTEST: '||V_SNAPSHOT_NAME||' REFRESHED SUCCESSFULLY!'); DBMS_OUTPUT.PUT_LINE(' '); commit; exception WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('ERDTEST: '||V_SNAPSHOT_NAME||' NOT REFRESHED!'); DBMS_OUTPUT.PUT_LINE(SQLERRM); DBMS_OUTPUT.PUT_LINE(' '); commit; end;
I get output like the following:
ERDTEST: LFB5 REFRESHED SUCCESSFULLY! ERDTEST: T005S REFRESHED SUCCESSFULLY! ERDTEST: T005U REFRESHED SUCCESSFULLY! ERDTEST: T006 REFRESHED SUCCESSFULLY! ERDTEST: T006D REFRESHED SUCCESSFULLY! ERDTEST: SKB1 REFRESHED SUCCESSFULLY! begin daily_snapshot_refresh; end;
*
ERROR at line 1:
ORA-01555: snapshot too old: rollback segment number 3 with name "RB2" too
small
ORA-06512: at "ERDVIEW.DAILY_SNAPSHOT_REFRESH", line 22 ORA-06512: at line
1
My question is two parts:
Thanks,
Chad Dunnegan
--
Any comments or statements made are not necessarily those of Monsanto
Corporation, its subsidaries or affiliates.
Received on Sat Aug 29 1998 - 14:48:52 CDT