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 $SYBASE/$SYBASE_ASE/bin/sybmigrate directory.
Windows NT The executable file is located in the %SYBASE%\%SYBASE_ASE%\bin\sybmigrate.bat directory.
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 ]
prints the version string and exits.
prints the help information and syntax usage and exits.
overrides the locking session.
sets the debug level for sybmigrate. The default debug level is 2.
identifies a specific interfaces file to find server names. If no interfaces file location is designated, for Windows $SYBASE/interfaces or for UNIX %SYBASE%\ini\sql.ini is used.
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.
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.
indicates what type of report to generate. If -rn is not specified, all five reports are run.
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.
directs sybmigrate to generate an output template resource file, to be used for subsequent migrations in the resource file mode.
specifies the character set to be used for the Adaptive Server connection.
specifies the language to be used for the Adaptive Server connection.
sets command line trace flags.
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.
Runs the status report:
sybmigrate -r resource file -m report -rn status
Runs the space_est report in the resource file mode:
sybmigrate -r resource file -m report -rn space_est
Runs the repl report, issue:
sybmigrate -r resource file -m report -rn repl
If sybmigrate exited a session inappropriately, use -f to override the source and target database binding that is created so that only one session of sybmigrate can run on a source and target database path.
If you use the -r parameter, then you also need to use the -m argument to specify the type of operation to perform: setup, migrate, validate, or report. You can run the entire migration process in the resource file mode, or you can choose to run only parts of in this fashion.
You can use -t only in the resource file mode.
-t requires that you start sybmigrate using the -r argument specifying the login information. This argument also requires -m to specify what type of resource file is to be generated.
You can override sybmigrate, and use the interfaces file by providing the -I arguement if the LDAP entry is defined in $SYBASE/$SYBASE_OCS/config/libtcl.cfg on Unix or in %SYBASE%\%SYBASE_OCS%\ini\libtcl.cfg on NT.
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. Users can run the report on individual objects, or the entire database, except for server and database information or metadata. You can run the diff report at any time. You do not need to run a setup session to run the diff report. The source and target database name do not need to be the same when running the diff report.
The diff report provides the following information for the following object types:
Server information – compares the master database system catalogs row count between the source and target Adaptive Server. This task is similar to the validation session.
Database information – compares the user database system catalogs row count between the source and target Adaptive Server. This task is similar to the validation session.
DDL objects – the report displays whether the objects exist on the source or the target Adaptive Servers. If the objects exists in both databases, that object is not displayed in the report.
User table data – compares the row count of the user tables in the source and target Adaptive Server. If the table only exists in the source or target databases, the table is not displayed in the report.
You must be a Sybase System Administrator or log in with the sa_role to use sybmigrate.
Chapter 6, “Migration Utility” for detailed information on the sybmigrate utility.