You can set up replication if you use a dump from another database to initialize the in-memory
or relaxed-durability as a replicate database. The replicate in-memory
or relaxed-durability
database inherits the configuration of the database from which you
obtained the dump.
- Create the in-memory or relaxed-durability database:
create inmemory database tokyo_db
on imdb_cache_dev2 = '50' log on imdb_cache_dev_log2='50'
with DURABILITY=NO_RECOVERY
go
- Create the objects such as, tables and stored procedures, users,
and permissions required to receive replicate data, or you can load
a database dump.
- Use rs_init to create the Replication Server connection to the in-memory or relaxed-durability database.
- Perform a dump to save the current state of the in-memory or
relaxed-durability database:
- Suspend the connection to the in-memory or relaxed-durability
database:
suspend connection to RDS.imdb1
go
- Obtain a database dump of the in-memory or relaxed-durability
database:
dump database imdb1 to '/databases/dump/tokyo_db.dump'
go
- Resume the connection to the in-memory or relaxed-durability
database:
resume connection to RDS.imdb1
go