You can use cross-platform dump and load to initialize a standby
database with a RepAgent.
- On the active database:
- Stop the RepAgent with sp_stop_rep_agent database.
- Remove the secondary truncation point with
dbcc settrunc(‘ltm’, ‘ignore’).
- Set the database in single-user mode in Adaptive
Server.
Enter:
sp_dboption database_name, ‘single user’, true
- Checkpoint the database.
- Dump the database transaction log by executing in
Adaptive Server:
dump tran database_name with truncate_only
go
- Obtain a dump of the database.
- On the standby database:
- Load the dump you obtained
from the standby database.
SAP recommends that you run sp_post_xpload to check and rebuild indexes even
if the endian types of the platforms are the same.
- Dump the transaction log to delete the log records
that sp_post_xpload creates:
dump tran database_name with truncate_only
go
- Execute the Adaptive Server sp_indsuspect system
procedure to check user tables for indexes marked as suspect.
- Rebuild suspect indexes if required. If there is
a change in characterset or sort order, you must execute sp_indsuspect and
rebuild indexes again until sp_indsuspect does not show
any tables with suspect indexes.
- Execute dbcc settrunc ('ltm', 'valid') to
restore the secondary truncation point in the database log followed
by rs_zeroltm to reset the database locater
value to zero.
Executing these commands allows RepAgent to start
at the secondary truncation point.
- Start RepAgent with sp_start_rep_agent database.
See “Dumping
and loading databases across platforms,” in Chapter 11 “Developing
a Backup and Recovery Plan” in the Adaptive Server
Enterprise System Administration Guide Volume 2.