Files
Customer/onces/AA/RABO/RABO#67420.sql
2021-06-29 18:53:09 +00:00

48 lines
1.1 KiB
SQL

--
-- $Id$
--
-- Script om de conditiescore opnieuw te berekennen voor aantal Gebreksmeldingen/Assets die ten onrechte afgemeld waren
DEFINE thisfile = 'RABO#67420.SQL'
DEFINE dbuser = 'RABO'
SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
WHENEVER SQLERROR CONTINUE;
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
SPOOL &fcltlogfile
WHENEVER SQLERROR EXIT;
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
WHENEVER SQLERROR CONTINUE;
PROMPT &fcltcusterr
SET DEFINE OFF
------ payload begin ------
-- Per melding conditiescore-bepaling opnieuw aftrappen
DECLARE
v_errormsg VARCHAR (200);
v_errorhint VARCHAR (200);
BEGIN
cnd.process_mjb_score_effects (126395);
cnd.process_mjb_score_effects (131969);
cnd.process_mjb_score_effects (131971);
END;
/
------ 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