By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,586 Members | 2,445 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,586 IT Pros & Developers. It's quick & easy.

db2look question

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.