Friday, March 13, 2015

Enable/Disable the OID changelog

Enable/Disable the OID changelog


OID uses the changelog to keep track of the changes performed. It is used by application such as OIM to keep the OIM and OID in sync. By default, when you install OID, changelog is enabled. For some reason, if it not enabled, you could enable it using quickly using the procedure below.
Set the value for the attribute orclgeneratechangelog to enable or disable the change log. Create a LDIF file to set the value for above property

dn: cn=componentname,cn=osdldapd,cn=subconfigsubentry
changetype: modify
replace: orclgeneratechangelog
orclgeneratechangelog: 1

A value of “1” will enable the changelog whereas, “0” will disable it.
Modify by running

Ldapmodify –D cn=orcladmin –w <password> -h  <oid Server> -p <oid port> -f <ldif file name>

Viewing the Changelog


Use ldapsearch to view the changelogs.
Use different filters to view the log, for example:
1.    For example, to view a range of change logs that have been transported from the supplier to the local node, use filter:
   "(&(objectclass=changeLogEntry)(servername=SUPPLIER_REPLICAID)\
   (changeNumber>=FROMCHGNO)(changeNumber<=TOCHGNO))"
2.    To view a single change log that has been transported from the supplier to the local node, use:
   "(&(objectclass=changeLogEntry)(servername=SUPPLIER_REPLICAID)\
   (changeNumber=CHGNO))" 
3.    To view a range change logs that have been generated at the local node, use:
"(&(objectclass=changeLogEntry)(changeNumber>=FROMCHGNO)(changeNumber<=TOCHGNO))"
4.    To view a single change log that has been generated at the local node, use:
   "(&(objectclass=changeLogEntry)(changeNumber=CHGNO))" 


Have fun...






No comments:

Post a Comment