Description: The configurations for OIM caching are defined in the "/db/oim-config.xml" file, which is stored in MDS. To enable caching, you can either directly modify the "/db/oim-config,xml" configuration file or use the OIM Enterprise Manager (EM) console. This post goes over the latter. In the EM console, there are beans that correspond to the caching settings defined in "/db/oim-config.xml". Whenever you make a change to a bean, the change is push out to MDS.
1. Log into EM console (HOSTNAME:7001/em).
2. Open System MBean Browser (On the left panel, expand WebLogic Domain and right click DOMAIN_NAME).
3. Expand Application Defined MBeans -> oracle.iam -> Server: oim_server1 -> Application : oim -> XMLConfig -> Config -> XMLConfig.CacheConfig and click the Cache bean.
4. On the Cache bean, set the following parameters and apply changes:
- Set "Cache Config clustered" to true for clustered OIM environment; otherwise false.
- Set "Cache Config enabling" to true.
- Set "Cache Config thread local enabling" to false.
Example: A CacheCategory Bean Enabled |
6. The combo box fields in EM console are only for write access. Hence a blank is displayed when viewing changes after refresh. To verify the values, you must export the "/db/oim-config.xml" configuration file (Refer to Import and Export Metadata using EM Console). The cache settings inside your "/db/oim-config.xml" should look similar to the content given below:
<cacheConfig clustered="false" enabled="true" expirationTime="144000" provider="oracle.iam.platform.utils.cache.OSCacheProvider" threadLocalCacheEnabled="false"> <cacheCategoriesConfig> <cacheCategoryConfig enabled="true" expirationTime="14400" name="DataObjectEventHandlers"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ProcessDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="EmailDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="RuleDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="FormDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ColumnMap"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="UserDefinedColumns"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ObjectDefinition"/> <cacheCategoryConfig enabled="false" expirationTime="14400" name="StoredProcAPI"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="NoNeedToFlush"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="MetaData"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="User"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="AdapterInformation"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="OrgnizationName"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="Reconciliation"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="SystemProperties"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="LookupDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="UserGroups"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="LookupValues"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ITResourceKey"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="RecordExists"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ServerProperties"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="ColumnMetaData"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="API"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="Catalog"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="CustomResourceBundle"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="CustomDefaultBundle"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="ConnectorResourceBundle"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="LinguisticSort"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="GenericConnector"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="GenericConnectorProviders"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="AccessPolicyDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="UserConfig"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="OESDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="-1" name="RoleContainerToDescrMap"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="PluginFramework"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="CallbackConfiguration"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="SchedulerTaskDefinition"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="UserStatus"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="LocaleCodeLanguageMapping"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="TenantRegistry"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="LocalizedResource"/> <cacheCategoryConfig enabled="true" expirationTime="14400" name="AppInstanceDetails"/> </cacheCategoriesConfig> <xLCacheProviderProps multicastAddress="231.103.90.105" size="5000"> <properties/> </xLCacheProviderProps> </cacheConfig>
No comments:
Post a Comment