Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • create a folder in multiple places Linux/Unix
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Database logon trigger issue Oracle
  • How to change hostname in Linux Linux/Unix
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • xargs use Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle

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

  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • column level grant syntax Oracle
  • TRUNCATE Privs Oracle
  • reset Sequence Oracle
  • create user with unlimited quota Oracle
  • refre.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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Jai Shree Ram Oracle
  • Ports used by Oracle Software Oracle
  • Oracle 10g for solaris 10 Oracle
  • Checking SQL Server Version SQL Server
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme