Skip to main content

Posts

Showing posts from January, 2014

Importing and Exporting Metadata into OIM

1-go to IDM_HOME/common/bin folder and run wlst.sh 2- Run "connect()" command 3- Enter following details- Please enter your username: weblogic (Enter weblogic username) Please enter your password:  ****** (Enter weblogic Password) Please enter your server URL: t3://localhost:7001 (Enter weblogic server URL) 4- run "exportMetadata(application='OIMMetadata', server='oim_server1', toLocation='/app/MDSExport1')" 5- Add Metadara.xml file in /app/MDSExport1/db 6- run "importMetadata(application='OIMMetadata', server='oim_server1', fromLocation='/app/MDSExport1')" 7- use "disconnect()" to disconnect.

Adding code logs to OIM logging

1. open < Middleware_home >/user_projects/domains/iam_domain/config/fmwconfig/servers/oim_server1/logging.xml. 2.  Create a new handler within <log_handlers> tag as below :   <log_handler name='Scheduler-handler' class='oracle.core.ojdl.logging.ODLHandlerFactory' level='TRACE:32'>    <property name='logreader:' value='off'/>    <property name='path' value='<Middleware>/user_projects/domains/iam_domain/servers/oim_server1/logs/scheduler.log'/>    <property name='format' value='ODL-Text'/>    <property name='useThreadName' value='true'/>    <property name='locale' value='en'/>    <property name='maxFileSize' value='5242880'/>    <property name='maxLogSize' value='52428800'/>    <property name='encoding' value='UTF-8'/>   </log_handler

Developing Scheduler with OIM 11g R2-

1.      Scheduler in OIM uses oracle.iam.scheduler.vo.TaskSupport plugin point. 2.      Write the Java code extending oracle.iam.scheduler.vo.TaskSupport.             Code Snippet:- package com.oracle.oim.scheduler; import oracle.iam.platform.Platform; import oracle.iam.provisioning.api.ApplicationInstanceService ; import oracle.iam.provisioning.vo.Account ; import oracle.iam.provisioning.vo.AccountData ; import oracle.iam.provisioning.vo.ApplicationInstance ; import oracle.iam.provisioning.vo.FormInfo ; import oracle.iam.scheduler.vo.ITResource ; import oracle.iam.scheduler.vo.ITResourceParameter ; import com.thortech.xl.dataaccess.tcDataProvider; import Thor.API.Operations.tcITResourceInstanceOperationsIntf; import Thor.API.Operations.tcLookupOperationsIntf; import Thor.API.tcResultSet; import Thor.API.tcUtilityFactory ; import oracle.iam.connectors.icfcommon.service.ProvisioningService ; import oracle.iam.identity.rolemg