Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

HR SECURE_DML (procedure)

RSS
Modified on 2011/08/27 12:09 by wikibot Categorized as Uncategorized

wikibot

ProcedureHR.SECURE_DML

Source

CREATE OR REPLACE PROCEDURE secure_dml
IS
BEGIN
  IF TO_CHAR (SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AND '18:00'
        OR TO_CHAR (SYSDATE, 'DY') IN ('SAT', 'SUN') THEN
	RAISE_APPLICATION_ERROR (-20205,
		'You may only make changes during normal office hours');
  END IF;
END secure_dml;

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.