{"id":10434,"date":"2017-08-10T09:57:07","date_gmt":"2017-08-10T07:57:07","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/"},"modified":"2017-08-10T09:57:07","modified_gmt":"2017-08-10T07:57:07","slug":"oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/","title":{"rendered":"OUD 11.1.2.3 &#8211; How to recover a lost entry in a replicated OUD environment"},"content":{"rendered":"<h2>By William Sescu<\/h2>\n<p>.<br \/>\nBy accident, it could happen that someone dropped an OUD entry in your replicated environment and of course, the entry is deleted on all replicas as well. And besides that, you got no logical ldif export of your OUD. Not a good situation, but if you have a done regular backups, there is a way out without resetting the whole OUD environment to an old timestamp.<\/p>\n<p>The idea is, to create a second empty OUD instance, restore only the Context which is needed, export the entry as ldif and import it again into your current replicated OUD.<\/p>\n<p>Let&#8217;s suppose, we have lost the following OUD entry:<\/p>\n<p>Distinguished Name: cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com<\/p>\n<p>To recover it, follow these steps:<\/p>\n<ol>\n<li>Create new OUD instance<\/li>\n<li>Create suffix<\/li>\n<li>Stop OUD instance asinst_2<\/li>\n<li>Restore the correct dc<\/li>\n<li>Start OUD instance asinst_2<\/li>\n<li>Export entry from asinst_2<\/li>\n<li>Import entry into asinst_1<\/li>\n<li>Cleanup asinst_2<\/li>\n<\/ol>\n<h3>1. Create new OUD instance<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 ~]$ cd \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/Oracle_OUD1\n[dbafmw@dbidg01 Oracle_OUD1]$\n[dbafmw@dbidg01 Oracle_OUD1]$ .\/oud-setup --cli --baseDN dc=dbi,dc=com --addBaseEntry --adminConnectorPort 5444 --ldapPort 2389 \n&gt; --rootUserDN cn=Directory Manager --rootUserPasswordFile ~\/.oudpwd \n&gt; --ldapsPort 2636 --generateSelfSignedCertificate \n&gt; --hostname dbidg01 --integration generic \n&gt; --serverTuning -Xms2048m -Xmx2048m -d64 -XX:+UseCompressedOops -server -XX:MaxTenuringThreshold=1 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=55 \n&gt; --offlineToolsTuning -Xms2048m -Xmx2048m -d64 -XX:+UseCompressedOops -server -XX:+UseParallelGC -XX:+UseNUMA \n&gt; --no-prompt --noPropertiesFile\nOUD Instance location successfully created - \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/Oracle_OUD1\/..\/asinst_2\"\n\nOracle Unified Directory 11.1.2.3.170718\nPlease wait while the setup program initializes...\n\nSee \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/logs\/oud-setup\nfor a detailed log of this operation.\n\nConfiguring Directory Server ..... Done.\nConfiguring Certificates ..... Done.\nCreating Base Entry dc=dbi,dc=com ..... Done.\nPreparing the server for Oracle integration ....... Done.\nStarting Directory Server ....... Done.\nCreating Net Services suffixes ..... Done.\n\nTo see basic server configuration status and configuration you can launch\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\/status\n\n\nThe new OUD instance was started automatically.\n\n\n[dbafmw@dbidg01 bin]$ \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\/status\n\n\n&gt;&gt;&gt;&gt; Specify Oracle Unified Directory LDAP connection parameters\n\nAdministrator user bind DN [cn=Directory Manager]:\n\nPassword for user 'cn=Directory Manager':\n\n          --- Server Status ---\nServer Run Status:        Started\nOpen Connections:         1\n\n          --- Server Details ---\nHost Name:                dbidg01\nAdministrative Users:     cn=Directory Manager\nInstallation Path:\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/Oracle_OUD1\nInstance Path:\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\nVersion:                  Oracle Unified Directory 11.1.2.3.170718\nJava Version:             1.7.0_151\nAdministration Connector: Port 5444 (LDAPS)\n\n          --- Connection Handlers ---\nAddress:Port : Protocol : State\n-------------:----------:---------\n--           : LDIF     : Disabled\n0.0.0.0:161  : SNMP     : Disabled\n0.0.0.0:1689 : JMX      : Disabled\n0.0.0.0:2389 : LDAP     : Enabled\n0.0.0.0:2636 : LDAPS    : Enabled\n\n          --- Data Sources ---\nBase DN:     cn=OracleContext\nBackend ID:  OIDCompatibility\nEntries:     26\nReplication: Disabled\n\nBase DN:     cn=OracleContext,dc=dbi,dc=com\nBackend ID:  OracleContext0\nEntries:     17\nReplication: Disabled\n\nBase DN:     cn=OracleSchemaVersion\nBackend ID:  OIDCompatibility\nEntries:     3\nReplication: Disabled\n\nBase DN:     cn=virtual acis\nBackend ID:  virtualAcis\nEntries:     0\nReplication: Disabled\n\nBase DN:     dc=dbi,dc=com\nBackend ID:  userRoot\nEntries:     1\nReplication: Disabled\n\n[dbafmw@dbidg01 bin]$<\/pre>\n<h3>2. Create suffix<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\n\n[dbafmw@dbidg01 bin]$ .\/manage-suffix create --baseDN \"dc=william,dc=dbi,dc=com\" \n&gt; --entries base-entry --integration Generic \n&gt; --hostname localhost --port 5444 \n&gt; --bindDN cn=\"Directory Manager\" --bindPasswordFile ~\/.oudpwd \n&gt; --trustAll --no-prompt\nReading Configuration ..... Done.\n\nCreating suffixes ..... Done.\n\nAdding Data ..... Done.\n\nUpdating Oracle Integration ..... Done.\n[dbafmw@dbidg01 bin]$<\/pre>\n<h3>3. Stop OUD instance asinst_2<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\n[dbafmw@dbidg01 bin]$ .\/stop-ds\nStopping Server...\n\n[10\/Aug\/2017:11:10:34 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=OIDCompatibility,cn=Workflow Elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:34 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=OracleContext for dc=william,dc=dbi,dc=com,cn=Workflow elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:35 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=OracleContext0,cn=Workflow elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:35 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=userRoot,cn=Workflow Elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:35 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=userRoot-0,cn=Workflow elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:35 +0200] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=virtualAcis,cn=Workflow Elements,cn=config is now taken offline\n[10\/Aug\/2017:11:10:35 +0200] category=CORE severity=NOTICE msgID=458955 msg=The Directory Server is now stopped<\/pre>\n<h3>4. Restore the correct dc<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\n[dbafmw@dbidg01 bin]$ .\/restore --listBackups --backupDirectory=\"\/u99\/backup\/OUD\/20170810\/OracleContext for dc=william,dc=dbi,dc=com\"\nBackup ID:          20170810085118Z\nBackup Date:        10\/Aug\/2017:10:51:18 +0200\nIs Incremental:     false\nIs Compressed:      true\nIs Encrypted:       false\nHas Unsigned Hash:  false\nHas Signed Hash:    false\nDependent Upon:     none\n\n[dbafmw@dbidg01 bin]$ .\/restore --dry-run --backupDirectory=\"\/u99\/backup\/OUD\/20170810\/OracleContext for dc=william,dc=dbi,dc=com\"\n[10\/Aug\/2017:11:19:47 +0200] category=JEB severity=NOTICE msgID=8847444 msg=Verifying: 00000000.jdb\n\n[dbafmw@dbidg01 bin]$ .\/restore  --backupDirectory=\"\/u99\/backup\/OUD\/20170810\/OracleContext for dc=william,dc=dbi,dc=com\"\n[10\/Aug\/2017:11:20:11 +0200] category=JEB severity=NOTICE msgID=8847445 msg=Restored: 00000000.jdb (size 114414)<\/pre>\n<h3>5. Start OUD instance asinst_2<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\/bin\n[dbafmw@dbidg01 bin]$ .\/start-ds\n[10\/Aug\/2017:11:20:30 +0200] category=CORE severity=INFORMATION msgID=132 msg=The Directory Server is beginning the configuration bootstrapping process\n[10\/Aug\/2017:11:20:31 +0200] category=CORE severity=NOTICE msgID=458886 msg=Oracle Unified Directory 11.1.2.3.170718 (build 20170621135318Z, R1706210545) starting up\n[10\/Aug\/2017:11:20:34 +0200] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381717 msg=Installation Directory:  \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/Oracle_OUD1\n[10\/Aug\/2017:11:20:34 +0200] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381719 msg=Instance Directory:      \/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\n[10\/Aug\/2017:11:20:34 +0200] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381713 msg=JVM Information: 1.7.0_151-b15 by Oracle Corporation, 64-bit architecture, 2130051072 bytes heap size\n[10\/Aug\/2017:11:20:34 +0200] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381714 msg=JVM Host: dbidg01, running Linux 4.1.12-94.5.7.el7uek.x86_64 amd64, 5986422784 bytes physical memory size, number of processors available 2\n[10\/Aug\/2017:11:20:34 +0200] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381715 msg=JVM Arguments: \"-Xms2048m\", \"-Xmx2048m\", \"-XX:+UseCompressedOops\", \"-XX:MaxTenuringThreshold=1\", \"-XX:+UseConcMarkSweepGC\", \"-XX:CMSInitiatingOccupancyFraction=55\", \"-Dorg.opends.server.scriptName=start-ds\"\n[10\/Aug\/2017:11:20:34 +0200] category=ACCESS_CONTROL severity=INFORMATION msgID=12582978 msg=Added 11 Global Access Control Instruction (ACI) attribute types to the access control evaluation engine\n[10\/Aug\/2017:11:20:34 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend OracleContext0 does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:34 +0200] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend OracleContext0 does not specify the number of cleaner threads: defaulting to 24 threads\n[10\/Aug\/2017:11:20:34 +0200] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend OracleContext0 does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent\n[10\/Aug\/2017:11:20:34 +0200] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend OracleContext0 does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors\n[10\/Aug\/2017:11:20:35 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=OracleContext0,cn=Workflow elements,cn=config containing 17 entries has started\n[10\/Aug\/2017:11:20:35 +0200] category=ACCESS_CONTROL severity=INFORMATION msgID=12582962 msg=Added 5 Access Control Instruction (ACI) attribute types found in context \"cn=OracleContext,dc=dbi,dc=com\" to the access control evaluation engine\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend virtualAcis does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:35 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=virtualAcis,cn=Workflow Elements,cn=config containing 0 entries has started\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend userRoot-0 does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend userRoot-0 does not specify the number of cleaner threads: defaulting to 24 threads\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend userRoot-0 does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend userRoot-0 does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors\n[10\/Aug\/2017:11:20:35 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=userRoot-0,cn=Workflow elements,cn=config containing 1 entries has started\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend OracleContext for dc=william,dc=dbi,dc=com does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend OracleContext for dc=william,dc=dbi,dc=com does not specify the number of cleaner threads: defaulting to 24 threads\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend OracleContext for dc=william,dc=dbi,dc=com does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend OracleContext for dc=william,dc=dbi,dc=com does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors\n[10\/Aug\/2017:11:20:35 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=OracleContext for dc=william,dc=dbi,dc=com,cn=Workflow elements,cn=config containing 18 entries has started\n[10\/Aug\/2017:11:20:35 +0200] category=ACCESS_CONTROL severity=INFORMATION msgID=12582962 msg=Added 5 Access Control Instruction (ACI) attribute types found in context \"cn=OracleContext,dc=william,dc=dbi,dc=com\" to the access control evaluation engine\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend userRoot does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend userRoot does not specify the number of cleaner threads: defaulting to 24 threads\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend userRoot does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent\n[10\/Aug\/2017:11:20:35 +0200] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend userRoot does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors\n[10\/Aug\/2017:11:20:35 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=userRoot,cn=Workflow Elements,cn=config containing 1 entries has started\n[10\/Aug\/2017:11:20:36 +0200] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend OIDCompatibility does not specify the number of lock tables: defaulting to 97\n[10\/Aug\/2017:11:20:36 +0200] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend OIDCompatibility does not specify the number of cleaner threads: defaulting to 24 threads\n[10\/Aug\/2017:11:20:36 +0200] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend OIDCompatibility does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent\n[10\/Aug\/2017:11:20:36 +0200] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend OIDCompatibility does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors\n[10\/Aug\/2017:11:20:36 +0200] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=OIDCompatibility,cn=Workflow Elements,cn=config containing 29 entries has started\n[10\/Aug\/2017:11:20:36 +0200] category=ACCESS_CONTROL severity=INFORMATION msgID=12582962 msg=Added 10 Access Control Instruction (ACI) attribute types found in context \"cn=OracleContext\" to the access control evaluation engine\n[10\/Aug\/2017:11:20:36 +0200] category=ACCESS_CONTROL severity=INFORMATION msgID=12582962 msg=Added 1 Access Control Instruction (ACI) attribute types found in context \"cn=OracleSchemaVersion\" to the access control evaluation engine\n[10\/Aug\/2017:11:20:36 +0200] category=EXTENSIONS severity=INFORMATION msgID=1048797 msg=DIGEST-MD5 SASL mechanism using a server fully qualified domain name of: dbidg01\n[10\/Aug\/2017:11:20:36 +0200] category=CORE severity=INFORMATION msgID=731 msg=LDAP Connection Handler 0.0.0.0 port 2389 does not specify the number of request handler threads: sizing automatically to use 8 threads\n[10\/Aug\/2017:11:20:36 +0200] category=CORE severity=INFORMATION msgID=731 msg=LDAP Connection Handler 0.0.0.0 port 2636 does not specify the number of request handler threads: sizing automatically to use 8 threads\n[10\/Aug\/2017:11:20:36 +0200] category=CORE severity=INFORMATION msgID=720 msg=No worker queue thread pool size specified: sizing automatically to use 24 threads\n[10\/Aug\/2017:11:20:36 +0200] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on Administration Connector 0.0.0.0 port 5444\n[10\/Aug\/2017:11:20:36 +0200] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on LDAP Connection Handler 0.0.0.0 port 2389\n[10\/Aug\/2017:11:20:36 +0200] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on LDAP Connection Handler 0.0.0.0 port 2636\n[10\/Aug\/2017:11:20:36 +0200] category=CORE severity=NOTICE msgID=458887 msg=The Directory Server has started successfully\n[10\/Aug\/2017:11:20:36 +0200] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID 458887):  The Directory Server has started successfully<\/pre>\n<h3>6. Export entry from asinst_2<\/h3>\n<p>Now let&#8217;s check if we got our entry &#8220;cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com&#8221; back.<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ .\/ldapsearch --hostname localhost --port 2389 --bindDN \"cn=Directory Manager\" \n&gt; --bindPasswordFile ~\/.oudpwd --baseDN \"cn=OracleContext,dc=william,dc=dbi,dc=com\" \"(cn=dbit122_ldap)\" objectclass orclNetDescString orclNetDescName orclVersion\ndn: cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com\norclNetDescName: 000_cn=DESCRIPTION_0\norclNetDescString: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbidg\n 01)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbidg02)(PORT=1521)))(CONNECT_DATA=\n (SERVICE_NAME=DBIT122_PRI)))\nobjectclass: orclNetService\nobjectclass: top<\/pre>\n<p>Looks good, so we can create the ldif now.<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ .\/ldapsearch --hostname localhost --port 2389 --bindDN \"cn=Directory Manager\" --bindPasswordFile \n&gt; ~\/.oudpwd --baseDN \"cn=OracleContext,dc=william,dc=dbi,dc=com\" \"(cn=dbit122_ldap)\" objectclass \n&gt; orclNetDescString orclNetDescName orclVersion &gt; \/tmp\/dbit122.ldif\n\n[dbafmw@dbidg01 bin]$ cat \/tmp\/dbit122.ldif\ndn: cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com\norclNetDescName: 000_cn=DESCRIPTION_0\norclNetDescString: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbidg\n 01)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbidg02)(PORT=1521)))(CONNECT_DATA=\n (SERVICE_NAME=DBIT122_PRI)))\nobjectclass: orclNetService\nobjectclass: top<\/pre>\n<h3>7. Import the entry into asinst_1 (this is the replicated OUD environment)<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 bin]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_1\/OUD\/bin\n\n[dbafmw@dbidg01 bin]$ .\/ldapmodify --defaultAdd --filename \/tmp\/dbit122.ldif --hostname dbidg01 --port 1389 \n&gt; --bindDN \"cn=Directory Manager\" --bindPasswordFile ~\/.oudpwd\nProcessing ADD request for cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com\nADD operation successful for DN cn=dbit122_ldap,cn=OracleContext,dc=william,dc=dbi,dc=com<\/pre>\n<h3>8. Cleanup asinst_2<\/h3>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[dbafmw@dbidg01 OUD]$ pwd\n\/u01\/app\/oracle\/product\/Middleware\/11.1.2.3\/asinst_2\/OUD\n[dbafmw@dbidg01 OUD]$ .\/uninstall --cli --remove-all\n\nThe server is currently running and must be stopped before uninstallation can\ncontinue.\nStop the Server and permanently delete the files? (yes \/ no) [yes]: yes\n\nStopping Directory Server ..... Done.\nDeleting Files under the Installation Path ..... Done.\n\nUninstall Completed Successfully.\nSee \/tmp\/oud-uninstall-4049143346007549356.log for a detailed log of this operation.\n[dbafmw@dbidg01 OUD]$<\/pre>\n<p>Ready, we got our entry back, and even cleaned up the leftovers from the temporary OUD instance asinst_2.<\/p>\n<h3>Conclusion<\/h3>\n<p>Loosing entries from your replicated OUD environment is not the end of the world. If you have good backups, you can create anytime a new OUD instance and recover only the Context that you need.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By William Sescu . By accident, it could happen that someone dropped an OUD entry in your replicated environment and of course, the entry is deleted on all replicas as well. And besides that, you got no logical ldif export of your OUD. Not a good situation, but if you have a done regular backups, [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[1054],"type_dbi":[],"class_list":["post-10434","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-oud"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment\" \/>\n<meta property=\"og:description\" content=\"By William Sescu . By accident, it could happen that someone dropped an OUD entry in your replicated environment and of course, the entry is deleted on all replicas as well. And besides that, you got no logical ldif export of your OUD. Not a good situation, but if you have a done regular backups, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-10T07:57:07+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"OUD 11.1.2.3 &#8211; How to recover a lost entry in a replicated OUD environment\",\"datePublished\":\"2017-08-10T07:57:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\"},\"wordCount\":289,\"commentCount\":2,\"keywords\":[\"OUD\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\",\"name\":\"OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2017-08-10T07:57:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OUD 11.1.2.3 &#8211; How to recover a lost entry in a replicated OUD environment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/","og_locale":"en_US","og_type":"article","og_title":"OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment","og_description":"By William Sescu . By accident, it could happen that someone dropped an OUD entry in your replicated environment and of course, the entry is deleted on all replicas as well. And besides that, you got no logical ldif export of your OUD. Not a good situation, but if you have a done regular backups, [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/","og_site_name":"dbi Blog","article_published_time":"2017-08-10T07:57:07+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"OUD 11.1.2.3 &#8211; How to recover a lost entry in a replicated OUD environment","datePublished":"2017-08-10T07:57:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/"},"wordCount":289,"commentCount":2,"keywords":["OUD"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/","url":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/","name":"OUD 11.1.2.3 - How to recover a lost entry in a replicated OUD environment - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-08-10T07:57:07+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oud-11-1-2-3-how-to-recover-a-lost-entry-in-a-replicated-oud-environment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"OUD 11.1.2.3 &#8211; How to recover a lost entry in a replicated OUD environment"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=10434"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10434\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=10434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=10434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=10434"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=10434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}