Oracle newbie here - I am trying to run an insert statement to generate a very large amount of data.
- The original query is this:
INSERT INTO HR.fastData (ID)
SELECT 1 + (Level -1) * 1
FROM dual connect by Level < 100000000;
- First error received:
ORA-30009: Not enough memory for CONNECT BY operation
I followed the guidance provided here
Modified Query:
INSERT INTO HR.fastData (ID)
SELECT 1 + (Level -1) * 1
FROM
(select level from dual connect by Level < 10000),
(select level from dual connect by Level < 10000);
- Next error I received:
ORA-01788: CONNECT BY clause required in this query block
- Modified query now looks like this:
INSERT INTO HR.fastData (ID)
SELECT 1 + (Level -1) * 1
FROM DUAL CONNECT BY
(select Level from dual connect by Level < 10000),
(select Level from dual connect by level < 10000);
I am not able to get this to execute correctly, after many tries of different variations of the query. Am I using/placing the CONNECT BY
statement properly? Would appreciate any guidance.
Thanks!