This might sound trivial and indeed it is, but certainly not well documented. We had 8 OUD (Oracle Unified directory) instances in replication topology, as part of data-center exit two servers needed to be removed from the cluster. Here is the output for ./dsreplication status -X –advanced , for better visibility I have removed some of the stuff.

So, the idea was to completely and gracefully remove from the replication topology and the servers should not be appearing any where in the configuration. After searching for a while did encounter few doc like “How to Remove a Server From a Replication Group (Doc ID 2185157.1) and OUD 11g/12c – How to Remove a Corrupt OUD Instance From a Replication Topology (Doc ID 2287753.1) . Unfortunately both the procedures appeared to me as a desperate attempt to remove after some kind of failure, I needed a graceful way.
Finally tuned out to be very simple! Run dsreplication with disable flag, which actually removes from the configuration not just disables it, probably Oracle should have used the term “Remove” rather than disable.
Trigger this on the server that you want to remove.
./dsreplication disable -X --advanced
>>>> Specify Oracle Unified Directory LDAP connection parameters
Directory server host name or IP address [ABC3uk.oracle.com]:
Directory server administration port number [4444]:
Global Administrator User ID, or bind DN if no Global Administrator is defined
[admin]:
Password for user 'admin':
Establishing connections and reading configuration ..... Done.
You can choose to disable all the replication on the server. If you choose
'yes', the change log and the replication port (if defined) will be disabled;
if this server contains replicated data, the data will not be replicated with
other servers any more. All the registration information will be deleted.
Do you want to disable all the replication configuration? (yes / no) [no]: yes
Disabling replication on the registration data (cn=admin data) of server
ABC3uk.oracle.com:4444 ..... Done.
Disabling replication on base DN cn=OracleContext,DC=global,DC=tesco,DC=org of
server ABC3uk.oracle.com:4444 ..... Done.
Disabling replication on the oracle context used for integration
(cn=oraclecontext) of server ABC3uk.oracle.com:4444 ..... Done.
Disabling replication on the oracle schema version used for integration
(cn=oracleschemaversion) of server ABC3uk.oracle.com:4444 ..... Done.
Disabling replication on the schema of server
ABC3uk.oracle.com:4444 ..... Done.
Disabling replication port 8989 of server
ABC3uk.oracle.com:4444 ........... Done.
Removing truststore information ..... Done.
Removing registration information ..... Done.
Note, that –advanced is not required, I have problem in my configuration as without advance replication configuration was not visible, which I have not investigated yet. To verify run
./dsreplication status -X --advanced
Further you can also confirm if all the entry has been removed from config.ldif, It should have been removed.
cat /appl/product/middleware/asinst_1/OUD/config/config.ldif |grep 8989
One last thing, if you have OUDSM configured then “disable” option is available on console also, presumable it should do the same, however, I have not tested it, make sure you test if at all you plan to use OUDSM.