Note
This view was introduced in OceanBase Database V4.2.5. Data types defined in a package are displayed in this view only if the package is successfully compiled.
Purpose
The USER_PLSQL_TYPES view displays the overall information about data types defined in packages of the current user.
Applicability
This view applies only to OceanBase Database in Oracle mode.
References
- ALL_PLSQL_TYPES
- DBA_PLSQL_TYPES
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TYPE_NAME | VARCHAR2(136) | NO | The name of the PL/SQL data type. |
| PACKAGE_NAME | VARCHAR2(128) | YES | The name of the package to which the PL/SQL data type belongs. |
| TYPE_OID | RAW(16) | NO | The object identifier of the PL/SQL data type. |
| TYPECODE | VARCHAR2(58) | NO | The code of the PL/SQL data type. |
| ATTRIBUTES | NUMBER(38) | NO | The number of attributes in the PL/SQL data type. |
| CONTAINS_PLSQL | VARCHAR2(3) | NO | Indicates whether the PL/SQL data type contains PL/SQL code. |
Sample query
Query the overall information about data types defined in packages of the current user.
obclient> SELECT * FROM USER_PLSQL_TYPES;