RE: ddl -- db2look for a specific table.

RE: ddl -- db2look for a specific table.

 

  

Probably you are specifying -u option which will generate tables under that creator.
db2look -d RAHUL -z EONE -t TSYS_user_mstr -e -o c:\db2look.sql
-z is schema name,
-t table name

-- Rahul Singh


-----Original Message-----
From: pavan [mailto:db2udbdba-ezmlmshield-x12523229.[Email address protected]
Sent: Wednesday, August 30, 2006 7:08 PM
To: LazyDBA Discussion
Subject: ddl -- db2look for a specific table.




Hi all,
When I ran db2look against a specifc schema, I found out that there were
few tables for which the DDL was not generated !! Interestingly, now, when
I use db2look to generate ddl for a set of tables that I want, I am not
getting ddl.
Instead I am getting all updates, alters (which I need on top of create
table statement).
Is there any way I can generate create table ddl statement along with
updates, alters, grants etc statements for a specific set of tables ?
I tried looking at documentation but it is not clear to me why although I
include -e option, I dont get the create table statement in db2look o/p.

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