To configure the primary database
Add the Mirror Replication Agent user login name to the primary database, and grant the user appropriate permission to be able to perform tasks necessary to support replication.
Add the Maintenance User login name (as specified in the Replication Server create connection command) to the primary database.
For Oracle: Enable supplemental logging, and disable the recycle bin.
For Microsoft SQL Server: Initialize the data server. Also, configure the database to allow a remote TCP/IP connection and to allow a remote DAC connection, and set the compatibility level of Microsoft SQL Server to 90.