471,887 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 1876
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
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.