A technique for migrating (e.g., "copying" or "moving") temporary data
from one session to another session is provided. While executing a
workload associated with a particular session, session state is created.
A subset of the session state comprises large objects that are referred
to as "temporary data." Thus, temporary data is stored in a database
(instead of in the database server) and is normally deleted when the
particular session is deleted. To avoid this deletion when the session
state is migrated to a different session, the temporary data, in one
embodiment, is saved in an external storage that is separate from the
database. An external table is created in the external storage and stores
the temporary data. Location information to access the external table is
provided to the other session.