?
Solved

How to know Automatic Optimizer Statistics Collection is enabled?

Posted on 2014-03-04
3
Medium Priority
?
2,259 Views
Last Modified: 2014-03-05
How to know Automatic Optimizer Statistics Collection is enabled/disabled?
0
Comment
Question by:sakthikumar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 38

Accepted Solution

by:
Geert Gruwez earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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 shows how to recover a database from a user managed backup
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.
Suggested Courses

762 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