Skip to Main Content
Oracle PL/SQL for DBAs
book

Oracle PL/SQL for DBAs

by Arup Nanda, Steven Feuerstein
October 2005
Intermediate to advanced content levelIntermediate to advanced
454 pages
14h 44m
English
O'Reilly Media, Inc.
Content preview from Oracle PL/SQL for DBAs

Disabling and Enabling Windows

Instead of dropping a window, you may want to disable it so that it will never open automatically. To disable a window, use the procedure DISABLE, as shown here.

    BEGIN
       DBMS_SCHEDULER.disable (NAME => 'window1');
    END;

If the window named window1 is currently open, this operation will fail. To forcibly disable a window, you must use the FORCE parameter as follows:

    BEGIN
       DBMS_SCHEDULER.disable (NAME => 'window1', FORCE=>TRUE);
    END;

This will not close the currently open window, but it will force the window not to open in the future.

Similarly, to enable a disabled window, use the ENABLE procedure :

    BEGIN
       DBMS_SCHEDULER.enable (NAME => 'window1');
    END;

Note that the ENABLE and DISABLE procedures shown here are the same ENABLE/DISABLE procedures used for other Scheduler objects, such as jobs, schedules, and programs.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle PL/SQL Best Practices

Oracle PL/SQL Best Practices

Steven Feuerstein
Expert Oracle PL/SQL

Expert Oracle PL/SQL

Ron Hardman, Michael McLaughlin
Oracle PL/SQL For Dummies

Oracle PL/SQL For Dummies

Michael Rosenblum, Paul Dorsey

Publisher Resources

ISBN: 0596005873Supplemental ContentErrata Page