Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ releases/*
temp/*
#For IMDone Atom.io plugin
.imdone/*
Sandbox/test1.tst
22 changes: 22 additions & 0 deletions source/jobs/logger_unset_prefs_by_scope.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
declare
l_count pls_integer;
l_job_name user_scheduler_jobs.job_name%type := 'LOGGER_UNSET_PREFS_BY_SCOPE';
begin

select count(1)
into l_count
from user_scheduler_jobs
where job_name = l_job_name;

if l_count = 0 then
dbms_scheduler.create_job(
job_name => l_job_name,
job_type => 'PLSQL_BLOCK',
job_action => 'begin logger.unset_scope_level; end; ',
start_date => systimestamp,
repeat_interval => 'FREQ=HOURLY; BYHOUR=1',
enabled => TRUE,
comments => 'Clears expired logger prefs by scope');
end if;
end;
/
Loading