新聞中心
本文主要介紹的是Oracle透明網(wǎng)關(guān)在主動(dòng)修改人力數(shù)據(jù)庫中人員同步的JOB的相關(guān)內(nèi)容的介紹,本文是以相關(guān)代碼的方式來引出Oracle透明網(wǎng)關(guān)在主動(dòng)修改人力數(shù)據(jù)庫中人員同步的JOB的實(shí)際操作內(nèi)容。

成都創(chuàng)新互聯(lián)自2013年起,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢想脫穎而出為使命,1280元吉林做網(wǎng)站,已為上家服務(wù),為吉林各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108
/*----------------同步組織機(jī)構(gòu)------------------- */
刪除所有的組織機(jī)構(gòu)數(shù)據(jù)
- delete eip_sys_department;
插入從人力資源數(shù)據(jù)庫獲得的數(shù)據(jù)
- insert into eip_sys_department
- select distinct section_no||dept_no,section_no,
section,dept_no,dept- from pubpeople@HR_51_PROD.REGRESS.RDBMS.DEV.US.
Oracle.COM- where dept_no is not null;
- insert into eip_sys_department
(id,sectionid,section,deptid,dept)
values('23234','23','天聯(lián)公司','234','經(jīng)營部');
- insert into eip_sys_department
(id,sectionid,section,deptid,dept)
values('23235','23','天聯(lián)公司','235','人力資源部');
- insert into eip_sys_department
(id,sectionid,section,deptid,dept)
values('23236','23','天聯(lián)公司','236','項(xiàng)目部');
- insert into eip_sys_department
(id,sectionid,section,deptid,dept)
values('23238','23','天聯(lián)公司','238','業(yè)務(wù)部');
- insert into eip_sys_department
(id,sectionid,section,deptid,dept)
values('23239','23','天聯(lián)公司','239','綜合部');
提交
- commit;
/*----------------同步組織機(jī)構(gòu)完畢-------------------*/
/*----------------同步人員信息-------------------*/
/*
同步信息分成三步
1、刪除掉EIP中院號(hào)為“g”開頭,并且在人力資源數(shù)據(jù)庫中不存在的數(shù)據(jù)
2、更新EIP和人力資源中院號(hào)相同的人員信息
3、增加在人力資源中存在,在EIP中不存在的人員信息
*/
--刪除在EIP中存在,人力資源中不存在的
- delete from eip_sys_user t
- where username like 'g____%'
- and not exists(
- select 1 from pubpeople@HR_51_PROD.REGRESS.
RDBMS.DEV.US.Oracle.COM pp- where 'g'||pp.user_id=t.username) and HRUSER='y';
以上的相關(guān)內(nèi)容就是對Oracle透明網(wǎng)關(guān)的部分內(nèi)容的介紹,望你能有所收獲。
本文標(biāo)題:Oracle透明網(wǎng)關(guān)如何修改人力數(shù)據(jù)庫
標(biāo)題鏈接:http://www.5511xx.com/article/djeeghp.html


咨詢
建站咨詢
