Performing Preupgrade Tasks

To ensure a successful upgrade, review and perform the preupgrade tasks as necessary. Depending on the old server configuration, you may not need to perform all preupgrade tasks.

Prerequisites
If you are upgrading Adaptive Server:
Task
  1. Shut down earlier versions of Adaptive Server.
  2. Install Adaptive Server 15.7 into a separate directory than the earlier version installed on your system.
  3. Check system and upgrade requirements.
  4. Ensure that the directory to which your TEMP environment variable points exists. The installation program uses this directory to write files temporarily during the installation, which it locates through the TEMP environment variable.
  5. If you are upgrading from Adaptive Server 12.5.4, run syconfig.exe:
    1. Select Upgrade Adaptive Server.
    2. Choose the server name.
    3. Log in to the server.
    4. Choose Command line, and add -T7841.
      The -T7841 option is not required if you are upgrading from Adaptive Server version 12.5.4 to the current Adaptive Server under the IPv4 environment.
    5. Save the changes.
  6. Verify that the text of all stored procedures you upgrade is available in syscomments by either:
    • Reinstalling the procedures with text, or,
    • Removing and reinstalling the procedures after the upgrade.
    This step can allow you to inspect the stored procedures for any hidden or unwanted text.
  7. Set the 'allow password downgrade' password policy option to 1 to ensure that passwords are encrypted with both the old and new algorithms, in case you need to downgrade to an earlier version of Adaptive Server.
  8. Make sure reserved words use quoted identifiers.
  9. Verify that users are logged off.
  10. Use dbcc to check for database integrity.
  11. Back up databases.
  12. Dump the transaction log.
  13. Verify that master is the default database for the "sa" user.
  14. Prepare the database and devices for upgrade using the preupgrade utility:
    1. Create a sybsystemdb database if it does not already exist.
    2. Disable auditing by running sp_configure 'auditing', 0
    3. If Job Scheduler is enabled, specify the path for Windows platforms in detail by copying %OLDSYBASE%\%OLDSYBASE_OCS\ini\libtcl.cfg to %SYBASE%\%SYBASE_OCS\ini\libtcl.cfg, then disable Job Scheduler.
    4. Obtain the current audit settings for the pre-15.7 Adaptive Server using sp_displayaudit; you use this saved information to re-enable auditing after you complete the installation. See Reenabling Auditing.
    5. Disable disk mirroring.
    6. Verify that your SYBASE environment variable points to the location of the new server software files you just installed.

      Set the OLDSYBASE, OLDSYBASE_ASE, and OLDSYBASE_OCS environment variables to the location of the server you are upgrading, to avoid having to type this path when you run syconfig.exe.

    Fix any problems that preupgrade utility reports.

    When there are no problems and the old server is ready for upgrade, syconfig.exe automatically starts the upgrade process when the preupgrade utility reports no errors.

    You can safely ignore any warnings Adaptive Server issues about configuration parameters not being set to the default, as these are only for your information.

  15. Ensure that the procedure cache size is at least 150 percent of the default procedure cache size, or between 53,248 and 2,147,483,647 2K pages.
  16. Copy these files from earlier versions of the server to their corresponding Adaptive Server 15.x installation locations:
    • %SYBASE%\ini\sql.ini
    • %SYBASE%\SYBASE_ASE\servername.cfg – where servername is your server name
    • %SYBASE%\%SYBASE_OCS%\ini directory
    • %SYBASE%\ini\libtcl.cfg
  17. If you have enabled the Java in the database feature, create the sybpcidb database and disable the feature during the installation.
  18. The sysconfig.exe file cannot connect to an Adaptive Server that uses a named pipe directory service. Remove the named pipe directory service from the interfaces file before upgrading Adaptive Server.
  19. Set the environment variables by sourcing the SYBASE.[csh, sh, env] file.
    Warning!  Do not run the environment variable script more than once.
  20. Set the OLDSYBASE_ASE variable to the SYBASE_ASE appropriate to your older server. If you are upgrading from 12.5 for example, it should be ASE-12_5.

    Sybase recommends you also set the OLDSYBASE, and OLDSYBASE_OCS environment variables to point to the old installation of Adaptive Server, so the upgrade utility automatically populates input fields with the correct information as you upgrade.

Related tasks
Managing Java in the Database During Installations and Upgrades