Tuesday, October 16, 2018

ORA-30009: Not enough memory for CONNECT BY operation


ORA-30009: Not enough memory for CONNECT BY operation
Cause: The memory size was not sufficient to process all the levels of the hierarchy specified by the CONNECT BY clause.
Action: In WORKAREA_SIZE_POLICY=AUTO mode, set PGA_AGGREGATE_TARGET to a reasonably larger value. Or, in WORKAREA_SIZE_POLICY=MANUAL mode, set SORT_AREA_SIZE to a reasonably larger value.



SQL> select count(*) from dual connect by level <= 100000000;
select count(*) from dual connect by level <= 100000000
                     *
ERROR at line 1:
ORA-30009: Not enough memory for CONNECT BY operation



SQL>select count(*) from
  2  (select level from dual connect by level <= 10000),
  3  (select level from dual connect by level <= 10000);

  COUNT(*)
----------
 100000000


3 comments:

  1. Thank you for providing this kind of useful information,
    I am searching for this kind of useful information; it is very useful to me and some other looking for it. It is very helpful to who are searching for Database Developer.Database Developer Training in Bangalore

    ReplyDelete
  2. Excellent information with unique content and it is very useful to know about the information.Database Developer Training

    ReplyDelete