sybmigrate

Description

sybmigrate allows you to convert an Adaptive Server from one page size to another page size, and to migrate between platforms. The executable file is located in the following directory:

UNIX platforms $SYBASE/$SYBASE_ASE/bin/sybmigrate

Windows %SYBASE%\%SYBASE_ASE%\bin\sybmigrate.bat

Syntax

sybmigrate [-v ] [-h ] [-f ]
	[-D 1 | 2 | 3 | 4 ]
	[-I interfaces_file ]
	[-r input_resource_file ]
	[-m setup | migrate | validate | report ]
	[-rn status | space_est | repl | diff | password ]
	[-l log_file ]
	[-t output_template_resource_file ]
	[-J client_charset ]
	[-z language ]
	[-T trace_flags ]
	[-Tase trace_flags ]
	[-f ]

Parameters

-v

prints the version string and exits.

-h

prints the help information and syntax usage and exits.

-f

overrides the locking session.

-D

sets the debug level for sybmigrate. The default debug level is 2.

-I

identifies a specific interfaces file to find server names. If no interfaces file location is designated, sybmigrate uses:

  • For UNIX $SYBASE/interfaces

  • For Windows – %SYBASE%\ini\sql.ini

-r

specifies that the resource file mode is to be used in the migration process. If the input resource file is not specified by using the -r parameter, sybmigrate operates in GUI mode.

-m

designates the types of operations that are performed:

  • setup – to set up the repository and migration working database, and to migrate the server-wide data.

  • migrate – to perform data and object migration.

  • validate – to validate the migrated objects.

  • report – to run any of the five reports. The reports can be run in the GUI and resource file mode. The available reports are:

    • status – the migrate object status report gives information about objects that have been migrated.

    • space_est – use the target database space estimation report to verify that you have sufficient resources allocated to your target database.

    • repl – use the replication report to check any explicitly replicated objects that have been migrated, determine the type of replication system, and to produce SQL commands for users to execute on the target Adaptive Server and the Replication Server.

    • diff – checks the objects between the source and target databases. The diff report provides the following information for the following object types:

      • Server information

      • Database information

      • DDL objects

      • User table data

  • password – creates a file for the changed passwords.

-rn

indicates what type of report to generate. If -rn is not specified, all five reports are run.

-l

indicates a user-defined log file where the output of the migration process is stored. If -l is not used, the logs are stored in $SYBASE/$SYBASE_ASE/init/logs or the working directory.

-t

directs sybmigrate to generate an output template resource file, to be used for subsequent migrations in the resource file mode.

-J

specifies the character set to be used for the Adaptive Server connection.

-z

specifies the language to be used for the Adaptive Server connection.

-T

sets command line trace flags.

-Tase

is used to run Adaptive Server trace flags (turned on using dbcc traceon) for all Adaptive Server connections opened by sybmigrate. The trace flags should be specified in a comma-separated list.

Examples

Example 1

Runs the status report:

sybmigrate -r resource file -m report -rn status

Example 2

Runs the space_est report in the resource file mode:

sybmigrate -r resource file -m report -rn space_est

Example 3

Runs the repl report, issue:

sybmigrate -r resource file -m report -rn repl

Usage


Reports

Permissions

You must be a Sybase System Administrator or log in with the sa_role to use sybmigrate.

See also

Documentation Chapter 9, “Migration Utility” for detailed information on sybmigrate.