Hi all,
11g
Aix
We have dataguard configured on our prod primary and physical standby database.
My boss ask me to create a script to email the tech group daily at 8am the status of replication(apply logs).
Since I am using dataguard broker. I will do the script as follows:
===========================
oracle@prodsvr:/home/oracle>dgmgrl
DGMGRL for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - 64bit Production
Copyright (c) 2000, 2009, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys/Manager
Connected.
DGMGRL> show configuration;
Configuration - DGConfig1
Protection Mode: MaxPerformance
Databases:
PROD - Primary database
PRODDR - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL> exit
=========================
How do I save the above logs and email it? (I know how to email already) I just need the logfile.
Thanks,
MK