For previous users of the software, the following steps summarize the process for upgrading your database to version 10.
Back up the database. For example:
dbbackup -c "DBF=mydb.db;UID=DBA;PWD=sql" old-db-backup-dir
NoteMake sure you use the correct version of dbbackup to back up your database. See Using the utilities. |
If possible, defragment the drive where the new database will be stored because a fragmented drive can decrease database performance.
For an alternative procedure to defragmenting, see Rebuilding a version 9 or earlier database without defragmenting.
Shut down all SQL Anywhere and Adaptive Server Anywhere database servers because the version 10 dbunload utility cannot be used against a database that is running on a previous version of the database server. For example:
dbstop -c "DBF=mydb.db;UID=DBA;PWD=sql"
Unload and reload (rebuild) the old database into a new version 10 database. For example:
dbunload -c "DBF=mydb.db;UID=DBA;PWD=sql" -an mydb10.db -o dbunload_log_mydb.txt
Shut down the new database and back it up before using it. For example:
dbstop -c "DBF=mydb10.db;UID=DBA;PWD=sql" dbbackup -c "DBF=mydb10.db;UID=DBA;PWD=sql" new-db-backup-dir