Difference between revisions of "HR.SECURE DML (procedure)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''procedure | HR.SECURE_DML |- |} <pre> PROCEDURE secure_dml IS BEGIN IF TO_CHAR (SYS...) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
− | | ''' | + | | '''Procedure |
| HR.SECURE_DML | | HR.SECURE_DML | ||
− | |||
|} | |} | ||
+ | === Source === | ||
<pre> | <pre> | ||
− | PROCEDURE secure_dml | + | CREATE OR REPLACE PROCEDURE secure_dml |
IS | IS | ||
BEGIN | BEGIN |
Latest revision as of 06:14, 24 June 2010
wikibot[edit]
Procedure | HR.SECURE_DML |
Source[edit]
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;