Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • UNderstand and eliminate Latch contention. Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Ports used by Oracle Software Oracle
  • plan10g.sql good Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • Changing the Global Database Name Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • Changing default shell Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • how to find OS block size Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • CPU speed on Linux Linux/Unix

Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry

Posted on 22-Feb-2006 By Admin No Comments on Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry

. $ENV_FILE

echo “Started Analyze Schema of $SCHEMA_NAME at `date +%D-%T`”

$ORACLE_HOME/bin/sqlplus -s <connect / as sysdba

execute dbms_stats.gather_schema_stats( ownname => ‘$SCHEMA_NAME’,

degree => DBMS_STATS.DEFAULT_DEGREE,

cascade => TRUE,

granularity=> ‘ALL’ );

EOF

echo “Ended at `date +%D-%T`”

– Script End

Also, configure cron for execution on every sunday 11.00 PM as following.

00 11 * * 0 /export/home/oracle/oraprocs/analyze_schema.ksh /oracle/app/oracle/oraprocs/ora_SID.env CIF > /export/home/oracle/oraprocs/logs/analyze_schema_CIF.log 2> /export/home/oracle/oraprocs/logs/analyze_schema_CIF.err

Oracle, SQL scripts

Post navigation

Previous Post: Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry
Next Post: avail.sh ( find filesystem spae usage)

Related Posts

  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • Find sort details from Db find_sort.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • configUOCIOTTO.ora Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Directory wise folder wise space usage Linux/Unix
  • age_alert.ksh aging out alert.log Linux/Unix
  • VIvek Encryption Package and Its Usage Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme