I have a table with 70000 rows MYPROMPT varchar2(100), Mystring1 varchar2(100), Mystring2 varchar2(100)
So, data might look like this:
'GREETING','Hello there','Joe'
'GREETING','Hello there','Mike'
'GREETING','Hi','Steve'
'FIRING','You are fired','Dave'
'FIRING','Outta here','Bob'
I need to spool this to a file like
GREETING
Hello there Joe
Hello there Mike
Hi Steve
FIRING
You are fired Dave
Outta here Bob
I have a script that handles this, doing a select for each MYPROMPT, and this works fine. It runs a series of queries based on the various values for MYPROMPT. The problem is that it takes a long time to spool to the output file I need (well over an hour). Is there something I can set, either in SQLPlus or at the database that will speed this up?