Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Oracle Directory Replication Administration, 3 of 5
This section contains these topics:
The following rules apply to both full and partial LDAP-based replication:
namingcontexts
attribute of the root DSE can be replicated to the consumer.
For instructions on installing on a standalone node, see "If you are installing on a Master Definition Site"
See Also:
When you install Oracle Internet Directory on any given node, follow these steps:
Later, the Oracle Universal Installer asks for the host and port of Oracle Internet Directory. Specify the host and port number of the supplier. Verify that the server is running on that node.
After installation, create the wallet by entering the following:
$ORACLE_HOME/bin/Oidpasswd connect=connect_string create_wallet=TRUE
current_password=password_for_the_ODS_database_user
Start and shut down the Oracle Internet Directory processes by entering the following:
$ORACLE_HOME/bin/oidmon connect=connect_string start $ORACLE_HOME/bin/oidctl connect=connect_string server=oidldapd instance=1 start $ORACLE_HOME/bin/oidmon connect=connect_string stop
You can also start the Oracle Internet Directory instance by using the OPMNCTL utility. To do this:
opmnctl ping
opmnctl start
ias-component=OID
in $ORACLE_HOME
/opmn/conf/opmn.xml
from disabled to enabled.
opmnctl reload
opmnctl startproc ias-component=OID
How you configure an LDAP-based replica depends on whether you have backed up the directory by using the ldifwrite tool or by using automatic bootstrapping. Table 25-1 compares these two methods.
Backup Using ldifwrite | Automatic Bootstrapping |
---|---|
Good for a large amount of data |
Uses the filtering capability of partial replication Good for a smaller number of entries |
This section discuss the general tasks you perform when configuring an LDAP-based replica by using automatic bootstrapping. It contains these topics:
Identify the supplier for an LDAP-based replica. The supplier can be:
To add a replica, enter the following:
remtool -paddnode [-v] [-bind supplier_host_name:port/replication_dn_password]
See Also:
"The Replication Environment Management Tool" for more information about the Replication Environment Management Tool |
To use the automatic bootstrap capability, set the orclReplicaState
attribute of the replica subentry to 0
as follows:
mod.ldif
as follows:
Dn: orclreplicaid=<unique replica identifier>, cn=replication configuration Changetype:modify add:orclReplicaState OrclReplicaState: 0
orclreplicastate
attribute.
Ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p 389 -f mod.ldif
See Also:
"Managing Replication" for more information about the bootstrap capability of the LDAP-based replication |
You can change the default parameters for replication agreements and for the replica subentry.
This section discuss the general tasks you perform when configuring an LDAP-based replica by using the ldifwrite tool. It contains these topics:
Identify the supplier for an LDAP-based replica, and verify that the directory server is running on both the supplier and the consumer. The supplier can be:
To ensure data consistency, change the directory server on the supplier node to read-only. To do this:
Dn: Changetype: modify Replace: orclservermode Orclservermode: r
ldapmodify -D "cn=orcladmin" -w administrator_password -h host_name_of_ supplier_node -p port -f name_of_LDIF_file.ldif
To add a replica, enter the following:
remtool -paddnode [-v] [-bind supplier_host_name:port/replication_dn_password]
See Also:
"The Replication Environment Management Tool" for more information about the Replication Environment Management Tool |
To do this:
ldapsearch -D bind_DN -w password -h host_name -p port_number -b "" -s base "objectclass=*" lastchangenumber
dn:orclagreementid=agreement_identifier,orclreplicaid=supplier_replica_ identifier,cn=replication configuration changetype: modify replace: orclLastAppliedChangeNumber orclLastAppliedChangeNumber: last_change_number_retrieved_in_step_1.
ldapmodify -D bind_DN -w password -h host_name -p port_number -f LDIF_ file
If there is a large number of entries in the naming contexts that you want to replicate to the LDAP-based replica, then Oracle Corporation recommends that you back up these naming contexts at the supplier node and then load them to the LDAP-based replica.
To back up the naming contexts:
ldapsearch -h supplier host -p port number -b "orclreplicaid=supplier replica ID, cn=replication configuration" -s sub "(orclreplicadn= orclreplicaid=consumer replica ID, cn=replication configuration)" dn
ldifwrite -c connect string of sponsor node -b "replication agreement dn"
-f name of output LDIF file.ldif
Note: You might want to perform "Task 8: Optional: Change Default Replication Parameters" before backing up the data so that additional changes in the agreement are taken care of during the backup. |
See Also:
"Determining What Is to Be Replicated in LDAP-Based Partial Replication" "Example 2: Converting Part of a Specified Naming Context to an LDIF File" for more instructions on using ldifwrite to back up part of the naming context |
If you performed "Task 2: Change the Directory Server at the Supplier to Read-Only Mode", then change the directory server on the supplier back to read/write mode. To do this:
Dn: Changetype: modify Replace: orclservermode Orclservermode: rw
ldapmodify -D "cn=orcladmin" -w administrator_password -h host_name_of_ supplier_node -p port -f name_of_LDIF_file.ldif
To do this:
backup_data.ldif
.
Bulkdelete.sh -connect connect_string_of_replica -b "naming_context"
Perform this step for each naming context that was backed up in "Task 5: Back Up the Naming Contexts to Be Replicated".
Load the data to the replica by using bulkload in the append mode. Enter the following:
Bulkload.sh -connect connect_string_of_replica -append -check -generate -load -restore backup_data.ldif
See Also:
"bulkload Syntax" for instructions on using bulkload in either the default mode or the append mode |
You can change the default parameters for replication agreements and for the replica subentry.
This section explains how to delete an LDAP-based replica. It contains these topics:
Do this by using the Replication Environment Management Tool. Enter:
remtool -pdelnode [-v] [-bind hostname:port_number/replication_dn_password]
In LDAP-based partial replication, you can determine what is or is not replicated by defining replica naming context objects. The parameters for these objects are stored in entries that have this DN:
cn=namingcontext_ID,cn=replication namecontext,
orclAgreementID=numeric_identifier_of_replication_agreement,
orclReplicaId=unique_identifier_of_replica, cn=replication configuration
To view and modify parameters for replica naming context objects:
Replica naming context object parameters are listed and described in Table B-33.
Example 1: Adding a Naming Context Object for an LDAP-Based Replica
This example creates a naming context object that does the following:
ou=Americas,cn=mycompany
cn=customer profile, ou=Americas, cn=mycompany
userpassword
The steps are:
mod.ldif
as follows:
dn: cn=naming_context_identifier,cn=replication namecontext,orclagreementid=replication_agreement_ identifier,orclreplicaid=consumer_replica_identifier,cn=replication configuration orclincludednamingcontexts: ou=Americas,cn=mycompany orclexcludednamingcontexts: cn=customer profile, ou=Americas, cn=mycompany orclexcludedattributes: userpassword objectclass: top objectclass: orclreplnamectxconfig
ldapadd -D "bind_DN" -w administrator_password -h host -p port_number -f mod.ldif
Example 2: Deleting a Naming Context Object for an LDAP-Based Replica
This example deletes from both the supplier and the consumer the naming context object created in the previous example.
The command is:
ldapdelete -D "bind_DN" -w administrator_password
-h [supplier host | consumer host]
-p port_number
"cn=naming_context_identifier,
cn=replication namecontext,orclagreementid=replication_agreement_ identifier,orclreplicaid=consumer_replica_identifier,cn=replication configuration"
Example 3: Modifying the orclIncludedNamingcontexts Attribute for a Replica Naming Context Object
The directory replication server uses the orclIncludedNamingcontexts
attribute value of the replica naming context object to specify the top-level subtree included in partial replication.
In this example, the included naming context is set to c=us
, which means that cn=us
is to be included in partial replication.
mod.ldif
as follows:
cn=naming_context_identifier,
cn=replication namecontext,
orclagreementid=replication_agreement_identifier,
orclreplicaid=consumer_replica_identifier,
cn=replication configuration Changetype:modify Replace: orclIncludedNamingcontexts orclIncludedNamingcontexts: c=us
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p port -f mod.ldif
Example 4: Modifying the orclExcludedNamingcontexts Attribute for a Replica Naming Context Object
The directory replication server uses the orclExcludedNamingcontexts
attribute value of the replica naming context object to specify the top-level subtrees excluded from partial replication.
In this example, the excluded naming contexts are set to ou=Europe,c=us
and ou=Americas,c=us
, which means that these two naming contexts are to be excluded from partial replication.
mod.ldif
as follows:
cn=naming_context_identifier,
cn=replication namecontext,orclagreementid=replication_agreement_ identifier,orclreplicaid=consumer_replica_identifier,cn=replication configuration Changetype:modify Replace: orclExcludedNamingcontexts orclExcludedNamingcontexts: ou=Europe, c=us orclExcludedNamingcontexts: ou=Americas, c=us
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p port -f mod.ldif
Example 5: Modifying the orclExcludedAttributes Attribute for a Replica Naming Context Object
You can specify that certain changes made to the included naming context be excluded from partial replication. To determine which attributes are to be excluded, the directory replication server uses the value of the orclExcludedAttributes
attribute of the replica naming context object.
In this example, the telephonenumber
and title
attributes of the naming context specified in the orclincludednamingcontexts attribute are excluded from replication.
mod.ldif
as follows:
cn=naming_context_identifier,
cn=replication namecontext,orclagreementid=replication_agreement_ identifier,orclreplicaid=consumer_replica_identifier,cn=replication configuration Changetype:modify Replace: orclExcludedAttributes orclExcludedAttributes: telephonenumber orclExcludedAttributes: title
ldapmodify -D "cn=orcladmin" -w administrator_password -h my_host -p port -f mod.ldif
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|