Max
2013-08-29 16:45:50 UTC
We have two different business units with a one prod and one dev sybase
server each,with 2 databases in each server. Let's call them server_A and
server_B, with db_1 and db_2 databases. They have the same Version of
Sybase (15.5) with the same EBF & ESD.
Initially we started out with the same set of tables/procs etc, but over a
period of time some differences have cropped up in our code/ddl.
Now we want to take a dump from Production server_A.db_1 and load into the
DEV server of server_B.db_1. but according to our dba team, server_A and
server_B were built at different times with different fragment sizes. To be
able to dump/load from server_A.db_1 to server_B.db_1, the fragments in
both databases should match. Otherwise corruption will occur, according to
our dba team.
Is it possible to take server_A.db_1 as a model and rebuild server_B.db_1
with the same fragment configuration? What are the problems we may face
doing that? Since server_B objects have some differences from server_A
objects, can we be able to restore server_B objects again to their original
state after the db rebuild?
My plan was :
1. to take a dump from server_B.db_1 as a backup
2. then rebuild server_B.db_1 to match the server_A.db_1 fragment,
3. after the rebuild restore the server_B.db_1 database from the dump taken
in step 1
But the dba said that step 3 is not possible since the backup was taken
from teh original fragment size and now we have a new fragment size after
the rebuild and hence the backup cannot be restored.
Can anyone suggest a better solution other than using bcp and dbschema.pl
to backup and restore?
server each,with 2 databases in each server. Let's call them server_A and
server_B, with db_1 and db_2 databases. They have the same Version of
Sybase (15.5) with the same EBF & ESD.
Initially we started out with the same set of tables/procs etc, but over a
period of time some differences have cropped up in our code/ddl.
Now we want to take a dump from Production server_A.db_1 and load into the
DEV server of server_B.db_1. but according to our dba team, server_A and
server_B were built at different times with different fragment sizes. To be
able to dump/load from server_A.db_1 to server_B.db_1, the fragments in
both databases should match. Otherwise corruption will occur, according to
our dba team.
Is it possible to take server_A.db_1 as a model and rebuild server_B.db_1
with the same fragment configuration? What are the problems we may face
doing that? Since server_B objects have some differences from server_A
objects, can we be able to restore server_B objects again to their original
state after the db rebuild?
My plan was :
1. to take a dump from server_B.db_1 as a backup
2. then rebuild server_B.db_1 to match the server_A.db_1 fragment,
3. after the rebuild restore the server_B.db_1 database from the dump taken
in step 1
But the dba said that step 3 is not possible since the backup was taken
from teh original fragment size and now we have a new fragment size after
the rebuild and hence the backup cannot be restored.
Can anyone suggest a better solution other than using bcp and dbschema.pl
to backup and restore?