--
-- $Id$
--
-- Script containing customer specific sql statements for the ARAI database
-- Omhangen van objecten naar nieuwe groep (kenmerken staan op objsrt niveau, dus gaat goed).

DEFINE thisfile = 'ARAI#58291.SQL'
DEFINE dbuser   = '^ARAI'

SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
WHENEVER SQLERROR EXIT;
SELECT adm.scriptspoolfile('&dbuser', '&thisfile') AS fcltlogfile FROM DUAL;
WHENEVER SQLERROR CONTINUE;
SPOOL &fcltlogfile
SET DEFINE OFF

------ payload begin ------

BEGIN
   FAC.INITSESSION ('NL');
END;
/

UPDATE ins_srtdeel
   SET ins_srtgroep_key = 1041
 WHERE ins_srtdeel_key IN (641, 1261);

UPDATE ins_srtdeel
   SET ins_srtgroep_key = 1061
 WHERE ins_srtdeel_key IN (1001, 1421);

UPDATE ins_srtdeel
   SET ins_srtgroep_key = 1081
 WHERE ins_srtdeel_key IN (1223, 521, 522);

UPDATE ins_srtdeel
   SET ins_srtgroep_key = 1101
 WHERE ins_srtdeel_key IN (1241, 1061, 1041);

UPDATE ins_srtdeel
   SET ins_srtgroep_key = 1141
 WHERE ins_srtdeel_key = 1161;

                                            
------ payload end   ------

SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$', 0); END;
/

COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile