A temporary table in
Oracle persists just like a regular table, but contains either session-specific
or transaction-specific data. Whether the data is session- or transaction-specific
is determined by what is specified with the ON COMMIT keyword when
you create the temporary table.
In the SAS context,
you must use the LIBNAME option, CONNECTION=SHARED, before data in
a temporary table persists over procedure and DATA step boundaries.
Without this option, the temporary table persists but the data within
it does not.
For data to persist
between explicit SQL pass-through boundaries, you must use the LIBNAME
option, CONNECTION=GLOBAL.
If you have a SAS data
set and you want to join it with an Oracle table to generate a report,
the join normally occurs in SAS. However, using a temporary table,
you can also have the join occur on the Oracle server.