Configuring the network can be divided into four parts, creating database links (if needed), maintaining of necessary data in Connectivity, maintaining of necessary data in Replication and checking background processes.
When creating database links, they must include a username and password because the replication process is run in Oracle’s job queue and it only supports database links with username and password. Anonymous database links will result in an error in the replication process.
CREATE PUBLIC DATABASE LINK linkname CONNECT TO username IDENTIFIED BY password USING 'tnsname';
Parameter Description Alternatives/Suggestion linkname the name of the link replica1 username the name of the Appowner on the replica password the password to the Appowner on the replica.
Note! Changing the Appowner password on the replica makes the database link invalid to use.tnsname the name of the tnsentry used in the connect string to the replica define in the master Tnsnames.ora.
For more information regarding Database Links see Administrator’s Guide and SQL Reference in Oracle documentation.
Some configuration must be done in Connectivity to support replication.
Open the Connectivity folder.
Note! A site that should be able to send messages must have
the attribute Send = True. If
Send = False and a message is entered into
the Connectivity outbox, the message will not be processed.
A site that
should be able to receive messages must have the attribute
Receive = True. If
Receive = False and a message arrives to the
Connectivity inbox the message will not be processed.
A site that should
both send and receive messages must have both
Send = True and Receive
= True.
Note! If data is replicated to the same application owner (from one Company to other Companies or from one Site(Contract) to other Sites(Contracts) the database link attribute must be empty.
The attribute Timezone Difference can be used if data is replicated between sites in different timezones. If a timezone difference is entered data in attributes of type Date will be converted by the replication process and stored in the correct local time.
Note 1! All sites taking part in the replication process must be registered.
Note 2! If data shall be replicated from one company to other companies in the same application owner the setup is exactly the same. installation Site must have a Master and a Replica. Message Receiver must have a Sender and a Receiver. The only difference from a configuration with different physical sites is that the database link attribute in the Installation Site is empty in the <Replica> row.
Some network configuration must be done to support the replication process.
Open the Replication folder.
Each replication group has its own configuration that defines which data should be replicated to the receivers in the group.
Connectivity and Replication needs some background processes. A Master must have
a replication process, Replication_SYS.Process_Replicate
, that
monitors the replication queue and creates Connectivity messages with replicated
data. A Master must also have a Connectivity process, Connectivity_SYS.Process_Outbox
,
that sends the messages to the Replicas. A Replica must have a Connectivity process,
Connectivity_SYS.Process_Inbox
that process incoming messages.
Open the Foundation1 Administration folder.
Transaction_SYS.Process_All_Pending
is not present then
the Oracle background processes are not enabled.Reasonable values are
JOB_QUEUE_PROCESSES = 20 (number of processes)
Note 1! JOB_QUEUE_PROCESSES limits the total number of running processes.
When the network configuration is complete on the Master the information should be sent over to the other participating sites. Before an attempt is made to send any configuration information make sure that all processes mentioned in 3.1.4 is running.
Open the Replication folder.
Note 1! When the network configuration is received at a participating site its repository will be updated. Data already present in the repository will not be touched.
Note 2! A message Message Sent – Message
Id =, is seen if the Connectivity_SYS.Process_Outbox
is
not running. If the process is not running, start the process and send the configuration
again.
Note 3! A message No Data Found is seen if there is only one row in Installation Site when replicating to the same appowner. There must always be a Master and a Replica even if Master and Replica are the same appowner.
Open the Connectivity folder