Scenario: If some ask you to drop and index and re-create it. How you are going to get DDL of the Index? before we to extract index DDL using package "DBMS_METADATA.GET_DDL "
"dba_indexes" tell about what are the index's on the objects
SQL> select dbms_metadata.get_ddl ('INDEX','INDEXNAME','SCHEMANAME') from dual;
(or)
If you know the object name in the schema and you want to extract DDL
here we go this is very cool. :)
select dbms_metadata.get_ddl (object_type, object_name) from user_objects where object_type='INDEX';
--Nikhil Tatineni--
--Oracle In-Memory--
"dba_indexes" tell about what are the index's on the objects
SQL> select dbms_metadata.get_ddl ('INDEX','INDEXNAME','SCHEMANAME') from dual;
(or)
If you know the object name in the schema and you want to extract DDL
here we go this is very cool. :)
select dbms_metadata.get_ddl (object_type, object_name) from user_objects where object_type='INDEX';
--Nikhil Tatineni--
--Oracle In-Memory--