问题:
SQL> insert into log_ select level lv,rownum rn from dual connect by level<=10000000;
insert into log_ select level lv,rownum rn from dual connect by level<=10000000
*
第 1 行出现错误:
ORA-30009: CONNECT BY 操作内存不足
解决第一步:
SQL> insert /*+append*/ into log_ select level lv,rownum rn from xmltable('1 to 10000000');
insert /*+append*/ into log_ select level lv,rownum rn from xmltable('1 to 10000000')
*
第 1 行出现错误:
ORA-01788: 此查询块中要求 CONNECT BY 子句
解决第二步:
SQL> conn /as sysdba
已连接。
SQL> alter system set "_allow_level_without_connect_by"=true;
系统已更改。
解决第三步:
SQL> conn hr/hr
已连接。
SQL> insert into log_ select level lv,rownum rn from xmltable('1 to 10000000');
已创建10000000行。
在向表中插入大量行时,提示ora-30009错误的解决过程
最新推荐文章于 2021-05-25 11:12:10 发布
