Error while executing the plsql block for mview refresh [message #610435] |
Thu, 20 March 2014 01:41 |
|
Hi,
Here is the code iam using to refresh mviews in my schema.
declare
cursor mv_cur is select mview_name from user_mviews where rownum<=5;
mview_list dbms_utility.uncl_array;
begin
open mv_cur ;
fetch mv_cur
bulk collect into mview_list ;
close mv_cur ;
dbms_mview.refresh(mview_list, 'F' ) ;
end ;
/
iam getting the following error
Error report -
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
ORA-06512: at line 9
01403. 00000 - "no data found"
*Cause:
*Action:
even though it implemented the loop and used exit when nodata found still im getting the same error. Please help me what is the real cause for this .
Regards,
Narendra
|
|
|
|
|
|
|
|
|
|
|
Re: Error while executing the plsql block for mview refresh [message #610778 is a reply to message #610476] |
Mon, 24 March 2014 05:01 |
|
Iam getting the count results.
declare
cursor mv_cur is select mview_name from user_mviews where rownum<=5;
mview_list dbms_utility.uncl_array;
begin
open mv_cur ;
fetch mv_cur
bulk collect into mview_list ;
close mv_cur ;
dbms_output.put_line('no of mviews '||mview_list.count);
dbms_mview.refresh(mview_list, 'F' ) ;
end ;
/
Error starting at line : 3 in command -
declare
cursor mv_cur is select mview_name from user_mviews where rownum<=5;
mview_list dbms_utility.uncl_array;
begin
open mv_cur ;
fetch mv_cur
bulk collect into mview_list ;
close mv_cur ;
dbms_output.put_line('no of mviews '||mview_list.count);
dbms_mview.refresh(mview_list, 'F' ) ;
end ;
Error report -
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
ORA-06512: at line 10
01403. 00000 - "no data found"
*Cause:
*Action:
no of mviews 5
|
|
|
|