Solved

How to know Automatic Optimizer Statistics Collection is enabled?

Posted on 2014-03-04
3
2,049 Views
Last Modified: 2014-03-05
How to know Automatic Optimizer Statistics Collection is enabled/disabled?
0
Comment
Question by:sakthikumar
  • 2
3 Comments
 

Author Comment

by:sakthikumar
ID: 39905604
like is there any data dictionary view through which I can look into it.
0
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 39905679
if you didn't switch it off, then it's on
and assuming the startup parameter in the pfile/spfile for
STATISTICS_LEVEL = TYPICAL or ALL

you can enable and disable it via dbms_auto_task
http://docs.oracle.com/cd/E25054_01/server.1111/e16638/stats.htm#CIHDGIID

with this query you can see if the 11g job BSLN_MAINTAIN_STATS_JOB is enabled and scheduled

Select owner, job_name, enabled, state, last_start_date, next_run_date, logging_level
FROM SYS.DBA_SCHEDULER_JOBS
where owner = 'SYS'
  and Job_name IN ('BSLN_MAINTAIN_STATS_JOB', 'GATHER_STATS_JOB');

Open in new window


if upgraded from 10g you'll also notice GATHER_STATS_JOB
and this will be disabled
0
 

Author Comment

by:sakthikumar
ID: 39908473
excellent.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to take different types of Oracle backups using RMAN.

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question