I'm newbie with pl/sql and i need to do a large update in my database. More than 4 million entries must be changed and i want to execute a commit after every 5.000 update. I'm pretty lost to do this.
Here my query.
update accounts a set a.validateid = 'TH20381', flagexport = 25, exportname ='zde'
where a.accountnumber >= 35026879 and a.ownerid like 'V35%';
Thanks in advance.
If you really need to do that, you can consider using
DBMS_PARALLEL_EXECUTE
package. Here is an example how it would look like:The user creating the task must be granted the
CREATE JOB
privilege.Based on article by Tim Hall accessible here: DBMS_PARALLEL_EXECUTE at Oracle Base