Question : Page size in sybase

Hi,

Current page size of my sybase instance is 4k but I need to load a dump which has 2k page size.When I am loading, I am getting error.." LOAD DATABASE failed because of page size incompatibility.
Is there any easy way to change the page size of my current instance..load the dump do my work.. and then revert back the to 4k.

The only solution I have is, to create another new sybase instance with 2k page and load the dumps. But I dont have much resource to do that.

Please let me know if anybody has any solution.


 

Answer : Page size in sybase

You are out of luck I'm afraid. There is no dump and load between different page sizes; page sizes are global to the ASE instance (so all databases in the same ASE must have the same page size); and page size cannot ever be changed.

You have two options:

1) As you say, create a 2K page size ASE and load your database into that, or
2) Do some kind of per-object creation and data transfer.

You have a few different ways of implementing the second option but they more or less boil down to the same thing: reverse-engineer the source database, apply scripts to the destination database, and then transfer data table by table. This is fussy and complicated but not actually very difficult, with many Sybase and third-party tools, some free, some pay-to-use, that will do some or all of this for you.
Random Solutions  
 
programming4us programming4us