Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > How to change s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 8797 of 9056
Post > Topic >>

How to change schema of table in DB2 v.8.2 without coping data

by Dmitriy Lapko <bespridannik@[EMAIL PROTECTED] > Apr 16, 2008 at 05:49 AM

Hallo all

Is it possible to change schema of table in DB2 v.8.2 without
recreating and coping a table into a new schema?

I need it for several purposes, one of them - refactoring of existing
old database with more then 250 tables. I would like to split it to
subsystems, but some of tables are quite large.

And the size of tables prevents me from getting copy of production
database for our test envi-ronment. Total backup is almost 500 Gbytes.
But 98% of these data are stored in 3 tables, which are just archive.
So I planned:
1) move them to another schema,
2) create views in old schema, which will point to a new,
3) create a new user, which will have read access only to old schema.

So I will be able to make a backup under this new user with almost all
tables but much less then 500GB.

Why don't I use IM****T/EX****T? Because a lot of tables have IDENTITY
GENERATED ALWAYS, so I have conflicts in IDs when I load ex****ted
data. Also, db2move tool allows only 10 table names to be specified at
a time...

But may be there are another ways to make partial backup of the big
database? And another way to refactor it to group tables by systems
else then by schemas?


Thank you in advance!
 




 6 Posts in Topic:
How to change schema of table in DB2 v.8.2 without coping data
Dmitriy Lapko <besprid  2008-04-16 05:49:54 
Re: How to change schema of table in DB2 v.8.2 without coping da
Serge Rielau <srielau@  2008-04-16 11:31:09 
Re: How to change schema of table in DB2 v.8.2 without coping da
Lennart <Erik.Lennart.  2008-04-18 02:21:06 
Re: How to change schema of table in DB2 v.8.2 without coping da
Serge Rielau <srielau@  2008-04-18 07:24:44 
Re: How to change schema of table in DB2 v.8.2 without coping da
Lennart <Erik.Lennart.  2008-04-18 05:12:48 
Re: How to change schema of table in DB2 v.8.2 without coping da
Lennart <Erik.Lennart.  2008-04-18 10:10:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 19:51:18 CDT 2008.