Queries aborting due to insufficient spool is because the quantity of data that is brought in spool for joining between the two tables is more than the allocated spool space for the user. Mostly this is because of improper primary index selection, because the rows needs to be on the same AMP to be joined together regardless of the type of join inner/outer.
BETWEEN clause is more resource intensive and normally ends up in full table scan.
You need to assign more spool space to the user.
↧