How to unregister R12 while OID is corrupted

If OID is corrupted and you want to forcefully deregister OID from R12, run the following command.
$FND_TOP/bin/ -script=SetSSOReg -removereferences=yes cannot open shared object file error during Oracle Installation

The " cannot open shared object file" is quite common if you install any oracle product on 64bit system and misses something in the system