ORA-12056: invalid REFRESH method
Cause: The NEVER REFRESH option may not be used under the following conditions:
* The materialized view is updatable
* The materialized view refreshes ON COMMIT
* Automatic refresh options are specified
Action: For updatable materialized views, reissue the SQL command using REFRESH FORCE, REFRESH FAST, or REFRESH COMPLETE. For read-only materialized views, reissue the SQL command using ON DEMAND.
本错误是Oracle数据库报错代码之一,表明没有使用正确的REFRESH方法来重新加载聚合(Aggregate)视图,REFERSH方法必须是'COMPLETE’或'FAST’。
错误码 ORA-12056 表明 REFRESH方法无效,或参数值不正确。 REFRESH必须是FAST或COMPLETE及执行任何必要的步骤。
1、检查重新刷新聚合视图时指定的REFRESH方法是否有效;
2、修改代码,将REFRESH操作的参数方法指定为“FAST”或“COMPLETE”;
3、编译整个代码片段;
4、再次执行重刷新操作,查看结果。