Initialize an instance of Replication Agent, and create the objects it needs in the primary database.
The Replication Agent instance must be running, and connectivity to the primary database must be established.
If the initialization was successful, the script is stored in a file named partinit.sql in the scripts/xlog/installed directory.
If the initialization was not successful, the primary database is not changed, and the script is stored in a file named partinit.sql in the scripts/xlog directory. Check the Replication Agent error log and, if necessary, the primary database error log to determine why the initialization was not successful.