Note
This view is introduced since OceanBase Database V4.1.0.
Purpose
The ALL_TRIGGER_ORDERING view sorts all triggers in the current database.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TRIGGER_OWNER | VARCHAR2(128) | YES | The owner of the trigger. |
| TRIGGER_NAME | VARCHAR2(128) | NO | The name of the trigger. |
| REFERENCED_TRIGGER_OWNER | VARCHAR2(128) | YES | The owner of the referenced trigger. |
| REFERENCED_TRIGGER_NAME | VARCHAR2(128) | YES | The name of the referenced trigger. |
| ORDERING_TYPE | VARCHAR2(8) | NO | The sorting type. |
Sample query
Query the ordering of all triggers accessible to the current user.
obclient[SYS]> SELECT * FROM SYS.ALL_TRIGGER_ORDERING;
Here is the query result:
+---------------+------------------+--------------------------+-------------------------+---------------+
| TRIGGER_OWNER | TRIGGER_NAME | REFERENCED_TRIGGER_OWNER | REFERENCED_TRIGGER_NAME | ORDERING_TYPE |
+---------------+------------------+--------------------------+-------------------------+---------------+
| SYS | TRG_AUDIT_DETAIL | SYS | TRG_AUDIT_BASE | FOLLOWS |
+---------------+------------------+--------------------------+-------------------------+---------------+
1 row in set
References
To view the ordering of all triggers in the current tenant: DBA_TRIGGER_ORDERING
To view the ordering of triggers owned by the current user: USER_TRIGGER_ORDERING
For more information about triggers, see Create and manage triggers.