How to get DDL for all indexes in a schema?

(Doc ID 781168.1)

Last updated on MARCH 01, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.1 to 11.2]
Information in this document applies to any platform.
Oracle Server Enterprise Edition - Version: to
***Checked for relevance on 01-Mar-2017***


This document explains how to get DDL for all indexes in a specific schema using dbms_metadata in a single SQL statement.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms