All Products
Search
Document Center

PolarDB:DBA_OBJECTS

Last Updated:Mar 28, 2026

DBA_OBJECTS is a system view that returns metadata for all objects in the database.

Column reference

ColumnTypeDescription
ownerTEXTUsername of the object owner.
schema_nameTEXTName of the schema that contains the object.
object_nameTEXTName of the object.
object_typeTEXTType of the object. Valid values: INDEX, FUNCTION, PACKAGE, PACKAGE BODY, PROCEDURE, SEQUENCE, SYNONYM, TABLE, TRIGGER, and VIEW.
statusCHARACTER VARYINGValidity status of the object. Included for Oracle compatibility only. Always set to VALID.
temporaryTEXTY if the table is a temporary table, N if the table is a permanent table.
last_ddl_timeTIMESTAMP WITH TIME ZONETimestamp of the last DDL statement executed on the object.
data_object_idOIDObject identifier (OID) of the data.
subobject_nameTEXTName of the subobject (for example, a partition name).
object_idOIDObject identifier.

Usage notes

  • status is included for compatibility with Oracle applications that query this column. Its value is always VALID regardless of the actual object state — do not use it as a filter condition.

  • Query ALL_OBJECTS to view objects accessible to the current user, or USER_OBJECTS to view objects owned by the current user.