--Create simple table and materialized vIEwcreate table test1(a varchar2(1 char));create materialized vIEw mv_test1 as select a from test1;--Increase column wIDth of column in the tablealter table test1 modify (a varchar2(2 char));--Insert new value that uses full sizeinsert into test1 values('12');--Try to compile and refresh the materialized vIEwalter materialized vIEw mv_test1 compile;begin dbms_mvIEw.refresh(user||'.MV_TEST1');end;/ORA-12008: error in materialized vIEw refresh pathORA-12899: value too large for column "JHELLER"."MV_TEST1"."A" (actual: 2,maximum: 1)ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2563ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2776ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2745ORA-06512: at line 3--Increase column wIDth of column in the materialized vIEw and refreshalter materialized vIEw mv_test1 modify (a varchar2(2 char));begin dbms_mvIEw.refresh(user||'.MV_TEST1');end;/select * from mv_test1;A--12总结
以上是内存溢出为你收集整理的oracle – 在行表列大小更改后如何更改实例化视图列大小?全部内容,希望文章能够帮你解决oracle – 在行表列大小更改后如何更改实例化视图列大小?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)