In most of the blogs we see that how to do the purgecache but rarely we can find out that what exactly PurgeCache.sh does.
Firstly let me explain to you what exactly does it mean by purging the cache in Oracle Identity Manager.
PurgeCache.sh run the script is present in the $OIM_HOME/bin. After running this script, it delete all the cache data present at the metadata level but not at the server level.Consultants often get confused between the PurgeCache.sh and deleting the content of $DOMAIN_HOME/server/OIMServerName/cache.
PurgeCache.sh deletes the data which are cached by the server at metadata level such as import/export , uploading jar file, adding jar file in JavaTask or Third party folder.
But Deleting content of $DOMAIN_HOME/server/OIMServerName/cache deletes the data which is held in the cache at the server level not the metadata level that impacts server restart .
Now how to run the PurgeCache.sh
1) Go to $OIM_HOME/bin in command prompt and run PurgeCache.sh All
2) Enter xelsysadm user login.
3) Enter xelsysadm password.
4) Enter OIM URL.
Its done.
Now if you are facing any issue like your new jar file is not read by OIM or while importing you are not able to see new xml file then run "PurgeCache.sh All" command and it will solve your issue.