Initializes the Mirror Replication Agent instance and populates the system data repository in the RASD.
The primary database must be quiesced before you invoke ra_init.
ra_init [force]
The optional keyword that forces the Mirror Replication Agent instance to re-initialize its system data repository in the RASD.
ra_init
This command initializes the Mirror Replication Agent instance.
ra_init force
This command re-initializes the Mirror Replication Agent instance, after it was initialized previously.
Before you invoke ra_init to initialize the Mirror Replication Agent, the primary database must be:
Configured to accept a login from the Mirror Replication Agent instance,
Initialized with the Mirror Replication Agent pdb_init command, and
Quiesced to suspend update activity (marked as "in quiesce").
If any of these conditions are not met by the primary database, ra_init returns an error.
After you initialize the primary dabatase with pdb_init, you must not allow any DDL operations in the primary database before the database is quiesced for Mirror Replication Agent initialization.
If ra_init is invoked with no option, Mirror Replication Agent does the following:
Queries the primary database to get the information it needs for the system data repository
Populates the RASD with information returned by the primary database
You can invoke ra_init with
no option only if the Mirror Replication Agent system data
repository does not exist (that is, you have
not previously initialized the Mirror Replication Agent instance).
If ra_init is invoked with no option, and the Mirror Replication Agent already has data in its RASD (created previously by initializing the instance), it returns an error.
If the Mirror Replication Agent already has data in its RASD (created previously by initializing the instance), you must invoke ra_init with the force keyword to delete all of the existing data from the RASD, and re-create the entire system data repository.
If ra_init is invoked with the force keyword, Mirror Replication Agent does the following:
Deletes all of the data in its RASD (truncates all of the tables in the database)
Queries the primary database to get the information it needs for the system data repository
Re-populates the RASD with information returned by the primary database
If you invoke ra_init when the Mirror Replication Agent instance is in Replicating state, it returns an error.
The ra_init command is valid only when the Mirror Replication Agent instance is in Admin state.