Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Oracle Directory Replication Administration, 4 of 5
Once you have installed and configured replication, you can view or modify the default values for replication-related objects. This section contains these topics:
Table B-30 lists and describes the directory replication server configuration parameters. These parameters are stored in the replication server configuration set entry, which has the following DN: cn=configset0,cn=osdrepld,cn=subconfigsubentry
. This entry contains replication attributes that control replication processing. You can modify some of these attributes.
To view configuration parameters of the directory replication server:
To modify configuration parameters of the directory replication server:
To modify replication configuration parameters by using command-line tools, use the syntax documented in "ldapmodify Syntax".
Table B-30 lists and described the replication server configuration parameters. As noted in that table, the modifiable replication configuration parameters are:
This example uses an input file named mod.ldif
to change the number of retry attempts from the default of ten times to five times. Specifically, after attempting to apply an update five times, the update is dropped and logged in the replication log.
mod.ldif
as follows:
dn: cn=configset0,cn=osdrepld,cn=subconfigsubentry
changetype: modify
replace: orclChangeRetryCount
orclChangeRetryCount: 5
configset0
parameter value as follows:
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
This example uses an input file named mod.ldif
to change the number of worker threads used in change log processing to 7
.
mod.ldif
as follows:
dn: cn=configset0,cn=osdrepld,cn=subconfigsubentry changetype: modify replace: orclthreadspersupplier orclthreadspersupplier: 7
configset0
parameter value as follows:
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
"Restarting Oracle Internet Directory Server Instances" for instructions on restarting the directory replication server
See Also:
To modify a particular replica node, you modify the replica subentry. Table B-31 lists and describes the parameters you can modify in the replica subentry.
See Also:
"The Replica Subentry" for more information about the replica subentry |
To view and modify a particular replica node by using Oracle Directory Manager:
To modify replication configuration parameters by using command-line tools, use the syntax documented in "ldapmodify Syntax".
The directory replication server uses the orclReplciaURI
attribute value of the replica subentry to locate the directory server for that replica. If the port or host where the directory server is running is changed, then this attribute must be modified accordingly.
mod.ldif
as follows:
Dn: orclreplicaid=unique_replica_identifier, cn=replication configuration Changetype:modify Replace:orclReplicaURI OrclReplicaURI: ldap://host_name:port_number/
orclreplicauri
attribute.
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
The directory replication server uses the orclReplicaSecondaryURI
attribute value as an alternate location to contact the directory server for a particular replica. A user can add an alternate ldapURI
attribute at which the directory server can be contacted for that particular replica. To add additional ldapURI
attribute:
mod.ldif
as follows:
Dn: orclreplicaid=unique_replica_identifier, cn=replication configuration Changetype:modify add:orclReplicaSecondaryURI OrclReplicaSecondaryURI: ldap://host_name:port_number/
Ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
OrclReplicaState
represents the state of a particular replica. To bootstrap (re-initialize) a replica, update this attribute in the following manner:
mod.ldif
as follows:
Dn: orclreplicaid=<unique replica identifier>, cn=replication configuration Changetype:modify replace:orclReplicaState OrclReplicaState: 0
orclreplicastate
attribute.
Ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
This section contains instruction for modifying replication agreements that are based on both Oracle9i Advanced Replication and LDAP.
Replication agreement parameters based on Oracle9i Advanced Replication are stored in replication agreement entries, which have the following DN:
orclAgreementID=000001,cn=replication configuration
To view and modify replication agreement parameters by using Oracle Directory Manager:
Table B-32 lists and describes the replication agreement parameters and indicates those that you can modify.
To add more nodes to the values in a replication agreement entry, run ldapmodify at the command line, referencing an LDIF-formatted file.
Example 1: Adding Nodes to a Replication Agreement
This example uses an input file named mod.ldif
to add two nodes to a replication agreement:
mod.ldif
as follows:
dn: orclagreementid=000001,cn=replication configuration
changetype: modify
add: orcldirreplgroupdsas
orcldirreplgroupdsas: hollis
orcldirreplgroupdsas: eastsun-11
configset0
parameter value as follows:
ldapmodify -D "cn=orcladmin" -w administrator_password -h host -p port -f mod.ldif
This procedure modifies the entry containing the replication agreement whose DN is orclagreementid=000001,cn=replication configuration
. The input file adds the two nodes, hollis
and eastsun-11
, into the replication group governed by oraclagreementid=000001
.
Note:
You must include the new nodes--for example, "Adding a Node to a Multimaster Replication Group" explains the process of adding a new node to a replication environment. |
Because Oracle Internet Directory 10g (9.0.4) supports only one configuration set for the directory replication server, you do not need to specify a configuration set.
Example 2: Modifying the orclExcludedNamingcontexts Attribute for an Oracle9i Advanced Replication Replica Agreement
In a replication agreement based on Oracle9i Advanced Replication, the directory replication server uses the value of the orclExcludedNamingcontexts
attribute of the replica agreement entry to specify the top level subtrees to be excluded from replication.
In this example, two top level naming contexts--c=us
and c=uk
--are excluded from Oracle9i Advanced Replication.
mod.ldif
as follows:
dn: orclAgreementID=000001, cn=replication configuration Changetype:modify Replace: orclExcludedNamingcontexts orclExcludedNamingcontexts: c=us orclExcludedNamingcontexts: c=uk
orclupdateschedule
attribute.
ldapmodify -D "cn=orcladmin" -w administrator_password -h consumer_host -p port -f mod.ldif
LDAP-based replication agreement parameters are stored in replication agreement entries, which have the following DN:
orclAgreementID=id number,orclReplicaId=replica id, cn=replication configuration
To view and modify replication agreement parameters by using Oracle Directory Manager:
Table B-32lists and describes the replication agreement parameters and indicates those that you can modify.
Example 1: Modifying the orclUpdateSchedule Attribute for a Particular Replica Agreement
The directory replication server uses the orclupdateschedule
attribute value of the replica agreement entry as time interval in minutes to determine how often the replication server process the new change logs from the supplier.
This example shows that replication server will process new change logs from the supplier for every minute.
dn: orclAgreementID=id_number,orclReplicaId=replica_identifier, cn=replication configuration Changetype:modify Replace: orclupdateschedule orclupdateschedule: 1
ldapmodify -D "cn=orcladmin" -w administrator_password -h consumer_host -p port -f mod.ldif
Example 2: Modifying the orclLastAppliedChangeNumber Attribute for Particular Replica Agreement
The directory replication server uses the value orclLastAppliedChangeNumber
attribute to determine the number of last applied change log processed by the consumer.
The modification of the orclLastAppliedChangeNumber
attribute must be applied against the supplier node since replication server reads orclLastAppliedChangeNumber
from the same duplicate agreement at the supplier.
In this example, orclLastAppliedChangeNumber attribute of the duplication agreement at the supplier is set to 700, which indicates all change logs with changelog number prior to 700 has been processed by the replication server.
mod.ldif
as follows:
dn: orclAgreementID=id_number,orclReplicaId=replica_id,cn=replication configuration Changetype:modify Replace: orclLastAppliedChangeNumber orclLastAppliedChangeNumber: 700
orclupdateschedule
attribute at the supplier.
ldapmodify -D "cn=orcladmin" -w administrator_password -h supplier_host -p port -f mod.ldif
You can change the password for the replication administrator database account on all nodes of a DRG by using the -chgpwd
utility of the Replication Environment Management Tool. To launch this utility, enter:
remtool -chgpwd
The -chgpswd
utility prompts you for the MDS Global Name--that is, the name of the Master Definition Site--the current password, and the new password. It then asks you to confirm the new password. If you enter an incorrect current password, then you must run the Replication Environment Management Tool again.
Also, you can change the password of the replication DN of a replica by using the -pchgpwd
utility. To launch this utility, enter:
remtool -pchgpwd
See Also:
"The Replication Environment Management Tool" for more information about using this tool |
Oracle Directory Manager enables you to view the last 25 changes you performed, listing them by change log number, the type of operation--namely, add, modify, or delete--in which each occurred, and the entry on which each was made. It allows you select a particular change to see more specific details about it.
To manage the change log, in the navigator pane expand in succession Oracle Internet Directory Servers, directory server instance, then select Change Log Management. The right pane lists the last 25 changes, beginning with the most recent. It tells you the change number, the type of operation in which each change occurred, and the entry on which the change was made.
To see the details of a particular change, in the right pane, select the change, then choose View Properties. The Change Log window appears. The fields for the Change Log window are listed and described in Table C-19.
In the default configuration for replication, the orclupdateschedule
attribute is set to a value of 1
, representing 1 minute. You can shorten the replication processing time by changing the value of the orclupdateschedule
attribute to 0
, representing 1 second.
In directory replication based on Oracle9i Advanced Replication, the default configuration achieves a processing time that is approximately 2.5 minutes:
In the case of Oracle9i Advanced Replication, changing the default value for the orclupdateschedule
attribute to 0
results in a replication time of 32 seconds. To do this:
mod.ldif
as follows:
dn: orclagreementid=orclagreementid=000001, cn=replication configuration,
cn=replication configuration
changetype:modify
replace: orclupdateschedule
orclupdateschedule: 0
mod.ldif
as follows:
ldapmodify -h host name -p port number -v -f mod.ldif
oidctl connect=connect string server=oidrepld instance=instance number restart
In LDAP-based directory replication, the default configuration achieves a processing time that is approximately 1 minute during which the change is retrieved from the supplier and applied to the consumer. Changing the default value for the orclupdateschedule
attribute to 0
results in a replication time of 1 second. To do this:
mod.ldif
as follows:
dn: orclagreementid=agreement ID,orclreplicaid=replica ID,
cn=replication configuration
changetype:modify
replace: orclupdateschedule
orclupdateschedule: 0
mod.ldif
as follows:
ldapmodify -h host name -p port number -v -f mod.ldif
oidctl connect=connect string server=oidrepld instance=instance number restart
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|