Performs tests on an installation or database to determine its readiness for upgrade, and reports found problems.
(UNIX) $SYBASE/$SYBASE_ASE/upgrade.
(Windows) %SYBASE%\%SYBASE_ASE%\upgrade, as preupgrd.exe.
preupgrade [-v] [-h] [-N] [-p [skip_sybprocs] [-D database_name] [-I interfaces_file] [-P password] [-S server_name] [-U user_name] [-X option[,option]...]
-p – skips the parsing in all databases
-p skip_procs – skips parsing in sybsystemprocs while parsing the other databases
Not using -p – parses text everywhere. This is the default.
List options without a space between the comma and the next option, or
Surround the options list with quotes.
Valid check options are:
Check Option |
Option Used With the -D Parameter |
Description |
---|---|---|
all |
Performs all permitted checks. When used with the -D option, only checks subset of options. Otherwise, all options are checked. |
|
cache |
Checks the definition of default cache size. If the definition is DEFAULT, enter its current value in the configuration file as its actual value. This ensures that its size does not change because the new server’s default value is different from the current server’s default value. |
|
config |
Checks the server’s configuration parameters to see if they are consistent with new requirements, and reports discrepancies. Discrepancies can cause errors or warnings for certain parameters:
|
|
data_mods |
Performs updates to system tables, including clearing certain system table columns that are non-zero. Applies primarily to older SAP ASE servers, and will make no changes to newer systems. |
|
datatype |
X |
Checks the systypes table to make sure that if existing datatypes use a system-defined name, type, or user type, they match what the new server expects. Reports discrepancies and suggests remedies. |
db_size |
Checks that certain system databases meet the minimum size requirements for installation. |
|
free_space |
X |
Checks for free space in the named database or in all databases. Makes sure that there is sufficient free data and log space to perform the necessary upgrade steps. |
object_id |
X |
Checks that object IDs of user-defined
objects are not reserved for system objects.
Does not issue an error. If you receive a warning that a user object ID is reserved, contact Technical Support for directions for changing the user object ID after upgrade. |
required_dbs |
Checks that required system databases exist. Some versions of SAP ASE may require specialized databases such as sybsystemdb. |
|
sproc_text |
X |
Checks for the existence of stored procedure text in the named database or in all databases. After upgrade, the SAP ASE server must recompile stored procedures from their source text. This check makes sure that all of the source text is both available and valid. |
srvclass |
Checks for servers classed as “generic” in master.dbo.sysservers. This class is deprecated by SAP ASE 12.0 and later. |
|
statistics |
Checks for duplicate rows in sysstatistics. Duplicate rows may occur when upgrading from SAP ASE 12.0 to SAP ASE 15.0 and later due to schema changes in the sysstatistics table. |
Versions of SAP ASE may occasionally change valid options for the -X parameter; use the -h parameter to view the current set of valid options.
preupgrade –X cache,db_size,statistics
preupgrade –Dmy_db –Usa
preupgrade –N
The user login specified by the -U parameter must have system administrator privileges to run preupgrade on the server specified by the -S parameter.
When using the -D parameter to check an offline database, preupgrade must log in as user “sa.” The “sa_role” privilege is insufficient.