cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to rebuild just one database space

Former Member
4,510

We have 3 database spaces: central.db, sales.db, invoice.db. The invoice.db has grown quite large and we are looking to drop 50% of the records (90GB of data). Is it possible to rebuild just this database space to reclaim this disk space or will we have to do a full unload/reload of the entire database?

We are using SQL Anywhere v12..01.3942 on Windows Server 2008 R2.

Thanks, Brian

Accepted Solutions (0)

Answers (1)

Answers (1)

VolkerBarth
Contributor
0 Kudos

You might suggest an enhancement to "move" a table to another dbspace, something like the fictional

ALTER TABLE [owner.]tablename MOVE TO location-string


Apparently, that would be an expensive operation, even more than REORGANIZE TABLE...

That way, you could move a table to a new dbspace and drop the old one afterwards - or could move it "home" to the system dbspace. Like REORGANIZE TABLE, it should not have effect on replication/synchronization as it would just move data physically, but not logically.