Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Prashant.

Asked: August 26, 2016 - 7:45 am UTC

Last updated: August 26, 2016 - 7:59 am UTC

Version: Oracle 11g

Viewed 1000+ times

You Asked

There is column called jobstream_dt in a table spc_records
I want to run a Delete script using Bulk collect technique to delete rows from that table where jobstream_dt is older than 540 days.
We have around 125 million rows in that table which are older than 540 days.
Can you please provide PLSQL script for this?

and Connor said...

Why do you need bulk collect ?

Why not just:

delete from spc_records where jobstream_dt < sysdate-540

Can you elaborate further on the requirement for bulk collect, so we can best advise on a solution

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Prashant Kumar, August 29, 2016 - 7:02 am UTC