Difference between revisions of "Template:SQWareProduction sqwora DbmsStats.ksh help"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | Sourcing sqwora_Global.lib | + | Sourcing sqwora_Global.lib v2020.01 SQWareProduction for Oracle (dbSQWare) ... |
Usage: sqwora_DbmsStats.ksh [-h] -I <instance> [+ options] | Usage: sqwora_DbmsStats.ksh [-h] -I <instance> [+ options] | ||
Line 7: | Line 7: | ||
sqwora_DbmsStats.ksh gather statistics with DBMS_STATS | sqwora_DbmsStats.ksh gather statistics with DBMS_STATS | ||
SUPPORT | SUPPORT | ||
− | Oracle supported versions: 9iR2 <= v <= | + | Oracle supported versions: 9iR2 <= v <= 20c |
PARAMETERS | PARAMETERS | ||
− | -I instance : Target instance | + | -I instance : Target instance to gather statistics with DBMS_STATS. |
OPTIONS | OPTIONS | ||
-h help : Display the full usage. | -h help : Display the full usage. | ||
-s : Display samples of usage. | -s : Display samples of usage. | ||
-U Users : Schemas list (all without SYS by default), | -U Users : Schemas list (all without SYS by default), | ||
− | to gather SYS | + | to gather statistics for SYS, it must be the only one in the list. |
-EU Users : Schemas list to exclude. | -EU Users : Schemas list to exclude. | ||
-Pdb pdb_name : pdb_name for multitenant. | -Pdb pdb_name : pdb_name for multitenant. | ||
− | -NLS nls_numeric : | + | -NLS nls_numeric : default(''). |
− | -PCT estimate_pct : | + | -PCT estimate_pct : default(10). |
− | -BSA block_sample : | + | -BSA block_sample : default(TRUE). |
− | -MOP method_opt : | + | -MOP method_opt : default(FOR ALL INDEXED COLUMNS SIZE REPEAT), |
(FOR ALL COLUMNS SIZE SKEWONLY) for SYS. | (FOR ALL COLUMNS SIZE SKEWONLY) for SYS. | ||
− | -DEG degree : | + | -DEG degree : default(1). |
− | -GRA granularity : | + | -GRA granularity : default(ALL). |
− | -CAS cascade : | + | -CAS cascade : default(TRUE). |
− | -OPT options : | + | -OPT options : default(GATHER AUTO), |
(GATHER) for SYS. | (GATHER) for SYS. | ||
-FRT return_code : Force return code value on error. | -FRT return_code : Force return code value on error. | ||
-Dist : For distant connection to database (change $gvsqw_DbaUser to $gvsqw_DistDbaUser@$ORACLE_SID ). | -Dist : For distant connection to database (change $gvsqw_DbaUser to $gvsqw_DistDbaUser@$ORACLE_SID ). | ||
− | -AddMail email : Email | + | -AddMail email : Email address to add at 'pmexpdba@gmail.com'. |
-SendReport : Send execution log report. | -SendReport : Send execution log report. | ||
− | -NoMail : | + | -NoMail : Deactivate sendmail on error to pmexpdba@gmail.com (by default, send on error). |
-Locale locale : Force Locale for help display (fr,en). | -Locale locale : Force Locale for help display (fr,en). | ||
-Exec : Gather statistics (default, display generated commands). | -Exec : Gather statistics (default, display generated commands). | ||
</pre> | </pre> |
Revision as of 18:36, 8 March 2020
Sourcing sqwora_Global.lib v2020.01 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 <= 20c PARAMETERS -I instance : Target instance to gather statistics with DBMS_STATS. OPTIONS -h help : 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 : pdb_name for multitenant. -NLS nls_numeric : default(''). -PCT estimate_pct : default(10). -BSA block_sample : default(TRUE). -MOP method_opt : default(FOR ALL INDEXED COLUMNS SIZE REPEAT), (FOR ALL COLUMNS SIZE SKEWONLY) for SYS. -DEG degree : default(1). -GRA granularity : default(ALL). -CAS cascade : default(TRUE). -OPT 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 (default, display generated commands).