Migrating a Database from TimesTen Classic to TimesTen Scaleout
These procedures are for TimesTen Classic databases. You cannot migrate the following objects:
-
Tables containing a LOB column
-
Tables that contain
ROWID
columns -
Tables with in-memory columnar compression
-
Tables with aging policies
-
Cache groups other than static read-only cache groups with incremental autorefresh
-
Replication schemes
Prerequisites before migrating a database from TimesTen Classic to TimesTen Scaleout:
-
Create a grid with management and data instances. See Setting Up a Grid.
-
Create a backup of your TimesTen Classic database. See Backing up and Restoring a Database in Oracle TimesTen In-Memory Database Installation, Migration, and Upgrade Guide.
-
After you have created a backup of your TimesTen Classic database, consider removing LOB columns from your tables. TimesTen Scaleout cannot import a table with LOB columns and the import process displays an error message if a table contains LOB columns. Use the
ALTER TABLE
statement with theDROP
keyword to drop these columns. See ALTER TABLE in Oracle TimesTen In-Memory Database SQL Reference. -
In case that you have tables with
ROWID
columns consider not usingROWID
based access in your applications. The semantics ofROWID
columns are different in TimesTen Classic than in TimesTen Scaleout. See Understanding ROWID in Data Distribution. -
Understand the performance trade-off between table distribution schemes. See Defining Table Distribution Schemes.
The procedures in this topic explain how to remove the objects that cannot be migrated from your TimesTen Classic database.
To migrate a database from TimesTen Classic to a TimesTen Scaleout database, export your database schema, and migrate supported objects out of the TimesTen Classic database. Then restore these into a new TimesTen Scaleout database.
Once the database is operational on TimesTen Scaleout, create a backup of the
TimesTen Scaleout database to have a valid restoration point for your database. See Backing Up and Restoring a Database.
Once you have created a backup of your database, you may remove the database schema file (in
this example, /tmp/database1.schema
) and the ttMigrate
copy of
your database (in this example, /tmp/database1.data
).