ALTER TABLEtable‑name ADDCACHESEGMENTsegment‑name [WHERErange‑specification] | DROPCACHESEGMENTsegment‑name
where:
range‑specification::= col-name < value | col-name > value | col-name = value | col-name <> value | col-name BETWEEN value AND value | col-name OLDERTHAN value DAYS | col-name OLDERTHAN value SECONDS | col-name NEWERTHAN value DAYS | col-name NEWERTHAN value SECONDS
Access requirements
SYS_ADMIN_ROLE role
Usage
▪ Use the ALTER TABLE ... ADD CACHE SEGMENT statement to assign a table (or a part of a table as specified by the WHERE subclause) to a cache segment.
If you use the OLDERTHAN and NEWERTHAN keywords, which specify date and time ranges, the data type for the column must be of type DATE or TIMESTAMP.
If the value cannot be converted to the column type, the operation fails.
▪ Use the ALTER TABLE ... DROP CACHE SEGMENT statement to drop a table from a cache segment.