Performing Tasks Before Upgrading

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

Prerequisites
Task
Note: Follow these steps only if you are performing a major upgrade from an Adaptive Server version earlier than 15.x.

Skip these preparatory tasks if you plan to use sqlupgrade, which performs these tasks automatically.

  1. Install Adaptive Server 15.7 SP100 into its own installation directory.
  2. Check system and upgrade requirements.
  3. 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.
  4. Verify the name and location of the runserver file, as well as that you have renamed it to RUN_servername, where servername is the name of the old server, as it appears in the interfaces file.
    The default RUN_servername file for a server SYBASE is called RUN_SYBASE. If the RUN_servername file for your current server is named differently, use the actual name of your server during the upgrade process.
  5. 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.
  6. 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.
  7. Make sure reserved words use quoted identifiers.
  8. Verify that users are logged off.
  9. Use dbcc to check for database integrity.
  10. Back up databases.
  11. Dump the transaction log.
  12. Verify that master is the default database for the "sa" user.
  13. 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. Disable Job Scheduler.
    4. Obtain the current audit settings for the pre-15.7 Adaptive Server using sp_displayaudit; use this saved information to reenable auditing after you complete the installation. See Reenabling Auditing.
    5. If you made any site-specific changes to the permissions for system stored procedures, obtain the current permission settings for them using sp_helprotect; then use this saved information to reenable the permissions after you complete the installation. Pay special attention to:
      • Any stored procedures that are not granted execute permission to public, such as sp_addauditrecord, sp_monitor, and sp_sysmon.
      • Any stored procedures where execute permission has been revoked from public.
    6. Disable disk mirroring.
    7. 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 sqlupgrade.

    Fix any problems that preupgrade utility reports.

    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.

  14. 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.
  15. Copy these files from earlier versions of the server to their corresponding Adaptive Server 15.x installation locations:
    • $SYBASE/interfaces
    • $SYBASE/$SYBASE_ASE/servername.cfg – where servername is your server name.
    • $SYBASE/$SYBASE_OCS/config/libtcl.cfg
    • $SYBASE/SYSAM-2_0/licenses/license.lic
  16. If you have enabled the Java in the database feature, create the sybpcidb database and disable the feature during the installation.
  17. Set the environment variables by sourcing the SYBASE.[csh, sh, env] file.
    Warning!  Do not run the environment variable script more than once.
  18. 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.
    If you are upgrading from Adaptive Server 12.5 and using sqlupgraderes from the new $SYBASE location to perform the upgrade, enter:
    setenv OLDSYBASE <old_$SYBASE_directory>
    setenv OLDSYBASE_ASE ASE-12_5

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

Related tasks
Managing Java in the Database During Installations and Upgrades