Database Administration (MOSC)

MOSC Banner

Use dbms_scheduler to gather multiple schema stats

edited Feb 8, 2019 1:38PM in Database Administration (MOSC) 16 commentsAnswered ✓

Hello All,

I am trying to schedule a job using dbms_scheduler which can collect statistics on specific schemas using custom parameters.

I want to use the default maintainence window timings used by  'auto optimizer stats collection' i.e  mon- fri :10pm and sat,sun :6am. So i used schedule_name as 'ORA$AT_WGRP_OS'(window group used by auto stats job).

This is my first time creating a dbms_scheduler job.

Please let me know for any changes/recommmendations needed.

begin

dbms_scheduler.create_job(

job_name => 'GATHER_VENDOR_SCHEMA_STATS_JOB',

job_type => 'PLSQL_BLOCK',

job_action => 'DECLARE

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center