Blocking Pattern (Avoid in Production)

ALTER TABLE customers ADD (loyalty_tier VARCHAR2(16) DEFAULT 'STANDARD' NOT NULL);

Zero-Downtime Safe Rewrite

ALTER SESSION SET DDL_LOCK_TIMEOUT = 10;
ALTER TABLE customers ADD (loyalty_tier VARCHAR2(16) DEFAULT 'STANDARD' NOT NULL);

Production Rollout Notes

  • Verify no fine-grained auditing or legacy triggers disable the fast-add metadata optimization.
  • Always pair production DDL with DDL_LOCK_TIMEOUT.