Databases can be unloaded and rebuilt using one of two rebuild components: using the Rebuild wizard in Sybase Central or the Rebuild batch or command file, which invokes a series of SQL Anywhere utilities to rebuild a database.
Sybase Central's Rebuild wizard provides a chance for changing database configuration while rebuilding a database. The configuration settings that can be changed include page size and some database attributes (encryption, tailing blanks, and case sensitivity).
rebuild old-database new-database [dba-password]
DBINIT, DBUNLOAD, ISQL
This DOS or Windows NT batch file, OS/2 command file, or QNX script uses DBUNLOAD to rebuild old-database into new-database. This is a simple script, but it helps document and automate the rebuilding process. Both database names should be specified without extensions. An extension of DB. will automatically be added.
The dba-password must be specified if the password to the DBA user ID in the old-database is not the initial password SQL.
REBUILD runs the DBUNLOAD, DBINIT, and ISQL commands with the default command line options. If you need different options, you will need to run the three steps separately.