User Tools

Site Tools


dba:oracle:scripts:check_remote_oracle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
check_remote_oracle [2013/10/10 17:03] – [Testing] dodgeroracle:check_remote_oracle [2018/04/17 08:43] – ↷ Page moved from check_remote_oracle to oracle:check_remote_oracle dodger
Line 26: Line 26:
 grant CONNECT, SELECT_CATALOG_ROLE to "NAGIOS" ; grant CONNECT, SELECT_CATALOG_ROLE to "NAGIOS" ;
 </code> </code>
 +
 +Control specific grants:
 +  * SGA:
 +<code sql>
 +GRANT SELECT ON SYS.V_$SGASTAT TO VOXELADMIN ;
 +</code>
 +
 +
  
 For a better understand of the usage, this script will do something like: For a better understand of the usage, this script will do something like:
Line 176: Line 184:
 <code SQL> <code SQL>
 SELECT * FROM V$DATAGUARD_STATS WHERE NAME LIKE '%lag' ; SELECT * FROM V$DATAGUARD_STATS WHERE NAME LIKE '%lag' ;
 +</code>
 +
 +
 +==== --redogen ====
 +Daily REDO generation statistics.
 +Something like that:
 +<code SQL>
 +SELECT A.DAY, Round(A.COUNT#*B.AVG#/1024/1024) Daily_Avg_Mb
 +FROM
 +    (
 +    SELECT To_Char(First_Time,'YYYY-MM-DD') DAY, COUNT(1) COUNT#, MIN(RECID) MIN#, MAX(RECID) MAX#
 +    FROM v$log_history
 +    GROUP BY To_Char(First_Time,'YYYY-MM-DD')
 +    ORDER BY 1 DESC
 +    ) A,
 +    (
 +    SELECT Avg(BYTES) AVG#
 +    FROM v$log
 +    ) B
 +    ORDER BY DAY
 +/
 </code> </code>
  
dba/oracle/scripts/check_remote_oracle.txt · Last modified: 2023/01/31 08:28 by dodger