Note
This view is available starting with V4.3.5 for V4.3.x.
This view is available starting with V4.2.5 for V4.2.x.
Purpose
The USER_PLSQL_TYPES view displays the overall information about package types in the current user schema. Only when a package is successfully compiled can its types be displayed in this view.
Applicability
This view is applicable only to OceanBase Database in Oracle-compatible mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TYPE_NAME | VARCHAR2(136) | NO | The name of the PL/SQL type. |
| PACKAGE_NAME | VARCHAR2(128) | YES | The name of the package to which the PL/SQL type belongs. |
| TYPE_OID | RAW(16) | NO | The object identifier of the PL/SQL type. |
| TYPECODE | VARCHAR2(58) | NO | The code of the PL/SQL type. |
| ATTRIBUTES | NUMBER(38) | NO | The number of attributes in the PL/SQL type. |
| CONTAINS_PLSQL | VARCHAR2(3) | NO | Indicates whether the PL/SQL type contains PL/SQL code. |
Sample query
Query the overall information about package types in the current user schema.
obclient> SELECT * FROM USER_PLSQL_TYPES;
References
- Query the overall information about package types: ALL_PLSQL_TYPES.
- Query the overall information about package types in the current tenant: DBA_PLSQL_TYPES.