-1

A view returns 6 millions records. Earlier i used to export with sql developer(right click and export, it takes more than 2hr), but my senior said that, if do like this query will get executes every 500 rows. so we are getting warnings from DBA(long running queries).

when searching internet i found that spooling works better for exporting. So i have doubt,In spooling is query executes once & start exporting or it executes for till last row exporting.

1 Answers1

1

it is executed once, create a cursor which is the image of your query at the time of the execution, and then start fetching your data in your spool. If you make any update after the execution, it will not appear in your spool.

Steven
  • 14,048
  • 6
  • 38
  • 73