You are on page 1of 2

Resumable Space

If you were running a long batch program and the tablespace run out of space, this would cause an error, you would
increase the amount of space in the tablespace and rerun your job, and this could take quite a bit of time.

Oracle's resumable space will suspend the running job that has run into problems due to lack of space and will
automatically continue when the space issue has been fixed.

You can make all operations run in resumable space allocation mode by using a alter session command. The
following database operations are resumable
 Queries - they can always be resumed after the temporary tablespace has run out of space.
 DML Operations - insert, delete, and update can all be resumed
 DDL Operations - index operations involving creating, rebuilding and altering are resumable as are create
table as select operations
 import and export operations - SQL loader jobs are resumable but to must use the resumable parameter in the
SQL loader job.

You can resume operations that are of the following types of errors
 out of space - typical error message is the ORA-01653
 maximum extents errors - typical error message is the ORA-01628
 users space quota errors - typical error message is the ORA-01536

grant resumable to vallep;


Privilege
grant execute on dbms_resumable to vallep;
Who has privilege select grantee, privilege from dba_sys_privs where privilege='RESUMABLE';
Who has set resumable mode select user_id, session_id, status, timeout, name from dba_resumable;
Who is in resumable mode select user_id, session_id, name, timeout, start_time, suspend_time from dba_resumable;
waiting for space select username, event from v$session where event like '%sus%';
Resumable space across entire resumable_timeout=7200;
database Note: default is 0, time is in seconds
Resumable space in session alter session enable resumable;
alter session enable resumable timeout 18000;
Resumable space in session
execute dbms_resumable.set_timeout(18000);
with timeout
Note: time is in seconds
Resumable space in session and
alter session enable resumable name 'pauls_resumable';
adding a name
Display resumable space mode
select dbms_resumable.get_timeout() from dual;
options
Disable resumable space mode alter session disable resumable;

Useful Views
DBA_SYS_PRIVS describes system privileges granted to users and roles.
DBA_RESUMABLE lists all resumable statements executed in the system.
V$SESSION lists session information for each current session

You might also like