resumable特性以及系統觸發器中的SUSPEND event測試
先來看一道考題:
135. In the PROD database you have granted the RESUMABLE system privilege to the CONNECT role.
Resumable space operation has been enabled for all user sessions. You want users NOT to be aware of
any kind of space-related problems while performing transactions. Instead, you want the problem to be
resolved by a database trigger automatically.
Which combination of triggering time and event would you use to achieve this objective?
A. AFTER CREATE
B. AFTER SUSPEND
C. BEFORE CREATE
D. AFTER TRUNCATE
E. BEFORE SUSPEND
F. AFTER INSERT OR DELETE OR UPDATE
G. BEFORE INSERT OR DELETE OR UPDATE
Answer: B
測試:
1、建立測試表空間test、測試使用者test
SQL> create tablespace test datafile '/u01/app/oracle/oradata/exOa/test.dbf' size 3M;
SQL> create user test identified by test;
2、授權
SQL> grant resumable to test;
SQL> grant execute on dbms_resumable to test;
SQL> grant create session to test;
SQL> grant create table to test;
3、在使用者test下建立trigger
create or replace
trigger trigget_system
after suspend on database
begin
dbms_resumable.set_timeout(100);
end;
4、在使用者test下建表
SQL> create table t tablespace test as select * from user_objects;
5、反覆執行
SQL> insert into t select * from t;
直到:
SQL> insert into t select * from t;
insert into t select * from t
*
ERROR at line 1:
ORA-30032: the suspended (resumable) statement has timed out
ORA-01653: unable to extend table TEST.T by 128 in tablespace TEST
6、改變會話的resumable屬性
SQL> alter session enable resumable ;
7、重新插入資料到t表
SQL> insert into t select * from t;
執行掛起
8、調整tablespace對應的資料檔案
SQL> alter database datafile 7 autoextend on;
9、步驟7中掛起的執行馬上執行成功
SQL> insert into t select * from t;
32768 rows created.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21584437/viewspace-718887/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- resumable特性以及系統觸發器中的SUSPEND event測試!觸發器
- Oracle觸發器6(建立系統事件觸發器)Oracle觸發器事件
- 測試開發之系統篇-按需建立測試虛擬機器虛擬機
- 系統觸發器的應用順序(四)觸發器
- 系統觸發器的應用順序(三)觸發器
- 系統觸發器的應用順序(二)觸發器
- 系統觸發器的應用順序(一)觸發器
- asm中template特性測試!ASM
- (15)mysql 中的觸發器MySql觸發器
- 系統測試-從研發到測試過程
- 瞭解SQL Server觸發器及觸發器中的事務AWSQLServer觸發器
- SQL Sever 2000中的前觸發器和後觸發器SQL觸發器
- 觸發器中操作LOB觸發器
- 使用系統級觸發器禁用DDL語句觸發器
- 測試開發之系統篇-常用系統命令
- Alter system suspend/resume 導致的bug和特性
- expdp和impdp自動使用resumable特性
- Oracle中觸發器的應用 (zt)Oracle觸發器
- 觸發器中不能commit觸發器MIT
- 測試開發之系統篇-安裝KVM虛擬機器虛擬機
- 英國央行測試用於新支付系統的區塊鏈特性區塊鏈
- 開發板觸控式螢幕測試
- ora-01555模擬以及undo tbs的guarantee特性測試!
- 門戶系統測試---功能測試
- 在遊戲陪玩系統開發中,如何進行效能測試?遊戲
- [譯] 模組化系統中的 event.stopPropagation()
- mysql 觸發器/過程中的變數!!MySql觸發器變數
- mysql觸發器案例分析以及before和after的區別MySql觸發器
- 敏捷開發中的測試敏捷
- 門戶系統測試---測試計劃
- 瀏覽器中的Event Loop瀏覽器OOP
- 白盒測試、灰盒測試以及黑盒測試的區別
- Oracle觸發器觸發級別Oracle觸發器
- Android學習 —— 測試init.rc中的條件觸發的處理順序Android
- 軟體系統測試有哪些測試過程?系統測試報告如何收費?測試報告
- 先知-Baidu的系統測試AI
- 基於Web的系統測試Web
- 測試開發之系統篇-Docker常用操作Docker