自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle透明網(wǎng)關(guān)如何修改人力數(shù)據(jù)庫

數(shù)據(jù)庫 Oracle
我們今天要一起討論的是Oracle透明網(wǎng)關(guān)在主動修改人力數(shù)據(jù)庫中人員同步的JOB的相關(guān)內(nèi)容,下面讓我們一起分享吧!

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

/*----------------同步組織機構(gòu)------------------- */

刪除所有的組織機構(gòu)數(shù)據(jù)

 

  1. delete eip_sys_department; 

插入從人力資源數(shù)據(jù)庫獲得的數(shù)據(jù)

 

  1. insert into eip_sys_department  
  2. select distinct section_no||dept_no,section_no,
    section,dept_no,dept  
  3. from pubpeople@HR_51_PROD.REGRESS.RDBMS.DEV.US.
    Oracle.COM  
  4. where dept_no is not null;  
  5. insert into eip_sys_department 
    (id,sectionid,section,deptid,dept)  

 

values('23234','23','天聯(lián)公司','234','經(jīng)營部');

 

  1. insert into eip_sys_department 
    (id,sectionid,section,deptid,dept) 

values('23235','23','天聯(lián)公司','235','人力資源部');

 

  1. insert into eip_sys_department 
    (id,sectionid,section,deptid,dept) 

values('23236','23','天聯(lián)公司','236','項目部');

 

  1. insert into eip_sys_department
     (id,sectionid,section,deptid,dept) 

values('23238','23','天聯(lián)公司','238','業(yè)務(wù)部');

 

  1. insert into eip_sys_department 
    (id,sectionid,section,deptid,dept) 

values('23239','23','天聯(lián)公司','239','綜合部');

提交

 

  1. commit; 

/*----------------同步組織機構(gòu)完畢-------------------*/

/*----------------同步人員信息-------------------*/

/*

同步信息分成三步

1、刪除掉EIP中院號為“g”開頭,并且在人力資源數(shù)據(jù)庫中不存在的數(shù)據(jù)

2、更新EIP和人力資源中院號相同的人員信息

3、增加在人力資源中存在,在EIP中不存在的人員信息

*/

--刪除在EIP中存在,人力資源中不存在的

 

  1. delete from eip_sys_user t  
  2. where username like 'g____%'  
  3. and not exists(  
  4. select 1 from pubpeople@HR_51_PROD.REGRESS.
    RDBMS.DEV.US.Oracle.COM pp  
  5. where 'g'||pp.user_id=t.username) and HRUSER='y';  

 

以上的相關(guān)內(nèi)容就是對Oracle透明網(wǎng)關(guān)的部分內(nèi)容的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle 數(shù)據(jù)庫的并行執(zhí)行的實際操作
  2. Oracle RAC配置中應(yīng)注意的問題
  3. Oracle 刪除后重新安裝的具體方法
  4. Oracle內(nèi)存結(jié)構(gòu)研究的相關(guān)內(nèi)容介紹
  5. Oracle rman命令中常用命令總結(jié)備忘
責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-07-14 17:26:16

SQL Server透

2011-05-26 14:18:49

Oracle數(shù)據(jù)庫字段屬性

2010-04-06 14:58:38

Oracle透明網(wǎng)關(guān)

2010-04-19 16:01:54

2010-05-04 11:58:38

Oracle數(shù)據(jù)庫

2010-04-14 13:14:46

Oracle數(shù)據(jù)庫

2011-05-24 14:55:01

Oracle數(shù)據(jù)庫

2023-09-05 08:40:57

刪除數(shù)據(jù)庫Oracle

2011-04-12 10:59:46

Oracle數(shù)據(jù)庫

2009-11-20 14:08:39

Oracle數(shù)據(jù)庫備份

2011-04-13 14:58:16

Oracle數(shù)據(jù)庫刪除

2011-05-17 14:34:24

2011-05-19 13:25:12

Oracle數(shù)據(jù)庫碎片

2011-05-26 12:54:31

數(shù)據(jù)庫數(shù)據(jù)庫名

2011-08-02 17:06:29

Oracle遠(yuǎn)程數(shù)據(jù)庫創(chuàng)建DB Link

2023-09-01 07:30:59

2010-04-29 11:53:42

Oracle數(shù)據(jù)庫

2010-05-05 14:44:50

Oracle數(shù)據(jù)庫

2011-07-18 14:00:29

RailsOracle

2011-08-09 14:54:01

OracleDATABASE LI
點贊
收藏

51CTO技術(shù)棧公眾號