DBAtlas · 데이터베이스 운영 아틀라스

예약 작업 목록 / 상태 조회

Oracle

SELECT job_name, enabled, state, last_start_date, next_run_date
FROM dba_scheduler_jobs
ORDER BY next_run_date;
-- Run history: SELECT job_name, status, actual_start_date, run_duration
--                 FROM dba_scheduler_job_run_details ORDER BY log_date DESC;

dba_scheduler_jobs는 정의된 작업과 상태를, dba_scheduler_job_run_details는 과거 실행의 성공/실패 결과를 보여 준다.

PostgreSQL

SELECT jobid, schedule, command, nodename, active FROM cron.job;
-- Run history:
SELECT jobid, status, return_message, start_time, end_time
FROM cron.job_run_details ORDER BY start_time DESC LIMIT 20;

pg_cron에서 cron.job은 정의된 작업을 나열하고, cron.job_run_details는 각 실행의 상태와 반환 메시지를 보여 준다.

MySQL

SELECT event_schema, event_name, status, interval_value, interval_field, last_executed
FROM information_schema.events
ORDER BY last_executed DESC;

information_schema.events는 정의된 이벤트, 상태(ENABLED/DISABLED), 마지막 실행 시각을 나열한다.

SQL Server

SELECT j.name, j.enabled, h.run_status, h.run_date, h.run_time
FROM msdb.dbo.sysjobs j
LEFT JOIN msdb.dbo.sysjobhistory h ON h.job_id = j.job_id AND h.step_id = 0
ORDER BY h.run_date DESC, h.run_time DESC;

msdb.dbo.sysjobs는 정의된 Agent 작업을, sysjobhistory는 실행 이력과 결과(run_status)를 보여 준다.

MongoDB

# Not applicable: there is no built-in scheduler, so there are no jobs to list. If Atlas Triggers are used, view them in the Atlas UI/API.

Community MongoDB에는 작업 테이블이 없다. Atlas Trigger는 Atlas 인터페이스에서 관리한다.

Redis

# Not applicable: Redis has no concept of scheduled jobs, so there are no jobs to list.

Redis에는 작업 스케줄러가 없으므로 나열할 작업이 없다.

Elasticsearch

GET _slm/policy
GET _ilm/policy
// For Watcher states: GET _watcher/stats  and  GET _watcher/_query/watches

_slm/policy는 스냅샷 정책을, _ilm/policy는 수명 주기 정책을 나열하고, _watcher/stats는 Watcher 실행 상태를 보여 준다.

DBAtlas에서 열기 →