Disable the automatic funciton of collecting statistics in 10G
After created oracle 10g database,there is an existing job named gather_stats_job which is used to collect the statistics in database level automatically. In default, this job will be actived and executed during the working time from 10:00PM to 6:00AM every Monday to Friday also included the full daytime in weekend. This job fulfil the task by invoked the store procedure named dbms_stats.gather_database_stats_job_proc to collect the statistics. Collecting statistics will bring on some of the contention of internal latch, and collecting statistics inadequately will cause many unexpected problem. So we'd better disable this function in Oracle 10g after database installation.
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> select job_name,state,last_start_date from dba_scheduler_jobs;
JOB_NAME STATE
------------------------------ ---------------
LAST_START_DATE
---------------------------------------------------------------------------
AUTO_SPACE_ADVISOR_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
GATHER_STATS_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
FGR$AUTOPURGE_JOB DISABLED
PURGE_LOG SCHEDULED
22-MAY-08 03.00.00.109000 AM US/EASTERN
SQL> exec dbms_scheduler.disable('GATHER_STATS_JOB');
PL/SQL procedure successfully completed.
SQL> select job_name,state,last_start_date from dba_scheduler_jobs;
JOB_NAME STATE
------------------------------ ---------------
LAST_START_DATE
---------------------------------------------------------------------------
AUTO_SPACE_ADVISOR_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
GATHER_STATS_JOB DISABLED
22-MAY-08 10.00.02.500000 PM -04:00
FGR$AUTOPURGE_JOB DISABLED
PURGE_LOG SCHEDULED
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> select job_name,state,last_start_date from dba_scheduler_jobs;
JOB_NAME STATE
------------------------------ ---------------
LAST_START_DATE
---------------------------------------------------------------------------
AUTO_SPACE_ADVISOR_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
GATHER_STATS_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
FGR$AUTOPURGE_JOB DISABLED
PURGE_LOG SCHEDULED
22-MAY-08 03.00.00.109000 AM US/EASTERN
SQL> exec dbms_scheduler.disable('GATHER_STATS_JOB');
PL/SQL procedure successfully completed.
SQL> select job_name,state,last_start_date from dba_scheduler_jobs;
JOB_NAME STATE
------------------------------ ---------------
LAST_START_DATE
---------------------------------------------------------------------------
AUTO_SPACE_ADVISOR_JOB SCHEDULED
22-MAY-08 10.00.02.500000 PM -04:00
GATHER_STATS_JOB DISABLED
22-MAY-08 10.00.02.500000 PM -04:00
FGR$AUTOPURGE_JOB DISABLED
PURGE_LOG SCHEDULED
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-293581/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Disable Oracle Automatic JobsOracle
- Disable the automatic startup of the Oracle Clusterware (CRS|HAS) softwareOracle
- Oracle 10g Automatic Undo Retention Tuning (zt)Oracle 10g
- Oracle Collecting StatsticsOracle
- Collecting Numbers II
- Managing Optimizer Statistics(轉自ORACLE 10G TUNING GUIDE)Oracle 10gGUIIDE
- 【Statistics】禁用10g的統計資料自動收集功能
- 10g 11g 檢視是否DISABLE CRS和10g 11g LOCAL listener的區別
- Automatic TSPITR in 10G RMAN -A walk Through (Doc ID 335851.1)
- PyCharm debug collecting data...PyCharm
- local_irq_disable和disable_irq的區別
- bypass disable_functionFunction
- disable or 擴充套件套件
- Disable Dynamic DNS updateDNS
- Automatic Manageability Features : Automatic Maintenance Tasks (53)AINaN
- 「SWTR-4」Collecting Coins 題解
- Database StatisticsDatabase
- DELETE STATISTICSdelete
- Automatic Manageability Features : Automatic Workload Repository (52)
- Statistics related viewView
- Time Model Statistics
- oracle之StatisticsOracle
- Import parameter: STATISTICSImport
- Saving Original Statistics and Gathering New Statistics
- SciTech-Mathematics-Probability+Statistics-7 Key Statistics Concepts
- alter database disable thread 2Databasethread
- SciTech-Mathmatics-Probability+Statistics-VI-Statistics:Quantifing Uncertainty + Regression Analysis)AI
- How restore CBO statisticsREST
- Oracle Column Group StatisticsOracle
- Explain for the Statistics of Execution PlanAI
- [PT]Column Histogram StatisticsHistogram
- Statistics and Data Analysis for BioinformaticsORM
- ASM(Automatic Storage Management)ASM
- Collecting The Required Information To Troubleshot ASM/ASMLIB Issues_869526.1UIORMASM
- SciTech-Statistics-英語授課:Business Statistics商務統計
- 關於collecting狀態的分散式懸掛事務分散式
- Automatic Storage Management (ASM)(轉)ASM
- Automatic SQL Tuning 原理SQL