--  CWTD#18224
SET ECHO ON
SPOOL xCWTD18224.lst
PROMPT $Revision$

/*
Herstel mislukte persoonsimport van CWTD
Door een fout importbestand zijn alle personen inactief gemaakt.
Door een goed importbestand zijn ze weer 'herwerkt' maar ondertussen is oslogin wel gewist
Uit een iets oudere database is met onderstaand statement het daaronderstaand script
gegenereerd

SELECT    'update prs_perslid set prs_perslid_oslogin = '''
       || prs_perslid_oslogin
       || ''' where prs_perslid_oslogin is null and prs_perslid_key = '
       || TO_CHAR (prs_perslid_key)
       || ';'
  FROM prs_perslid
 WHERE prs_perslid_oslogin IS NOT NULL
*/

update prs_perslid set prs_perslid_oslogin = '_GAST' where prs_perslid_oslogin is null and prs_perslid_key = 3;
update prs_perslid set prs_perslid_oslogin = '_FACILITOR' where prs_perslid_oslogin is null and prs_perslid_key = 4;
update prs_perslid set prs_perslid_oslogin = 'PROD' where prs_perslid_oslogin is null and prs_perslid_key = 41;
update prs_perslid set prs_perslid_oslogin = 'UEXA151' where prs_perslid_oslogin is null and prs_perslid_key = 82;
update prs_perslid set prs_perslid_oslogin = 'UMXA338' where prs_perslid_oslogin is null and prs_perslid_key = 85;
update prs_perslid set prs_perslid_oslogin = 'USXM488' where prs_perslid_oslogin is null and prs_perslid_key = 101;
update prs_perslid set prs_perslid_oslogin = 'UBXA131' where prs_perslid_oslogin is null and prs_perslid_key = 109;
update prs_perslid set prs_perslid_oslogin = 'UPXA088' where prs_perslid_oslogin is null and prs_perslid_key = 112;
update prs_perslid set prs_perslid_oslogin = 'USXJ159' where prs_perslid_oslogin is null and prs_perslid_key = 115;
update prs_perslid set prs_perslid_oslogin = 'UMXB234' where prs_perslid_oslogin is null and prs_perslid_key = 128;
update prs_perslid set prs_perslid_oslogin = 'UKXS309' where prs_perslid_oslogin is null and prs_perslid_key = 141;
update prs_perslid set prs_perslid_oslogin = 'UMXB575' where prs_perslid_oslogin is null and prs_perslid_key = 156;
update prs_perslid set prs_perslid_oslogin = 'UEXB198' where prs_perslid_oslogin is null and prs_perslid_key = 159;
update prs_perslid set prs_perslid_oslogin = 'UBXB265' where prs_perslid_oslogin is null and prs_perslid_key = 161;
update prs_perslid set prs_perslid_oslogin = 'UMXB578' where prs_perslid_oslogin is null and prs_perslid_key = 173;
update prs_perslid set prs_perslid_oslogin = 'UMXS658' where prs_perslid_oslogin is null and prs_perslid_key = 179;
update prs_perslid set prs_perslid_oslogin = 'UNXB173' where prs_perslid_oslogin is null and prs_perslid_key = 182;
update prs_perslid set prs_perslid_oslogin = 'UMXL389' where prs_perslid_oslogin is null and prs_perslid_key = 209;
update prs_perslid set prs_perslid_oslogin = 'URXC386' where prs_perslid_oslogin is null and prs_perslid_key = 220;
update prs_perslid set prs_perslid_oslogin = 'UWXD042' where prs_perslid_oslogin is null and prs_perslid_key = 241;
update prs_perslid set prs_perslid_oslogin = 'UMXO138' where prs_perslid_oslogin is null and prs_perslid_key = 256;
update prs_perslid set prs_perslid_oslogin = 'UJXK258' where prs_perslid_oslogin is null and prs_perslid_key = 261;
update prs_perslid set prs_perslid_oslogin = 'UDXD248' where prs_perslid_oslogin is null and prs_perslid_key = 263;
update prs_perslid set prs_perslid_oslogin = 'UJXD565' where prs_perslid_oslogin is null and prs_perslid_key = 271;
update prs_perslid set prs_perslid_oslogin = 'UAXE147' where prs_perslid_oslogin is null and prs_perslid_key = 287;
update prs_perslid set prs_perslid_oslogin = 'UMXG470' where prs_perslid_oslogin is null and prs_perslid_key = 306;
update prs_perslid set prs_perslid_oslogin = 'URXG297' where prs_perslid_oslogin is null and prs_perslid_key = 308;
update prs_perslid set prs_perslid_oslogin = 'EGROOT' where prs_perslid_oslogin is null and prs_perslid_key = 322;
update prs_perslid set prs_perslid_oslogin = 'UOXH042' where prs_perslid_oslogin is null and prs_perslid_key = 341;
update prs_perslid set prs_perslid_oslogin = 'UAXH401' where prs_perslid_oslogin is null and prs_perslid_key = 352;
update prs_perslid set prs_perslid_oslogin = 'UYXH024' where prs_perslid_oslogin is null and prs_perslid_key = 356;
update prs_perslid set prs_perslid_oslogin = 'UMXH397' where prs_perslid_oslogin is null and prs_perslid_key = 358;
update prs_perslid set prs_perslid_oslogin = 'UFXJ028' where prs_perslid_oslogin is null and prs_perslid_key = 381;
update prs_perslid set prs_perslid_oslogin = 'UAXR406' where prs_perslid_oslogin is null and prs_perslid_key = 384;
update prs_perslid set prs_perslid_oslogin = 'UEXK075' where prs_perslid_oslogin is null and prs_perslid_key = 399;
update prs_perslid set prs_perslid_oslogin = 'CWTOPVO' where prs_perslid_oslogin is null and prs_perslid_key = 401;
update prs_perslid set prs_perslid_oslogin = 'UBXK107' where prs_perslid_oslogin is null and prs_perslid_key = 407;
update prs_perslid set prs_perslid_oslogin = 'UAXK208' where prs_perslid_oslogin is null and prs_perslid_key = 411;
update prs_perslid set prs_perslid_oslogin = 'HKOSTER' where prs_perslid_oslogin is null and prs_perslid_key = 428;
update prs_perslid set prs_perslid_oslogin = 'UCXP275' where prs_perslid_oslogin is null and prs_perslid_key = 434;
update prs_perslid set prs_perslid_oslogin = 'UAXK209' where prs_perslid_oslogin is null and prs_perslid_key = 436;
update prs_perslid set prs_perslid_oslogin = 'UMXK269' where prs_perslid_oslogin is null and prs_perslid_key = 437;
update prs_perslid set prs_perslid_oslogin = 'UEXK077' where prs_perslid_oslogin is null and prs_perslid_key = 442;
update prs_perslid set prs_perslid_oslogin = 'ULXD192' where prs_perslid_oslogin is null and prs_perslid_key = 448;
update prs_perslid set prs_perslid_oslogin = 'UJXL418' where prs_perslid_oslogin is null and prs_perslid_key = 457;
update prs_perslid set prs_perslid_oslogin = 'UJXL419' where prs_perslid_oslogin is null and prs_perslid_key = 464;
update prs_perslid set prs_perslid_oslogin = 'UTXM343' where prs_perslid_oslogin is null and prs_perslid_key = 504;
update prs_perslid set prs_perslid_oslogin = 'UKXN070' where prs_perslid_oslogin is null and prs_perslid_key = 527;
update prs_perslid set prs_perslid_oslogin = 'UMXH400' where prs_perslid_oslogin is null and prs_perslid_key = 531;
update prs_perslid set prs_perslid_oslogin = 'UBXP155' where prs_perslid_oslogin is null and prs_perslid_key = 558;
update prs_perslid set prs_perslid_oslogin = 'UJXR563' where prs_perslid_oslogin is null and prs_perslid_key = 570;
update prs_perslid set prs_perslid_oslogin = 'UMXS922' where prs_perslid_oslogin is null and prs_perslid_key = 620;
update prs_perslid set prs_perslid_oslogin = 'UMXS664' where prs_perslid_oslogin is null and prs_perslid_key = 651;
update prs_perslid set prs_perslid_oslogin = 'UMXT258' where prs_perslid_oslogin is null and prs_perslid_key = 655;
update prs_perslid set prs_perslid_oslogin = 'UAXT238' where prs_perslid_oslogin is null and prs_perslid_key = 660;
update prs_perslid set prs_perslid_oslogin = 'USXV131' where prs_perslid_oslogin is null and prs_perslid_key = 676;
update prs_perslid set prs_perslid_oslogin = 'UEXB204' where prs_perslid_oslogin is null and prs_perslid_key = 678;
update prs_perslid set prs_perslid_oslogin = 'UFXW037' where prs_perslid_oslogin is null and prs_perslid_key = 683;
update prs_perslid set prs_perslid_oslogin = 'UIXV045' where prs_perslid_oslogin is null and prs_perslid_key = 684;
update prs_perslid set prs_perslid_oslogin = 'UWXV016' where prs_perslid_oslogin is null and prs_perslid_key = 695;
update prs_perslid set prs_perslid_oslogin = 'UAXV191' where prs_perslid_oslogin is null and prs_perslid_key = 706;
update prs_perslid set prs_perslid_oslogin = 'UWXV017' where prs_perslid_oslogin is null and prs_perslid_key = 709;
update prs_perslid set prs_perslid_oslogin = 'UPXB301' where prs_perslid_oslogin is null and prs_perslid_key = 721;
update prs_perslid set prs_perslid_oslogin = 'UHXJ032' where prs_perslid_oslogin is null and prs_perslid_key = 722;
update prs_perslid set prs_perslid_oslogin = 'UMXW255' where prs_perslid_oslogin is null and prs_perslid_key = 725;
update prs_perslid set prs_perslid_oslogin = 'UBXZ022' where prs_perslid_oslogin is null and prs_perslid_key = 751;
update prs_perslid set prs_perslid_oslogin = 'SPARQ' where prs_perslid_oslogin is null and prs_perslid_key = 801;
update prs_perslid set prs_perslid_oslogin = 'EVENTS' where prs_perslid_oslogin is null and prs_perslid_key = 1201;
update prs_perslid set prs_perslid_oslogin = 'UVXB168' where prs_perslid_oslogin is null and prs_perslid_key = 1263;
update prs_perslid set prs_perslid_oslogin = 'KEYTOURS' where prs_perslid_oslogin is null and prs_perslid_key = 1301;
update prs_perslid set prs_perslid_oslogin = 'RECEPTIE' where prs_perslid_oslogin is null and prs_perslid_key = 1441;
update prs_perslid set prs_perslid_oslogin = 'DENHAAG' where prs_perslid_oslogin is null and prs_perslid_key = 1621;
update prs_perslid set prs_perslid_oslogin = 'UMXP591' where prs_perslid_oslogin is null and prs_perslid_key = 2475;
update prs_perslid set prs_perslid_oslogin = '_FACILITYMANAGEMENT' where prs_perslid_oslogin is null and prs_perslid_key = 2521;
update prs_perslid set prs_perslid_oslogin = 'FACILITY' where prs_perslid_oslogin is null and prs_perslid_key = 2581;
update prs_perslid set prs_perslid_oslogin = 'UDXM606' where prs_perslid_oslogin is null and prs_perslid_key = 2627;
update prs_perslid set prs_perslid_oslogin = 'UMXG765' where prs_perslid_oslogin is null and prs_perslid_key = 2761;
update prs_perslid set prs_perslid_oslogin = 'UDDJ024' where prs_perslid_oslogin is null and prs_perslid_key = 2781;
update prs_perslid set prs_perslid_oslogin = 'UPXR231' where prs_perslid_oslogin is null and prs_perslid_key = 2980;
update prs_perslid set prs_perslid_oslogin = 'UJXG860' where prs_perslid_oslogin is null and prs_perslid_key = 3069;

commit;

SPOOL OFF
