What is the recommended interval at which to run statspack
snapshots, and why?

Answer Posted / shiva

After we have verified that STATSPACK is installed and working, we can schedule automatic data collection. By using the statsauto.sql script we can automatically schedule an hourly data collection for STATSPACK. The statsauto.sql script contains the following directive:

SQL> execute dbms_job.submit(:jobno, 'statspack.snap;',
trunc(sysdate+1/24,'HH'), 'trunc(SYSDATE+1/24,''HH'')', TRUE, :instno);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you troubleshoot errors in a sql server agent job? : sql server DBA

569


What are the different types of upgrades that can be performed in sql server? : sql server DBA

685


What are the different types of database compression introduced in sql server 2008? : sql server DBA

570


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1591


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

3946






What authentication modes does sql server support? : sql server DBA

701


What are the commands used in dcl? : sql server DBA

581


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

3315


How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?

2037


What is replication? : sql server DBA

630


Why does Oracle not permit the use of PCTUSED with indexes?

2333


Where do you find the default index fill factor and how to change it? : sql server DBA

556


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database? : sql server DBA

660


What is the default fill factor value? : sql server DBA

576


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

1239