Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Script for INDEX creation
List hi!
>From one schema in production database I want to create same indexes on the
other (same schema on different instance).
I know that I can do it with imp in indexfile, but it is not good enough.
Does anyone have script with which I could dinamicaly create indexes on all
tables within schema?
Something like this:
select ('drop index'||' '||index_name||';' ) from user_indexes TIA, Sonja
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?ISO-8859-2?Q?Sonja_=A9ehovi=E6?= INET: sonja.sehovic_at_pbz.hr Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Mar 07 2001 - 07:51:48 CST
![]() |
![]() |