Template:SQWareProduction sqwora DbmsStats.ksh help

From Wiki_dbSQWare
Revision as of 16:11, 7 April 2024 by BatchUser (talk | contribs) (Updated by BatchUser)
Jump to: navigation, search
Sourcing sqwora_Global.lib v2024.02 SQWareProduction for Oracle (dbSQWare) ... 

Usage: sqwora_DbmsStats.ksh [-h] -I <instance> [+ options]

DESCRIPTION
   sqwora_DbmsStats.ksh gather statistics with DBMS_STATS
SUPPORT
   Oracle supported versions: 9iR2 <= v <= 21c

PARAMETERS
     -I  instance       : Target instance to gather statistics with DBMS_STATS.
OPTIONS
     -h                 : Display the full usage.
     -s                 : Display samples of usage.
     -U  Users          : Schemas list (all without SYS by default),
                            to gather statistics for SYS, it must be the only one in the list.
     -EU Users          : Schemas list to exclude.
     -Pdb pdb_name      : Set the name of pdb for multitenant.
     -NLS nls_numeric   : Change the value for the SQL parameters NLS_NUMERIC_CHARACTERS default('').
     -PCT estimate_pct  : Set the threshold limit to trigger the reports default(10).
     -BSA block_sample  : Determines the uses of random block sampling or random row sampling default(TRUE).
     -MOP method_opt    : Set preference on global, schema, database or dictionary level default(FOR ALL INDEXED COLUMNS SIZE REPEAT),
                            (FOR ALL COLUMNS SIZE SKEWONLY) for SYS.
     -DEG degree        : Determines the degree of parallelism used for gathering statistics default(1).
     -GRA granularity   : Granularity of statistics to collect default(ALL).
     -CAS cascade       : Determines whether to collect index statistics as part of gathering table statistics default(TRUE).
     -OPT options       : Add any other dbmstats options default(GATHER AUTO),
                            (GATHER) for SYS.
     -FRT return_code   : Force return code value on error.
     -Dist              : For distant connection to database (change $gvsqw_DbaUser to $gvsqw_DistDbaUser@$ORACLE_SID ).
     -AddMail   email   : Email address to add at 'pmexpdba@gmail.com'.
     -SendReport        : Send execution log report.
     -NoMail            : Deactivate sendmail on error to pmexpdba@gmail.com (by default, send on error).
     -Locale    locale  : Force Locale for help display (fr,en).
     -Exec              : Gather statistics (by default, display generated commands).