sqlupgrade verifies that the server is eligible for the upgrade. Perform all pre-upgrade tasks before running sqlupgrade.
To upgrade using sqlupgrade:
Make sure the server you are upgrading is running.
Verify that your SYBASE environment variable points to the location of the new Adaptive Server software files you just unloaded.
You also can set the OLDSYBASE environment variable to the location of the server you are upgrading, to avoid typing this path when you run sqlupgrade.
Verify that you have performed the tasks mentioned on the screen, before beginning the upgrade.
sqlupgrade automatically copies the interfaces file entry of the server you are upgrading from the old interfaces file to the new interfaces file.
Execute sqlupgrade in either of the following ways:
At the UNIX prompt, enter:
$SYBASE/$SYBASE_ASE/bin/sqlupgrade
A sqlupgrade screen is displayed.
Alternatively, you may access sqlupgrade through the asecfg utility. Then click on the Upgrade an Existing Server button.
Click OK.
The Specify Sybase Directories screen of sqlupgrade is displayed. Provide the installation directory location for both the new server release and your current server.
If the SYBASE environment variable is set, sqlupgrade displays the value of the SYBASE environment variable as the directory location for the new server release.
If the OLDSYBASE environment variable is set, sqlupgrade displays that value as the directory location for your current server.
Enter the name of the component directory that contains the new server version. For example, ASE-12_5.
Enter the full path of the old Sybase release directory. For example, /opt/sybase-11.9.2.
If the OLDSYBASE environment variable is set, sqlupgrade displays that value as the directory location for the old server.
Leave the field, “Enter the name of the component directory which contains the old version” blank.
Click Continue. The Adaptive Server Selection screen displays.
From the list of server names provided, select the server you want to upgrade.
If the server you are upgrading is not running, sqlupgrade prompts you to start the server. The server you are upgrading must be running.
Click OK. The SA Password screen is displayed.
Enter the password for the System Administrator (sa) login.
Click OK. The Specifying Upgrade Options screen is displayed.
Specify an upgrade option.
You can run the upgrade eligibility tests before performing the actual upgrade, or you can upgrade immediately after the upgrade eligibility tests run successfully.
The upgrade eligibility tests verify that your current server meets the requirements for upgrading to the new version. (The online help provides a partial list of what the upgrade eligibility tests check.) If your current server fails the upgrade eligibility test, you must fix the problem.
Adaptive Server 11.9.x did not automatically create a sybsystemproc database and device. Unless you created one, the eligibility test will fail. The Back button launches the “Specify sybsystemprocs” screen.
Enter the full path to the sybsystemproc device and 105MB for the sybsystemproc database. Click OK to continue with the eligibility test.
Click OK to upgrade your server. sqlupgrade displays the Status Output screen.
View the Status Output screen for the completion status and informational messages about the upgrade process.
Do not interrupt the upgrade, and do not try to connect to Adaptive Server or run any stored procedures while the upgrade is in progress.
On some UNIX platforms, the sqlupgrade utility may not return you to the command prompt even though the upgrade has completed successfully. To exit the utility, force an exit by pressing Ctrl + C.
You can also check the progress of the upgrade by viewing the sqlupgrade log in $SYBASE/$SYBASE_ASE/init/logs/sqlupgradeMMDD.NNN.
If the upgrade is successful, a “Done” message is displayed in the Status Output screen.
When the upgrade completes successfully, you can:
Click OK to specify another server to upgrade, or
Exit sqlupgrade, and go to “Post-upgrade tasks”.