Indexes on the table whose definition you are trying to extract with
dbms_metadata.get_ddl('TABLE','TABLE_NAME','SCHEMA')