Reference Manual
CHAPTER 4. Database Administration Utilities
Databases can be unloaded and rebuilt using either of two rebuild components: the Rebuild wizard in Sybase Central or the Rebuild batch or command file, which invokes a series of utilities to rebuild a database.
Sybase Central's Rebuild wizard lets you change the 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).
Open the Database Utilities folder in the left panel.
Double-click Rebuild Database in the right panel. The Rebuild wizard is displayed.
Follow the instructions in the wizard.
rebuild old-database new-database [dba-password]
The DBUNLOAD command-line utility
The DBINIT command-line utility
This Windows NT batch file or UNIX 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 Interactive SQL commands with the default command line options. If you need different options, you will need to run the three commands separately.