Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to know Automatic Optimizer Statistics Collection is enabled?

Posted on 2014-03-04
3
Medium Priority
?
2,368 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

604 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