oracle 觸發器 client 事件
轉自:http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg14evt.htm#1000872
Client Events
Client events are the events related to user logon/logoff, DML, and DDL operations. For example:
CREATE OR REPLACE TRIGGER On_Logon
AFTER LOGON
ON The_user.Schema
BEGIN
Do_Something;
END;
The LOGON and LOGOFF events allow simple conditions on UID( ) and USER( ). All other events allow simple conditions on the type and name of the object, as well as functions like UID( ) and USER( ).
The LOGON event starts a separate transaction and commits it after firing the triggers. All other events fire the triggers in the existing user transaction.
The LOGON and LOGOFF events can operate on any objects. For all other events, the corresponding trigger cannot perform. any DDL operations, such as DROP and ALTER, on the object that caused the event to be generated.
The DDL allowed inside these triggers is altering, creating, or dropping a table, creating a trigger, and compile operations.
If an event trigger becomes the target of a DDL operation (such as CREATE TRIGGER), it cannot be fired later during the same transaction
Table 16-3 contains a list of client events.
Table 16-3 Client EventsEvent | When Fired? | Attribute Functions |
---|---|---|
BEFORE ALTER |
When a catalog object is altered. |
ora_sysevent |
BEFORE DROP |
When a catalog object is dropped. |
ora_sysevent |
BEFORE ANALYZE |
When an analyze statement is issued |
ora_sysevent |
BEFORE ASSOCIATE STATISTICS |
When an associate statistics statement is issued |
ora_sysevent |
BEFORE AUDIT |
When an audit or noaudit statement is issued |
ora_sysevent |
BEFORE COMMENT |
When an object is commented |
ora_sysevent |
BEFORE CREATE |
When a catalog object is created. |
ora_sysevent |
BEFORE DDL |
When most SQL DDL statements are issued. Not fired for ALTER DATABASE, CREATE CONTROLFILE, CREATE DATABASE, and DDL issued through the PL/SQL procedure interface, such as creating an advanced queue. |
ora_sysevent |
BEFORE DISASSOCIATE |
When a disassociate statistics statement is issued |
ora_sysevent |
BEFORE GRANT |
When a grant statement is issued |
ora_sysevent |
BEFORE LOGOFF |
At the start of a user logoff |
ora_sysevent |
AFTER LOGON |
After a successful logon of a user. |
ora_sysevent |
BEFORE RENAME |
When a rename statement is issued. |
ora_sysevent |
BEFORE REVOKE |
When a revoke statement is issued |
ora_sysevent |
AFTER SUSPEND |
After a SQL statement is suspended because of an out-of-space condition. The trigger should correct the condition so the statement can be resumed. |
ora_sysevent |
BEFORE TRUNCATE |
When an object is truncated |
ora_sysevent |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-620846/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mvvm模式 事件觸發器[wpf]MVVM模式事件觸發器
- Oracle開發基礎-觸發器Oracle觸發器
- 禁止oracle表的觸發器triggerOracle觸發器
- 取消事件觸發事件
- oracle儲存過程和觸發器Oracle儲存過程觸發器
- jQuery select 觸發事件jQuery事件
- 使用 jQuery 觸發 Vue 事件jQueryVue事件
- 取消事件觸發(妙啊)事件
- js 建立和觸發事件 和 自定義事件JS事件
- 技術分享:NodeJS中的Events(事件觸發器)講解NodeJS事件觸發器
- Vue事件獲取觸發事件物件和繫結事件物件Vue事件物件
- touch事件和click事件多次觸發的問題事件
- javascript避免dom事件重複觸發JavaScript事件
- 雙擊事件(dblclick)時,不觸發單擊事件(click)事件
- mysql觸發器MySql觸發器
- D觸發器觸發器
- 【透鏡系列】看穿 > 觸控事件分發 >事件
- withoutEvents函式裡面的事件被觸發函式事件
- ScrollView 觸控事件View事件
- JS觸控事件JS事件
- 企圖為vuex新增發布訂閱:事件繫結和事件觸發Vue事件
- Oracle:Windows10下安裝oracle client (win32_11gR2_client)OracleWindowsclientWin32
- SqlServer-觸發器SQLServer觸發器
- logon觸發器for dbaGo觸發器
- MySQL使用觸發器MySql觸發器
- 語句觸發器觸發器
- MySql-觸發器MySql觸發器
- sqlserver 列觸發器SQLServer觸發器
- 除錯觸發器除錯觸發器
- 建立MySQL觸發器MySql觸發器
- 【等待事件】SQL*Net vector date to client事件SQLclient
- 【等待事件】SQL*Net more data to client事件SQLclient
- storage事件中的坑,storage.setItem()無法觸發storage事件事件
- OO ALV 強制觸發 data_change事件事件
- 瞭解SQL Server觸發器及觸發器中的事務AWSQLServer觸發器
- Qt 事件傳遞流程-事件處理器|事件分發器|事件過濾器QT事件過濾器
- 觸發器 REFERENCING OLD AS OLD觸發器
- 行為和觸發器觸發器
- MySQL觸發器介紹MySql觸發器