I have to delete millions of rows from table.
what i found on net
Delete rows and commit after some deletion.
Script is
BEGIN
LOOP
delete FROM FORM_RESPONSES_DATA
where FK_SERVICEREQUEST_ID = 95581 and rownum < 10000;
exit when SQL%rowcount < 9999 ;
commit;
END LOOP;
commit;
END;
But this script not working.
And i also want to know how can i call this script from java code.
thanx