469,306 Members | 1,903 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

db2look question

about db2look, if i want to extract the ddl from one schema then
reproduce the database objects on different server with different
schema, is it a way to do it? e.g. we provide the same ddl structure
for different clients, but must be under different schema names for
different customers.
Nov 12 '05 #1
1 1764
Ian
db********@yahoo.com wrote:
about db2look, if i want to extract the ddl from one schema then
reproduce the database objects on different server with different
schema, is it a way to do it? e.g. we provide the same ddl structure
for different clients, but must be under different schema names for
different customers.


sed is your friend.

db2look -d sample -e -z test1 | \
sed -e 's/\"TEST1 \"\./\"JOE \"\./g'
Or, you can use any other text editor with search/replace functionality.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dbtoo_dbtoo | last post: by
6 posts views Thread by Lennart Jonsson | last post: by
3 posts views Thread by BarryS | last post: by
8 posts views Thread by db2sysc | last post: by
2 posts views Thread by shsandeep | last post: by
1 post views Thread by Gregor Kovač | last post: by
2 posts views Thread by Justin | last post: by
1 post views Thread by blaisestephen | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.