Command line interface for migration > Migrating runtime repository data > Migrating Composer and Composition Center resources > Importing resources – clean up repository before importing

Importing resources – clean up repository before importing
When you migrate runtime repository data from one environment to another (e.g. from the Test repository to the Production repository), you can run the Repository Migration Tool in MIGRATE mode.
When you import resources to a runtime repository, you import the resources from the zip file exported from the source repository. You can specify whether to include resources in all areas (Composer, CompositionCenter, and Security), or in specific areas only.
Note:
In this mode, all security data and resources in the selected areas (Composer and/or CompositionCenter) are removed from the repository before data is imported from the zip file.
MSSQL examples
Example 7
strs-migrate.bat -d MSSQL -m MIGRATE -n strsDataSP3 -o 1433 -p myPwd -s WMF3K55 -u sa -z C:\strs_data\myDb.zip
 
Example 8
strs-migrate.bat -a Security|CompositionCenter -d MSSQL -m MIGRATE -n strsDataSP3 -o 1433 -p myPwd -s WMF3K55 -u sa -z C:\strs_data\myDb.zip
 
Oracle examples
Example 9
strs-migrate.bat -d ORACLE -i abc321 -m MIGRATE -n strsDataSP3 -o 1521 -p myPwd -s salma -u sys -z C:\strs_data\myDb.zip
 
Example 10
strs-migrate.bat -a Security|CompositionCenter -d ORACLE -i abc321 -m MIGRATE -n strsDataSP3 -o 1521 -p myPwd -s salma -u sys -z C:\strs_data\myDb.zip
 
Forcing data into the runtime repository
By default, Repository Migration Tool will only import rows with primary keys that do not already exist in the runtime repository. This means that only new rows may be inserted, and no data will be overwritten. If you want to overwrite data in the runtime repository, you can use the -f (--force) parameter.
Example 11
strs-migrate.bat -d MSSQL -f -m MIGRATE -n strsDataSP3 -o 1433 
-p myPwd -s WMF3K55 -u sa -z C:\strs_data\myDb.zip
 
Example 12
strs-migrate.bat -d ORACLE -f -i abc321 -m MIGRATE -n strsDataSP3 
-o 1521 -p myPwd -s salma -u sys -z C:\strs_data\myDb.zip
 
OpenText StreamServe 5.6 Updated: 2013-03-01