Note
This view is introduced since OceanBase Database V4.1.0.
Purpose
The DBA_TRIGGER_ORDERING view sorts 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
View the sorting of all triggers in the current tenant.
obclient[SYS]> SELECT * FROM SYS.DBA_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 sorting of triggers that the current user can access, see ALL_TRIGGER_ORDERING.
To view the sorting of triggers owned by the current user, see USER_TRIGGER_ORDERING.
For more information about triggers, see Create and manage triggers.