CREATE OR REPLACE TRIGGER nachm_nicht_loeschen
BEFORE DELETE ON City
BEGIN
  IF TO_CHAR(SYSDATE,'HH24:MI')
       BETWEEN '12:00' AND '18:00'
  THEN RAISE_APPLICATION_ERROR
         (-20101,'Unerlaubte Aktion');
  END IF;
END;
/
