Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:01 AM
db2group88@yahoo.com
Guest
 
Posts: n/a
Default 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.
  #2  
Old November 12th, 2005, 09:01 AM
Ian
Guest
 
Posts: n/a
Default Re: db2look question

db2group88@yahoo.com wrote:
[color=blue]
> 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.[/color]

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! =-----
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.