Site icon EasyOraDBA

Calculating Network Bandwidth Required for Data Guard Log shipping

Before creating a Dataguard setup, one of the prerequisite is to calculate the additional network bandwidth required for shipping the logs from primary site to standby site.
The SQL query below shows the network bandwidth required in Mbps to ship the logs. It shows total Mbps required to ship the logs for a day, max,min and avg Mbps required to ship the logs for an hour. The formula used in query is quite simple (just the conversion of an hour into seconds and bytes into bits and 30% network overhead).

SELECT DT,
SUM(RB*8/3600000000*1.3) TOTAL_Mbps_REQ_FOR_A_DAY,
MIN(RB*8/3600000000*1.3) MIN_Mbps_REQ_FOR_AN_HOUR,
MAX(RB*8/3600000000*1.3) MAX_Mbps_REQ_FOR_AN_HOUR ,
AVG(RB*8/3600000000*1.3) AVG_Mbps_REQ_FOR_AN_HOUR
FROM
(
SELECT TRUNC (COMPLETION_TIME) DT,
TO_CHAR (COMPLETION_TIME,’HH24′) HH,
SUM(BLOCKS*BLOCK_SIZE) RB
FROM
V$ARCHIVED_LOG
WHERE COMPLETION_TIME > SYSDATE-5
AND DEST_ID=1
GROUP BY TRUNC(COMPLETION_TIME),
TO_CHAR (COMPLETION_TIME, ‘HH24’)
)
GROUP BY DT;

Exit mobile version