|Skip Navigation Links|
|Exit Print View|
|Oracle Fusion Middleware Administration Guide for Oracle Unified Directory 11g Release 1 (11.1.1)|
Schema replication is enabled by default. When you configure replication as part of the server setup, the schema of the new server is automatically initialized with the schema of the existing server in the topology.
When you configure replication with the dsreplication enable command, you can specify that the schema of the second directory server be used to initialize the schema of the first server. If you do not specify an option, the schema of the first directory server is used by default.
In the following example, the data of host1 is used to initialize host2 but the schema of host2 is used to initialize the schema on host1:
$ dsreplication enable --host1 host1 --port1 4444 --bindDN1 "cn=Directory Manager" \ --bindPassword1 password --replicationPort1 8989 --host2 host2 --port2 4444 \ --bindDN2 "cn=Directory Manager" --bindPassword2 password --replicationPort2 8989 \ --adminUID admin --adminPassword password --baseDN "dc=example,dc=com" \ --useSecondServerAsSchemaSource -X
In certain circumstances, you might not want the schema to be replicated. The schema is replicated under a separate base DN, "cn=schema".
When you configure replication with the dsreplication enable command, you can specify that the schema should not be replicated, using the --noSchemaReplication option.
Note - If you use QuickSetup to enable replication, you cannot specify that the schema should not be replicated.
In an existing topology in which the schema are being replicated, you can disable this functionality by disabling replication of the schema base DN. The following example disables schema replication from the directory server running on the local host on port 1389:
$ dsreplication disable -h localhost -p 1389 -D "cn=directory manager" \ -w password -b "cn=schema" -X
Note - The previous example does not disable schema replication for the entire topology. To disable schema replication for the entire topology, you must run the equivalent command for each directory server in the topology.