RESUMABLE SESSION

RESUMABLE SESSION

Let you enable and disable resumable space allocation. This feature allows an operation to be suspended in the event of an out-of-space error condition and to resume automatically from the point of interruption when the error condition is fixed.Using RESUMABLE Session to Avoid Transaction Abort Due to Space Errors

Note:

Resumable space allocation is fully supported for operations on locally managed tablespaces. Some restrictions apply if you are using dictionary-managed tablespaces.
 
一.one session
1. grant resumable to user
2. alter session enable resumable timeout  1200
3.SQL> create table t_resume tablespace myts as select * from all_objects; ------halt and there is no error appear.
       ORA-01652: unable to extend temp segment by 8 in tablespace MYTS
二 another session;
1.SQL> alter database datafile '/u01/oradata/lsh/myts01.dbf' resize 50m;
三 one session
 SQL> create table t_resume tablespace myts as select * from all_objects;
表已创建。
ENABLE RESUMABLE:

This clause enables resumable space allocation for the session.

TIMEOUT TIMEOUT: lets you specify (in seconds) the time during which an operation can remain suspended while waiting for the error condition to be fixed. If the error condition is not fixed within the TIMEOUT period, then Oracle Database aborts the suspended operation.

NAME: NAME lets you specify a user-defined text string to help users identify the statements issued during the session while the session is in resumable mode. Oracle Database inserts the text string into the USER_RESUMABLE and DBA_RESUMABLE data dictionary views. If you do not specify NAME, then Oracle Database inserts the default string 'User username(userid), Session sessionid, Instance instanceid'.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值