Unix Technical Forum

moving tables between schema

This is a discussion on moving tables between schema within the DB2 forums, part of the Database Server Software category; --> hi everyone..... Can anyone tell how to move tables between schemas.......... that is changing the schema name of the ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:13 AM
Gladiator
 
Posts: n/a
Default moving tables between schema

hi everyone.....
Can anyone tell how to move tables between
schemas.......... that is changing the schema name of the
table................

thanks in advance....
Kamal

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:13 AM
Philip Nelson
 
Posts: n/a
Default Re: moving tables between schema

Gladiator wrote:

> hi everyone.....
> Can anyone tell how to move tables between
> schemas.......... that is changing the schema name of the
> table................
>
> thanks in advance....
> Kamal


Currently this is a seriously manual process (create new table and all
related objects, move the data over) !!!

But with V9 Viper you will have a command to move objects between schemas
very easily.

Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:13 AM
Gladiator
 
Posts: n/a
Default Re: moving tables between schema


Philip Nelson wrote:
> Gladiator wrote:
>
> > hi everyone.....
> > Can anyone tell how to move tables between
> > schemas.......... that is changing the schema name of the
> > table................
> >
> > thanks in advance....
> > Kamal

>
> Currently this is a seriously manual process (create new table and all
> related objects, move the data over) !!!
>
> But with V9 Viper you will have a command to move objects between schemas
> very easily.
>
> Phil




Thanks a lot Philp........

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:13 AM
hikums@gmail.com
 
Posts: n/a
Default Re: moving tables between schema

You can use the Copy table feature in control center, but you have to
do this for each table in the schema.


Gladiator wrote:
> Philip Nelson wrote:
> > Gladiator wrote:
> >
> > > hi everyone.....
> > > Can anyone tell how to move tables between
> > > schemas.......... that is changing the schema name of the
> > > table................
> > >
> > > thanks in advance....
> > > Kamal

> >
> > Currently this is a seriously manual process (create new table and all
> > related objects, move the data over) !!!
> >
> > But with V9 Viper you will have a command to move objects between schemas
> > very easily.
> >
> > Phil

>
>
>
> Thanks a lot Philp........


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:14 AM
Jayesh Thakrar
 
Posts: n/a
Default Re: moving tables between schema

I use db2move for this task.
Use db2move to export your data.
Then edit the db2move.lst file and replace the "source" schema name
with the targe schema name.
Then use db2move to import your data.

Hope that helps....

-- Jayesh

Gladiator wrote:
> hi everyone.....
> Can anyone tell how to move tables between
> schemas.......... that is changing the schema name of the
> table................
>
> thanks in advance....
> Kamal


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:19 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com