first version with getops working
This commit is contained in:
parent
434b1713a1
commit
0243024b96
@ -152,11 +152,11 @@ usage()
|
||||
-p
|
||||
Check remote database for Soft/Hard parse ratios
|
||||
-b
|
||||
Check remote database for tablespace capacity in ORACLE_SID
|
||||
Check remote database for ALL tablespaces capacity
|
||||
-u
|
||||
Check remote database for UNDO tablespace capacity in ORACLE_SID
|
||||
Check remote database for UNDO tablespace capacity
|
||||
-f
|
||||
Check remote database for FLASH_RECOVERY_AREA capacity in ORACLE_SID
|
||||
Check remote database for FLASH_RECOVERY_AREA capacity
|
||||
-d
|
||||
Check remote database for diskgroup capacity in ORACLE_ASM_SID (Tipically +ASM1/2...)
|
||||
-a
|
||||
@ -1412,8 +1412,7 @@ select
|
||||
( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) +
|
||||
( select sum(bytes)/1024/1024 redo_size from sys.v_\\\$log ) +
|
||||
( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v\\\$controlfile) TOTAL_MB
|
||||
from
|
||||
dual;
|
||||
from dual
|
||||
/"
|
||||
;;
|
||||
"redogen" )
|
||||
@ -1729,7 +1728,8 @@ while getopts "H:U:S:W:C:tdloscpbugfrhkaDF" arg; do
|
||||
;;
|
||||
# b tablespace
|
||||
b)
|
||||
COMMAND="tablespace"
|
||||
#COMMAND="tablespace"
|
||||
COMMAND="alltablespacesspace"
|
||||
;;
|
||||
# u undo
|
||||
u)
|
||||
@ -1883,7 +1883,6 @@ case "${COMMAND}" in
|
||||
RES=$?
|
||||
;;
|
||||
"dgstats")
|
||||
# dataguard_stats
|
||||
dataguard_stats_new
|
||||
RES=$?
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user