Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • migrate a triplet of CAST AIP schemas (Analysis/Dashboard/Management Services) and their entire contents to CSS
  • migrate one single CAST AIP schema and its entire contents to CSS2CSS

You can use the tool in GUI mode, or in CLI mode. Each mode is explained below.

...

 

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="DRIVER_NAME" originServerUrl="URL" targetServerDriverClassName="org.postgresql.Driver" targetServerUrl="jdbc:postgresql://SERVER_NAME_OR_IP_ADDRESS:<2280|2282>/postgres" licenseKey="LICENSE_KEY" forceCSS2Storage="true">
 <MBSchema name="MNGT_NAME" skipCustomTables="true|false" state="" isSelected="true|false">
  <KBSchema name="LOCAL_NAME" skipCustomTables="true|false" state=""/>
  <CBSchema name="CENTRAL_NAME" skipCustomTables="true|false" state=""/>
 </MBSchema>
</Configuration>

<configuration> tag

This tag contains the values needed to connect to the source RDBMS and the target CSS server, the CAST AIP license key and an optional value for those migration schemas from CAST AIP 7.0.x:

ElementDescriptionOptionsRequired

originServerDriverClassName

Defines the JDBC driver used to connect to the source RDBMS.Yes

originServerUrl

Defines the URL (in JDBC format) used to connect to the source RDBMS.
  • Oracle SID: jdbc:oracle:thin:@HOST:PORT:SID
  • Oracle SERVICE: jdbc:oracle:thin:@//[HOST][:PORT]/SERVICE
  • MS SQL Server: jdbc:jtds:sqlserver://<server>[:<port>][/<database>]
Yes
targetServerDriverClassNameDefines the JDBC driver used to connect to the target CSS2CSS.org.postgresql.DriverYes
targetServerUrlDefines the URL (in JDBC format) used to connect to the target CSS2CSS.jdbc:postgresql://HOST:<2280|2282>/postgresYes
licenseKeyDefines the CAST AIP license key assigned to the schemas you wish to migrate.Full CAST AIP license key in the format: Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGHYesforceCSS2StorageUse this option (with "true") if you are migrating schemas installed with CAST AIP 7.0.x. Omit the option entirely if it is not required.TrueOnly required when migrating schemas installed with CAST AIP 7.0.x.
Info
Note that you can only specify one source and one target server per configuration.castmigration file.

<MBSchema> tag

This tag defines the CAST AIP schemas that will be migrated from the source RDBMS to the target CSS2 serverCSS server:

ElementDescriptionOptionsRequired
nameDefines the name of the Management Service you would like to migrate.Name of the CAST Management Service.Yes
skipCustomTablesWhen set to True, any custom tables you may have created in the CAST schemas on the source RDBMS will NOT be migrated to CSS. When set to False or the option is omitted entirely, then all tables are migrated.True | FalseNo
state

This option should be left blank. It will be updated with a status on completion of the migration process:

  • Migrated - the schema was successfully migrated
  • Blank or any other entry - the schema was not migrated
N/AYes
isSelectedThis option can be set to True (the Management Service and all associated schemas will be migrated) or False (the Management Service and all associated schemas will NOT be migrated).True | FalseYes
Info

Note that:

  • When specifying a Management Service, you must also specify the associated Analysis and Dashboard Services in their own child tags (KBSchema and CBSchema)
  • The associated Analysis and Dashboard Services must be stored on the same source server.

<KBSchema> / <CBSchema> tag

These two tags must be defined as child tags of the <MBSchema> tag:

ElementDescriptionOptionsRequired
nameDefines the names of the Analysis or Dashboard Services you would like to migrate. These services must be associated to the parent Management Service you have defined in the <MBSchema> tag.Name of the CAST Analysis or Dashboard Service.Yes
skipCustomTablesWhen set to True, any custom tables you may have created in the CAST schemas on the source RDBMS will NOT be migrated to CSS. When set to False or the option is omitted entirely, then all tables are migrated.True | FalseNo
state

This option should be left blank. It will be updated with a status on completion of the migration process:

  • Migrated - the schema was successfully migrated
  • Failed - the schema migration failed
  • Skipped - the schema migration was skipped (incorrect version, connection error, schema exists on target already
  • Halted - the schema migration was halted because another related schema migration failed
N/AYes

Examples

Oracle using SID

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="oracle.jdbc.OracleDriver" originServerUrl="jdbc:oracle:thin:@192.168.20.10:1521:ORA" targetServerDriverClassName="org.postgresql.Driver" 
targetServerUrl="jdbc:postgresql://192.168.20.11:2280/postgres" licenseKey="Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGH" forceCSS2Storage="true">
<MBSchema name="ABC_MNGT" state="" skipCustomTables="true" isSelected="true">
	<KBSchema name="ABC_LOCAL" skipCustomTables="true" state=""/>
	<CBSchema name="ABC_CENTRAL" skipCustomTables="true" state=""/>
</MBSchema>
</Configuration>

Oracle using Service

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="oracle.jdbc.OracleDriver" originServerUrl="jdbc:oracle:thin:@//192.168.20.10:1521/PRODMASSTEST05.castsoftware.com" targetServerDriverClassName="org.postgresql.Driver" targetServerUrl="jdbc:postgresql://192.168.20.11:2280/postgres" licenseKey="Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGH" forceCSS2Storage="true">
<MBSchema name="ABC_MNGT" state="" skipCustomTables="true" isSelected="true">
	<KBSchema name="ABC_LOCAL" skipCustomTables="true" state=""/>
	<CBSchema name="ABC_CENTRAL" skipCustomTables="true" state=""/>
</MBSchema>
</Configuration>

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="net.sourceforge.jtds.jdbc.Driver" originServerUrl="dbc:jtds:sqlserver://192.168.20.15:1433" targetServerDriverClassName="org.postgresql.Driver" 
targetServerUrl="jdbc:postgresql://192.168.20.11:2280/postgres" licenseKey="Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGH" forceCSS2Storage="true">
<MBSchema name="XYZ_MNGT" skipCustomTables="true" state="" isSelected="true">
	<KBSchema name="XYZ_LOCAL" skipCustomTables="true" state=""/>
	<CBSchema name="SYZ_CENTRAL" skipCustomTables="true" state=""/>
</MBSchema>
</Configuration>

Migrating only one schema

In this example, only the V123_LOCAL schema will be migrated. Adding state="Migrated" to the V123_MNGT and V123_CENTRAL schemas will force only the V123_LOCAL schema to be migrated:

 

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="oracle.jdbc.OracleDriver" originServerUrl="jdbc:oracle:thin:@//192.168.20.10:1521/PRODMASSTEST05.castsoftware.com" targetServerDriverClassName="org.postgresql.Driver" targetServerUrl="jdbc:postgresql://192.168.20.11:2280/postgres" licenseKey="Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGH" forceCSS2Storage="true">
 <MBSchema name="V123_MNGT" skipCustomTables="true" state="Migrated" isSelected="true">
  <KBSchema name="V123_LOCAL" skipCustomTables="true" state=""/>
  <CBSchema name="V123_CENTRAL" skipCustomTables="true" state="Migrated"/>
 </MBSchema>
</Configuration>

 

Note that if you are only migrating either the Analysis or Dashboard Service (KBSchema or CBSchema), you should ensure that you attach this schema to a Management Service (MBSchema/MNGT) in the target CSS2 server CSS server using the CAST Management Studio:

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Configuration originServerDriverClassName="oracle.jdbc.OracleDriver" originServerUrl="jdbc:oracle:thin:@//192.168.20.10:1521/PRODMASSTEST05.castsoftware.com" targetServerDriverClassName="org.postgresql.Driver" targetServerUrl="jdbc:postgresql://192.168.20.11:2280/postgres" licenseKey="Sample&amp;Test:1;AIP/EFP:20121031:ABCDEFGH" forceCSS2Storage="true">
<MBSchema name="V123_MNGT" skipCustomTables="true" state="" isSelected="true">
	<KBSchema name="V123_LOCAL" skipCustomTables="true" state=""/>
	<CBSchema name="V123_CENTRAL" skipCustomTables="true" state=""/>
</MBSchema>
<MBSchema name="XYZ_MNGT" skipCustomTables="true" state="" isSelected="true">
	<KBSchema name="XYZ_LOCAL" skipCustomTables="true" state=""/>
	<CBSchema name="SYZ_CENTRAL" skipCustomTables="true" state=""/>
	</MBSchema>
</Configuration>

...