You must unload and reload your database to upgrade its file format.
Caution
Unloading and reloading a large database can be time consuming and can require a large amount of disk space. The process may require disk space approximately twice the size of your database to hold the unloaded data and the new database file. |
If you are upgrading the file format for a database that is involved in SQL Remote replication or that is a remote database in a MobiLink installation, and if you use the utility, you must be sure to use the -ar or -an option. The option ensures that the transaction log offsets for the new database are set to match those of the old database.
NoteIt is recommended that you back up your database before you rebuild it. |
Carry out the standard precautions for upgrading software. See Important upgrade precautions.
Start Sybase Central.
From the Start menu, choose Programs > SQL Anywhere 10 > Sybase Central.
Start a version 10 database server running the database you want to upgrade.
From the Tools menu, choose SQL Anywhere 10 > Unload Database.
The Unload Database wizard appears.
Read the text on the first page of the wizard and then click Next.
Choose to unload the database to which you are connected. Click Next.
Choose to unload the database that is already running. Click Next.
Specify a new filename for the database. Click Next.
You can specify the page size for the new database. The default page size is 4096 bytes. You can encrypt the database file if you want. You need the encryption key each time you want to start the database.
For more information about database file encryption, see Encrypting a database.
Choose Unload Structure and Data. You can also select any other options you want for your database. Click Next.
Choose Unload All Database Objects. Click Next.
Specify whether you want to connect to the new database when the unload/reload is complete.
Click Finish to start the process. You should examine the new database to confirm that the rebuild completed properly.
For more information about using the Unload Database wizard, see Using the Unload Database wizard.
Carry out the standard precautions for upgrading software. See Important upgrade precautions.
Ensure that you have exclusive access to the database to be upgraded and ensure that the version 10 utilities are ahead of other utilities in your system path. See Using the utilities.
Execute the Unload utility (dbunload) using the -ar option to create a new database.
dbunload -c "connection-string" -an new-db-file
The database user specified in the connection-string must connect to the database to be unloaded with DBA authority.
This command replaces the existing database with an upgraded database. To use the -ar option, you must connect to a personal server, or to a network server on the same computer as the Unload utility (dbunload).
For information about other Unload utility (dbunload) options, see Unload utility (dbunload).
Shut down the database and archive the transaction log before using the reloaded database.
If you want to change the characteristics of the database during unload and reload (for example, change a case-sensitive database to a case-insensitive database), the procedure is more involved. For more information, see Rebuilding databases.