2.171 ALL_IMMUTABLE_TABLES

ALL_IMMUTABLE_TABLES describes the immutable tables accessible to the current user.

Related Views

  • DBA_IMMUTABLE_TABLES describes all immutable tables in the database.

  • USER_IMMUTABLE_TABLES describes the immutable tables owned by the current user. This view does not display the SCHEMA_NAME column.

Column Datatype NULL Description

SCHEMA_NAME

VARCHAR2(128)

NOT NULL

The schema containing the immutable table

TABLE_NAME

VARCHAR2(128)

NOT NULL

Name of the immutable table

ROW_RETENTION

NUMBER

Row retention period for the immutable table, that is, the minimum number of days a row must be retained and cannot be deleted after it is inserted into the table

If the value of this column is NULL, then rows can never be deleted from the table.

ROW_RETENTION_LOCKED

VARCHAR2(3)

Indicates whether the row retention period for the immutable table is locked. Possible values:

  • YES: The row retention period is locked. You cannot change the row retention period

  • NO: The row retention period is not locked. You can change the row retention period to a value higher than the current value with the SQL statement ALTER TABLENO DELETE UNTIL n DAYS AFTER INSERT

TABLE_INACTIVITY_RETENTION

NUMBER

Number of days for which the immutable table must be inactive before it can be dropped, that is, the number of days that must pass after the most recent row insertion before the table can be dropped

A table with no rows can be dropped at any time, regardless of this column value.

Note:

This view is available starting with Oracle Database release 19c, version 19.11.