diff --git a/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Job_data_view.sql b/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Job_data_view.sql new file mode 100644 index 0000000000..1a5e9e948e --- /dev/null +++ b/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Job_data_view.sql @@ -0,0 +1,77 @@ +-- Copyright (c) 2025 Oracle and/or its affiliates. +-- +-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. +-- +-- Author: OAG Development +-- +-- Description: Script file to create JOB_DATA_VIEW in the AG Service Account User Schema of the PSFT DB, required for OAG integration +-- +-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. + +CREATE OR REPLACE VIEW job_Data_View ( +empl_id, +empl_rcd, +eff_dt, +EFF_SEQ, +business_unit, +empl_type, +empl_class, +officer_Code, +company, +per_org, +POSITION_NBR, +poi_type, +deptid, +jobcode, +supervisor_id, +hr_status, +empl_status, +full_part_time, +action, +action_reason, +locationCode, +locationDetails, +job_type, +setid_jobcode, +job_title, +end_date, +termination_dt, +reports_to, +dept_code_hierarchy, +Description, +lastupddttm ) AS +SELECT + pj.emplid, + pj.empl_rcd, + pj.effdt, + pj.EFFSEQ, + pj.business_unit, + pj.empl_type, + pj.empl_class, + pj.officer_cd, + pj.company, + pj.per_org, + pj.POSITION_NBR, + pj.poi_type, + pj.deptid, + pj.jobcode, + pj.supervisor_id, + pj.hr_status, + pj.empl_status, + pj.full_part_time, + pj.action, + pj.action_reason, + pj.location, + null, + pj.JOB_INDICATOR, + setid_jobcode, + pjc.descr, + To_Date(NULL, 'YYYYMMDD'), + pj.termination_dt, + pj.reports_to, + null, + null, + pj.lastupddttm +FROM + ps_job pj + left join PS_JOBCODE_TBL pjc on pj.SETID_JOBCODE=pjc.setid and pj.jobcode = pjc.jobcode and pj.effdt = pjc.effdt; \ No newline at end of file diff --git a/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Personal_data_view.sql b/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Personal_data_view.sql new file mode 100644 index 0000000000..b3e327481c --- /dev/null +++ b/OracleIdentityGovernance/samples/scripts/PEOPLESOFT/1.0/Personal_data_view.sql @@ -0,0 +1,48 @@ +-- Copyright (c) 2025 Oracle and/or its affiliates. +-- +-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. +-- +-- Author: OAG Development +-- +-- Description: Script file to create PERSONAL_DATA_VIEW in the AG Service Account User Schema of the PSFT DB, required for OAG integration +-- +-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. + +CREATE OR REPLACE VIEW personal_data_view ( empl_id, +first_name, +last_name, +middle_name, +pref_first_name, +name_title, +phone, +email, +organization_name, +country, +address1, +address2, +address3, +city, +state, +postal, +lastupddttm) AS +SELECT + pd.emplid, + pd.first_name, + pd.last_name, + pd.middle_name, + pd.pref_first_name, + pd.name_title, + pd.phone, + pe.email_addr, + '', + pd.country, + pd.address1, + pd.address2, + pd.address3, + pd.city, + pd.state, + pd.postal, + pd.lastupddttm +FROM + ps_personal_data pd + LEFT JOIN ps_email_addresses pe ON pd.emplid = pe.emplid and pe.pref_email_flag='Y'; \ No newline at end of file diff --git a/OracleIdentityGovernance/samples/scripts/README.md b/OracleIdentityGovernance/samples/scripts/README.md index 8c6848ea9a..dacb2636f3 100644 --- a/OracleIdentityGovernance/samples/scripts/README.md +++ b/OracleIdentityGovernance/samples/scripts/README.md @@ -8,4 +8,8 @@ Directory Oracle_EBS_HRMS contains script files for creating a service account i Directory Oracle_EBS_UM contains script files for creating a service account in EBS target For UM -Copyright (c) 2019, 2023 Oracle and/or its affiliates. \ No newline at end of file +## PEOPLESOFT + +Directory PEOPLESOFT contains views definitions for peoplesoft target + +Copyright (c) 2025 Oracle and/or its affiliates. \ No newline at end of file