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 10.1.0.2 to 11.2.0.1.0 [Release 10.1 to 11.2]
Information in this document applies to any platform.
Oracle Server Enterprise Edition - Version: 10.1.0.2 to 11.2.0.1
***Checked for relevance on 01-Mar-2017***

Goal

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

Solution

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