Tag: Oracle

Community

Definitive Datafile Data Report

by Jonathan Reinharz – The following script quickly and, more importantly, efficiently provides both tablespace status and structural data. Datafiles are grouped by tablespace and ordered by the percentage of free space in them. Output is made clearer with the use of literals (%, MB).

Community

Truncate tables using PL/SQL

By Kevin Shidler – This tip truncates data from tables using PL/SQL for Oracle8i. It first disables all foreign key constraints that would cause the “ORA-02266: unique/primary keys in table referenced by enabled foreign keys” error, truncates the tables, and then re-enables all the foreign keys.