dbms_resumable

SQL> show parameter resumable_timeout(单位是秒)

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
resumable_timeout                    integer     600

SQL> alter system set resumable_timeout=700;

System altered.


SQL> alter session enable resumable;

Session altered.

create tablespace small_qdl datafile '1.dbf' size 5m extent management local segment space management auto;
alter user qdl default tablespace qdl;
create table t as select * from dba_objects;


SQL> set serveroutput on
SQL>  execute print_table('select * from dba_resumable');
USER_ID                       : 49
SESSION_ID                    : 141
INSTANCE_ID                   : 1
COORD_INSTANCE_ID             :
COORD_SESSION_ID              :
STATUS                        : SUSPENDED
TIMEOUT                       : 7200
START_TIME                    : 02/20/06 15:36:32
SUSPEND_TIME                  : 02/20/06 15:36:33
RESUME_TIME                   :
NAME                          : User QDL(49), Session 141, Instance 1
SQL_TEXT                      : create table t_tmp as select * from dba_objects
ERROR_NUMBER                  : 1652
ERROR_PARAMETER1              : 128
ERROR_PARAMETER2              : SMALL_QDL
ERROR_PARAMETER3              :
ERROR_PARAMETER4              :
ERROR_PARAMETER5              :
ERROR_MSG                     : ORA-01652: unable to extend temp segment by 128
in tablespace SMALL_QDL

execute dbms_resumable.abort(session_id);

SQL> alter database datafile '/oradata10/DBA/datafile/small_qdl.dbf' resize 10m;

Database altered.
那边立刻执行结束


CREATE OR REPLACE TRIGGER res_default
after suspend on database
DECLARE
BEGIN
/* send an email to notify DBA */
COMMIT;
END;


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值