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