I've tried the following statement. But it doesn't proceed parallel. Why? How can I speed up the operation?
ALTER SESSION ENABLE PARALLEL DML;
DELETE /*+ parallel(20) */
FROM table
WHERE flag != 'N';

try
ALTER SESSION ENABLE PARALLEL DML;
DELETE /*+ parallel(table, 20) */
FROM table
WHERE flag!= 'N';
you can also try another option to delete data, using CTAS, reference from asktom Deleting many rows from a big table
create table new_table unrecoverable as select * from old_table where ....;
drop table old_table;
rename new_table to old_table;
create index old_table_idx1 on old_table(c1,c2) unrecoverable parallel 5;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With