Solved

How to know Automatic Optimizer Statistics Collection is enabled?

Posted on 2014-03-04
3
1,949 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
Comment Utility
like is there any data dictionary view through which I can look into it.
0
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 500 total points
Comment Utility
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
Comment Utility
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.

Join & Write a Comment

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now