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