Database Triggers and event attributes--Event Attributes
With the introduction of the 20 new database triggers, came the creation of attribute events or variables that are set when a certain database trigger event is executed. The previous section highlighted each of the database triggers, along with the event attributes that are set and can be referenced for each trigger. Below is a list of each of the attribute events, the data type and a short description.
Attribute Event | Data Type | Description |
ora_client_ip_address | VARCHAR2 | Provides the IP address of the client machine when using TCP/IP |
ora_database_name | VARCHAR2(50) | Provides the database name |
ora_des_encrypted_password | VARCHAR2 | Provides the DES encrypted password of the user being created or altered |
ora_dict_obj_name | VARCHAR(30) | Provides the object name of the object being manipulated |
ora_dict_obj_name_list (name_list OUT ora_name_list_t) | BINARY_INTEGER | Provides a list of object names being manipulated |
ora_dict_obj_owner | VARCHAR(30) | Provides the owner of the object being manipulated |
ora_dict_obj_owner_list(owner_list OUT ora_name_list_t) | BINARY_INTEGER | Provides the owners of the objects being manipulated |
ora_dict_obj_type | VARCHAR(20) | Provides the type of object being manipulated |
ora_grantee( user_list OUT ora_name_list_t) | BINARY_INTEGER | Provides the number of grantees |
ora_instance_num | NUMBER | Provides the instance number. |
ora_is_alter_column( column_name IN VARCHAR2) | BOOLEAN | Provides a return value of TRUE if the specified column is altered |
ora_is_creating_nested_table | BOOLEAN | Provides a return value of TRUE if the current event is creating a nested table |
ora_is_drop_column( column_name IN VARCHAR2) | BOOLEAN | Provides a return value of TRUE if the specified column is dropped |
ora_is_servererror | BOOLEAN | Provides a return value of TRUE is the error specified is on the error stack |
ora_login_user | VARCHAR2(30) | Provides the login schema |
ora_partition_pos | BINARY_INTEGER | Provides the position in a CREATE TABLE command where the partition clause can be inserted when using the INSTEAD OF trigger |
ora_privilege_list( privilege_list OUT ora_name_list_t) | BINARY_INTEGER | Provides the list of privileges being granted or revoked |
ora_revokee (user_list OUT ora_name_list_t) | BINARY_INTEGER | Provides a list of the revokees of the revoke command |
ora_server_error | NUMBER | Provides the error on the error stack for the position specified in the stack (1 meaning the top of the stack) |
ora_server_error_depth | BINARY_INTEGER | Provides the total number of errors on the error stack |
ora_server_error_msg (position in binary_integer) | VARCHAR2 | Provides the error on the error stack for the position specified in the stack (1 meaning the top of the stack) |
ora_server_error_num_params (position in binary_integer) | BINARY_INTEGER | Provides the number of strings that have been substituted into the error message on the error stack for the position specified in the stack (1 meaning the top of the stack) |
ora_server_error_param (position in binary_integer, param in binary_integer) | VARCHAR2 | Provides the matching substitution value in the error message for the parameter number specified in conjunction with the position specified on the stack ( 1 meaning the top of the stack) |
ora_sql_txt (sql_text out ora_name_list_t) | BINARY_INTEGER | Provides the SQL statement of the statement that caused the trigger to execute (if the statement is lengthy, it will separate it into multiple PL/SQL table elements); the value returned specifies the number of elements |
ora_sysevent | VARCHAR2(20) | Provides the system or client event that caused the trigger to execute |
ora_with_grant_option | BOOLEAN | Provides a return value of TRUE if the privileges are granted with the grant option |
space_error_info( error_number OUT NUMBER, error_type OUT VARCHAR2, object_owner OUT VARCHAR2, table_space_name OUT VARCHAR2, object_name OUT VARCHAR2, sub_object_name OUT VARCHAR2) | BOOLEAN | Provides a return value of true if the error is related to an out-of-space error and provides the object information of the object with the error |
These attribute events allow extreme flexibility and functionality in each of the database triggers and should be used as necessary.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/34596/viewspace-780681/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 21C TriggersOracle
- HTML 23 - Form AttributesHTMLORM
- HTML 25 - Input AttributesHTML
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- event_x ()、event_y ()、event_x_root ()、event_y_root ()
- Unity-Built-In-Attributes 內建屬性UnityUI
- 理解 PHP 8 中的 Attributes (註解)PHP
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- drools規則屬性(rule attributes)的使用
- WPF Button Setter Template Setter.Value ControlTemplate Border ContentPresenter ControlTemplate.Triggers
- event.preventDefault()和event.stopPropagation()
- Database TimeoutDatabase
- Database OverallDatabase
- database no shardingDatabase
- OC系列教程之gitError:unable to access '.config/git/attributesGitError
- A Better Finder Attributes Mac檔案重新命名工具Mac
- A Better Finder Attributes 日期屬性設定淺析
- Quartz.NET 2.x 文件翻譯 - Lesson 2:Jobs 和 Triggersquartz
- Added non-passive event listener to ascroll- blocking ‘mousewheel‘event Consider marking event handlBloCIDE
- JavaScript EventJavaScript
- Event 2024.6.18
- Event loopOOP
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- A Better Finder Attributes 7 for Mac - 影像批量資訊修改工具Mac
- 資訊批量修改工具:A Better Finder Attributes 7 Mac版Mac
- ORACLE database vaultOracleDatabase
- Relationship Database DesignDatabase
- 3.4 Quiescing a DatabaseUIDatabase
- idea--DatabaseIdeaDatabase
- Oracle clone databaseOracleDatabase
- database的connectDatabase
- Password is required when adding a database to AG group if the database has a master keyUIDatabaseAST
- ORA-16649: possible failover to another database prevents this database from beiAIDatabase
- PostgreSQL 原始碼解讀(242)- plpgsql(CreateFunction-compute_function_attributes)SQL原始碼Function
- event.relatedTarget
- mysql 事件 eventMySql事件
- ORACLE EVENT && ORADEBUGOracle