EBS HRMS 定制化配置Word格式.docx
《EBS HRMS 定制化配置Word格式.docx》由会员分享,可在线阅读,更多相关《EBS HRMS 定制化配置Word格式.docx(21页珍藏版)》请在冰豆网上搜索。
BUSINESS_GROUP_ID'
varchar2'
attr(3):
LAST_NAME'
1,1,1,1);
attr(4):
FIRST_NAME'
attr(5):
SEX'
attr(6):
PERSON_TYPE_ID'
attr(7):
EMPLOYEE_NUMBER'
attr(8):
PERSON_ID'
attr(9):
TITLE'
attr(10):
EMAIL_ADDRESS'
attr(11):
MARITAL_STATUS'
attr(12):
NATIONALITY'
attr(13):
NATIONAL_IDENTIFIER'
attr(14):
DATE_OF_BIRTH'
attr(15):
TOWN_OF_BIRTH'
attr(16):
REGION_OF_BIRTH'
attr(17):
COUNTRY_OF_BIRTH'
attr(18):
USER_PERSON_TYPE'
attr(19):
EFFECTIVE_START_DATE'
attr(20):
ACTUAL_TERMINATION_DATE'
attr(21):
SUPERVISOR_ID'
attr(22):
SUPERVISOR_NAME'
0,0,0,1);
attr(23):
JOB'
attr(24):
GRADE'
attr(25):
DEPARTMENT'
attr(26):
PERSON_UPDATED_DATE'
attr(27):
ASSIGNMENT_UPDATED_DATE'
attr.extend;
attr(28):
U_ID'
attr(29):
FAMILY_NAME'
attr(30):
GIVEN_NAME'
attr(31):
IN_DATE'
attr(32):
EMPLOYEE_STATUS'
attr(33):
OFFICE_LOCATION'
schemaout
(1):
=schema_object('
__PERSON__'
attr);
修改完成后在数据库中重新编译。
二、更新操作
2.1新建用户自定义字段
登录http:
//172.29.41.203:
15000/sysadmin管理界面,新建纱箱“userdef”,保存并关闭。
单击“系统实体”下的“用户”项,单击“新建”按钮,在出现以下界面中选择文本。
确定后,在显示标签和名称中添加新字段。
使用同样步骤添加上所有自定义字段。
2.2添加用户资源实体
1.登录到OracleIdentityManagerDesignConsole。
cd/u01/oracle/Middleware/Oracle_IDM1/designconsole
./xlclient.sh
输入xelsysadm/Welcome1
单击Yes
2.展开ResourceManagement文件夹,双击ResourceObjects并单击查找按键,在右侧窗体下方新出现ResourceObjectsTable页签。
3.在ResourceObjectsTable页签内查找OracleEBSHRMSTrustedUser项并双击数字栏。
在以下界面中单击ObjectReconciliation页签。
4.在ObjectReconciliation页内,单击AddField按钮在出现的AddReconciliation
Field对话框中添加属性字段信息,如U_ID。
5.在FieldName字段,输入属性值,如U_ID。
6.FieldType列表,选择数据的类型,如String。
7.如果属性值为必填值,需要选定Reauired。
8.保存后关闭对话框。
2.3更新用户过程定义
1.展开ProcessManagement并双击ProcessDefinition项
2.查找并双击OracleEBSHRMSTrustedUser过程定义。
3.在ReconciliationFieldMapping页内单击AddFieldMap按钮。
4.在Fieldname列表中选择2.2节用户资源实体中添加的字段,如UID。
5.在UserAttribute列表中选择在2.1节用户自定义步骤中添加的字段,如usr_u_id。
6.保存后关闭对话框。
2.4更新数据同步的属性映射
对新添加的自定义属性,需要添加新的属性映射。
1.展开Administration文件夹并双击LookupDefinition。
2.输入Lookup.EBSHRMS.ReconAttrMap.Trusted值后单击查找按钮。
3.单击Add按钮来新添加行。
4.在CodeKey字段输入2.2节中定义的属性值,如U_ID。
5.在Decode字段输入1节中定义的属性值,如U_ID。
6.保存后关闭对话框。
2.5创建用户资源实例的同步配置
注:
创建同步配置把以上的操作更新到MDS中。
1.在ResourceManagement文件夹内的ResourceObjects中搜索OracleEBSHRMSTrustedUser。
3.在ObjectReconciliation页内单击CreateReconciliationProfile项并保存。
三、更新ConnectorBundle
必须把先前添加的新属性字段更新到ConnectorBundle(org.identityconnectors.ebs-1.0.1115.jar)中。
1.解压Oracle_EBS_HRMS-11.1.1.5.0/bundle/org.identityconnectors.ebs-1.0.11150.jar文件到当前目录。
2.在configuration文件夹内,编辑search.properties文件。
3.找到HRMS_CURRENT_EMPLOYEE_RECON_QUERY和HRMS_CURRENT_FUTURE_EMPLOYEE_RECON_QUERY对应的SQL,并添加与第2节中定义相同的属性值。
4.保存修改结果到文件。
5.确认新修改的SQL能够正常执行并包括新添加的字段。
6.更新connectorbundle(org.identityconnectors.ebs-1.0.11150.jar)包,执行以下命令。
jar-cvfmorg.identityconnectors.ebs-1.0.11150.jarMETA-INF/MANIFEST.MF*
7.运行更新JAR脚本来更新数据库中的connectorbundle。
[oracle@idmdevbin]$cd$OAM_ORACLE_HOME/server/bin
[oracle@idmdevbin]$./UpdateJars.sh
ForrunningtheUtilitiesthefollowingenvironmentvariablesneedtobeset
APP_SERVERisweblogic
OIM_ORACLE_HOMEis/u01/oracle/Middleware/Oracle_IDM1
JAVA_HOMEis/u01/oracle/Middleware/jdk1.7
MW_HOMEis/u01/oracle/Middleware
WL_HOMEis/u01/oracle/Middleware/wlserver_10.3
DOMAIN_HOMEis/u01/oracle/Middleware/user_projects/domains/oim_domain
Executingoracle.iam.platformservice.utils.JarUpdateUtilityinIPv4mode
[EnterXellerateadminusername:
]xelsysadm
[Entertheadminpassword:
]Welcome1
[[EnterserverURL(Ex.t3:
//oimhostname:
oimportnoforweblogicorcorbaloc:
iiop:
localhost:
2801forwebsphere)]:
]t3:
//idmdev.tp-:
15000
[[Entercontext(i.e.:
weblogic.jndi.WLInitialContextFactoryforweblogicorcom.ibm.websphere.naming.WsnInitialContextFactoryforwebsphere)]:
]weblogic.jndi.WLInitialContextFactory
Loggingconfigurationclass"
oracle.core.ojdl.logging.LoggingConfiguration"
failed
java.lang.ClassNotFoundException:
oracle.core.ojdl.logging.LoggingConfiguration
log4j:
WARNNoappenderscouldbefoundforlogger(org.springframework.jndi.JndiTemplate).
WARNPleaseinitializethelog4jsystemproperly.
Enterthejartype
1.JavaTasks
2.ScheduleTask
3.ThirdParty
4.ICFBundle
4
Enterthepath/locationofjarfile:
/home/software/connector/Oracle_EBS_HRMS-11.1.1.5.0/bundle/org.identityconnectors.ebs-1.0.11150.jar
Douwanttoupdatemorejars[y/n]:
n
8.更新oim_hrms_connector用户访问权限
createorreplacesynonymoim_hrms_connector.XXTP_HR_IDM_PEOPLE_VforAPPS.XXTP_HR_IDM_PEOPLE_V;
grantselectonAPPS.XXTP_HR_IDM_PEOPLE_Vtooim_hrms_connector;
9.更新成功后,重启OIM所有服务。
四、SQL样例
4.1HRMS_CURRENT_EMPLOYEE_RECON_QUERY
SELECT*FROM(SELECTROW_NUMBER()OVER(ORDERBYperson_id)Row_Num,resultTable.*FROM(
SELECTPAPF.PERSON_IDASperson_id,PAPF.FIRST_NAMEASfirst_name,PAPF.LAST_NAMEASlast_name,PAPF.EMAIL_ADDRESSASemail_address,PPT.USER_PERSON_TYPEuser_person_type,PAPF.EFFECTIVE_START_DATEASeffective_start_date,PAPF.EFFECTIVE_END_DATEASeffective_end_date,PAPF.EMPLOYEE_NUMBERASemployee_number,PPS.ACTUAL_TERMINATION_DATEASactual_termination_date,sysdateasSYSTEM_DATE,PAPF.BUSINESS_GROUP_IDASbusiness_group_id,PAAF.SUPERVISOR_IDASsupervisor_id,SUP.FULL_NAMEASsupervisor_name,PJ.NAMEASjob,PG.NAMEASgrade,HAOU.NAMEASdepartment,PAPF.TOWN_OF_BIRTHAStown_of_birth,PPU.PERSON_TYPE_IDASperson_type_id,PAPF.REGION_OF_BIRTHASregion_of_birth,PAPF.COUNTRY_OF_BIRTHAScountry_of_birth,PAPF.NATIONAL_IDENTIFIERASnational_identifier,PAPF.TITLEAStitle,PAPF.MARITAL_STATUSASmarital_status,PAPF.SEXASsex,PAPF.DATE_OF_BIRTHASdate_of_birth,PAPF.NATIONALITYASnationality,NVL(PAPF.ORIGINAL_DATE_OF_HIRE,PAPF.START_DATE)AShire_date,PAPF.LAST_UPDATE_DATEASperson_updated_date,PAAF.LAST_UPDATE_DATEASassignment_updated_date,XHIPV.u_id,XHIPV.family_name,XHIPV.given_name,XHIPV.in_date,XHIPV.employee_status,XHIPV.office_location
FROMPER_ALL_PEOPLE_FPAPF,PER_PERIODS_OF_SERVICEPPS,PER_PERSON_TYPESPPT,PER_PERSON_TYPE_USAGES_FPPU,PER_ALL_ASSIGNMENTS_FPAAF,PER_ALL_PEOPLE_FSUP,PER_JOBSPJ,PER_GRADESPG,HR_ALL_ORGANIZATION_UNITSHAOU,XXTP_HR_IDM_PEOPLE_VXHIPV
WHEREPPT.USER_PERSON_TYPEIN('
Employee'
Contractor'
)ANDPPU.PERSON_TYPE_ID=PPT.PERSON_TYPE_IDANDPPU.PERSON_ID=PAPF.PERSON_ID
ANDPAAF.PERSON_ID=PAPF.PERSON_IDANDPAPF.PERSON_ID=PPS.PERSON_IDANDPAAF.PRIMARY_FLAG='
Y'
ANDPAAF.SUPERVISOR_ID=SUP.person_id(+)ANDPAAF.job_id=PJ.job_id(+)
ANDPAAF.grade_id=PG.grade_id(+)ANDPAAF.organization_id=HAOU.organization_id(+)ANDPAAF.period_of_service_id=PPS.period_of_service_id(+)
ANDPAPF.CURRENT_EMPLOYEE_FLAG='
ANDSUP.CURRENT_EMPLOYEE_FLAG(+)='
AND(TRUNC(SYSDATE)BETWEENPAPF.EFFECTIVE_START_DATEANDPAPF.EFFECTIVE_END_DATE)ANDPPU.EFFECTIVE_END_DATE>
sysdate
AND(TRUNC(SYSDATE)BETWEENPPU.EFFECTIVE_START_DATEANDPPU.EFFECTIVE_END_DATE)AND(TRUNC(SYSDATE)BETWEENPAAF.EFFECTIVE_START_DATEANDPAAF.EFFECTIVE_END_DATE)
AND(TRUNC(SYSDATE)BETWEENSUP.EFFECTIVE_START_DATE(+)ANDSUP.EFFECTIVE_END_DATE(+))ANDPAPF.PERSON_ID=XHIPV.PERSON_ID
UNIONALL
SELECTPAPF.PERSON_IDASperson_id,PAPF.FIRST_NAMEASfirst_name,PAPF.LAST_NAMEASlast_name,PAPF.EMAIL_ADDRESSASemail_address,PPT.USER_PERSON_TYPEuser_person_type,PAPF.EFFECTIVE_START_DATEASeffective_start_date,PAPF.EFFECTIVE_END_DATEASeffective_end_date,PAPF.NPW_NUMBERASemployee_number,PPS.ACTUAL_TERMINATION_DATEASactual_termination_date,sysdateasSYSTEM_DATE,PAPF.BUSINESS_GROUP_IDASbusiness_group_id,PAAF.SUPERVISOR_IDASsupervisor_id,SUP.FULL_NAMEASsupervisor_name,PJ.NAMEASjob,PG.NAMEASgrade,HAOU.NAMEASdepartment,PAPF.TOWN_OF_BIRTHAStown_of_birth,PPU.PERSON_TYPE_IDASperson_type_id,PAPF.REGION_OF_BIRTHASregion_of_birth,PAPF.COUNTRY_OF_BIRTHAScountry_of_birth,PAPF.NATIONAL_IDENTIFIERASnational_identifier,PAPF.TITLEAStitle,PAPF.MARITAL_STATUSASmarital_status,PAPF.SEXASsex,PAPF.DATE_OF_BIRTHASdate_of_birth,PAPF.NATIONALITYASnationality,NVL(PAPF.ORIGINAL_DATE_OF_HIRE,PAPF.START_DATE)AShire_date,PAPF.LAST_UPDATE_DATEASperson_updated_date,PAAF.LAST_UPDATE