RE: db2look to extract only indexes.

RE: db2look to extract only indexes.

 

  

Pavan,
I suggets to use the drop command on each indx, then the create index to create them, and then reorg table , and stats
if you want to use all in one step use a tex editor and create a .slq file,
then if the the termination character for the SQL script is a semicolon (;)Run:
db2 -tvf [filename.sql] >> [outputfile.txt]
that is going to write on the output file the messages and results.




possunt quia posse videntur
They can because they seem to be able to
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(((' (((-((('' ((((
Guillermo J.. Moreno M.
Softtek Mexico
IMPORTANTE: Los documentos y archivos que se acompañan a esta transmisión, contienen información confidencial la cual es legalmente secreta. Esta información puede ser usada únicamente por el destinatario cuyo nombre aparece inserto en esta transmisión. Si usted ha recibido esta transmisión por error, notifíquenos inmediatamente por esta misma vía, y borre el archivo y sus anexos. Se hace de su conocimiento por medio de esta nota, que cualquier divulgación, copia, distribución o toma de cualquier acción derivada de la información confiada en esta transmisión, queda estrictamente prohibido, el incumplimiento de esto genera responsabilidad legal.

________________________________

From: pavan [mailto:db2udbdba-ezmlmshield-x13728642.[Email address protected]
Sent: Thu 2/22/2007 09:35 AM
To: LazyDBA Discussion
Subject: db2look to extract only indexes.



Gurus,
I have used db2look few times but now am not able to figure out the exact
command to extract the ddl for indexes on a given set of tables.
The idea is to drop these non-primary indexes to load data (to make it
faster) and then re-create these dropped indexes.
Can someone help me in generating the ddl for non-primary indexes on a
given set of 10-15 tables.
thanks.



---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




DB2 & UDB email list listserv db2-l LazyDBA home page