sybmigrate allows you to convert an SAP ASE server from one page size to another page size, and to migrate between platforms.
The utility is located in:
(UNIX platforms) $SYBASE/$SYBASE_ASE/bin/
(Windows) %SYBASE%\%SYBASE_ASE%\bin\sybmigrate.bat, as sybmigrate.bat.
sybmigrate [-v ] [-h ] [-f ] [-D 1 | 2 | 3 | 4 ] [-I interfaces_file ] [-J client_charset ] [-l log_file ] [-m setup | migrate | validate | report ] [-r input_resource_file ] [-rn status | space_est | repl | diff | password ] [-T trace_flags ] [-t output_template_resource_file ] [-Tase trace_flags ] [-z language ]
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.
(UNIX) $SYBASE/interfaces
(Windows) %SYBASE%\ini\sql.ini
(UNIX) $SYBASE/$SYBASE_OCS/config/libtcl.cfg
(Windows) %SYBASE%\%SYBASE_OCS%\ini\libtcl.cfg
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:
sybmigrate -r resource file -m report -rn status
sybmigrate -r resource file -m report -rn space_est
sybmigrate -r resource file -m report -rn repl
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 SAP ASE server. This task is similar to the validation session.
Database information – compares the user database system catalogs row count between the source and target SAP ASE server. This task is similar to the validation session.
DDL objects – the report displays whether the objects exist on the source or the target SAP ASE servers. If the objects exists in both databases, that object does not appear in the report.
User table data – compares the row count of the user tables in the source and target SAP ASE server. If the table only exists in the source or target databases, the table does not appear in the report.
password – creates a file for the changed passwords.
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.
DUMP_SQL – specifies that every query issued by sybmigrate is output to the log file.
NO_SORTED_DATA – overrides the default, which specifies that tables with clustered indexes are copied to the target server in order, and the clustered index is recreated using the with_sorted_data option.
LEAVE_PTBL_ON_ERROR – specifies that proxy tables are not deleted on failure.
SKIP_CONFIG_CHECK – specifies that configuration compatibility checks are not to be performed.
SKIP_PARTITION_CHECK – specifies that partition compatibility checks are not to be performed.
DUMP_DDL – specifies that DDL commands are to be output to the log file.
DUMP_DEPEND_OBJECT – specifies that when the auto_select_dependent_objects option is used, sybmigrate outputs a list of objects added as dependents.
ONE_WORK_THREAD – specifies that one work thread is to be used, overriding the current setting for schema creation threads.
ALLOW_DATA_AND_INDEX – overrides default behavior, in which indexes are created after all tables are created. Indexes are created as resources become available.
-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.
sybmigrate -r resource file -m report -rn status
sybmigrate -r resource file -m report -rn space_est
sybmigrate -r resource file -m report -rn repl
For security purposes, set file permissions at the highest level (preferably 600) for both the sybmigrate resource file and the file that contains the login and password information you are using for migrating logins from the source to the target server.
Make sure the allow resource limits configuration parameter is set to 0 before running sybmigrate.
You cannot migrate server data if metadata already exists on the target SAP ASE server.
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. Run the entire migration process in the resource file mode, or run only parts in this fashion.
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 may specify the size and location of a work database on your target server.
sp_addserver 'servername', local
Restart SAP ASE to recognize the 12.5.1 server.
You can override sybmigrate, and use the interfaces file by providing the -I argument if the LDAP entry is defined in:
UNIX – $SYBASE/$SYBASE_OCS/config/libtcl.cfg
Windows – %SYBASE%\%SYBASE_OCS%\ini\libtcl.cfg
ddlgen is called to generate the scheme definitions, including grants, denies, and revokes
Data is migrated using CIS and proxy tables.
You must be a Sybase system administrator or log in with the sa_role to use sybmigrate.
If you want any user other than the SA to use sybmigrate, set the cis rpc handling configuration parameter to “1”.