Oracle

From Alessandro's Wiki
Revision as of 14:13, 11 December 2013 by Xunil (talk | contribs) (Created page with " * check stats enabled: SELECT DBMS_STATS.get_prefs('PUBLISH') FROM dual; * list of tables ordered by size select segment_name,segment_type,bytes ,max_size from user_segm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  • check stats enabled:
SELECT DBMS_STATS.get_prefs('PUBLISH') FROM dual;
  • list of tables ordered by size
select segment_name,segment_type,bytes ,max_size  from user_segments  ORDER BY bytes DESC
  • disable constraint

alter table

disable constraint <constraint>;
  • enable constraint
alter table
enable constraint <constraint>;
  • empty table and release space
truncate table
DROP STORAGE;