1.8 Configuring Oracle Trace File Analyzer and Oracle ORAchk/Oracle EXAchk to Use the Same Notification Addresses

Configure notification emails to notify the recepients the results of Oracle ORAchk and Oracle EXAchk compliance checking, or when Oracle Trace File Analyzer detects significant faults.

Use the ahfnotificationaddress option to configure Oracle Trace File Analyzer and Oracle ORAchk/Oracle EXAchk to use the same notification addresses.

  1. Specify a space-delimited list of email addresses.
    # tfactl set ahfnotificationaddress="id1 id2..."

    You use the tfactl set ahfnotificationaddress command to set or update the existing list of email addresses.

    If you specify the email addresses while installing Oracle Autonomous Health Framework, then Oracle Autonomous Health Framework persists those email addresses in the install.properties file. Oracle ORAchk and Oracle EXAchk pick those email addresses from the install.properties file, and then updates the NOTIFICATION_EMAIL property for scheduled jobs. However, if you explicitly specify email addresses while creating jobs, then Oracle ORAchk and Oracle EXAchk override the email addresses in the install.properties file. By default, Oracle Trace File Analyzer does not set notification emails using the email addresses in the install.properties file; instead, you will have to explicitly specify the email addresses.

    # tfactl set ahfnotificationaddress="test-user1@example.com test-user1@example.com"
    Successfully set the AHF Notification Address

    Run the orachk -get NOTIFICATION_EMAIL and exachk -get NOTIFICATION_EMAIL commands to view the list of notification email addresses set for Oracle ORAchk and Oracle EXAchk scheduled jobs.

  2. To get the list of notification emails:
    # tfactl get ahfnotificationaddress

    Fetches and displays the list of notification email IDs from the install.properties file.

    # tfactl get ahfnotificationaddress
    AHF Notification Address : test-user1@example.com test-user1@example.com
  3. To unset notification emails:
    # tfactl unset ahfnotificationaddress

    Removes the notification email IDs from the install.properties file.

    # tfactl unset ahfnotificationaddress
    Successfully unset the AHF Notification Address

1.8.1 Configuring Oracle Trace File Analyzer and Oracle ORAchk/Oracle EXAchk to Use Different Notification Addresses

For Oracle ORAchk/Oracle EXAchk:

Specify a comma-delimited list of email addresses, as follows:
$ orachk –set "NOTIFICATION_EMAIL=some.person@acompany.com,another.person@acompany.com"
$ exachk –set "NOTIFICATION_EMAIL=some.person@acompany.com,another.person@acompany.com"
Optionally, you can specify the name of the profile. If you do not specify, then id=DEFAULT. For example:
$ orachk -id dba -set "NOTIFICATION_EMAIL=some.person@acompany.com,another.person@acompany.com"
$ exachk -id dba -set "NOTIFICATION_EMAIL=some.person@acompany.com,another.person@acompany.com"

For Oracle Trace File Analyzer:

To set the notification email for a specific ORACLE_HOME, include the operating system owner in the command:
$ tfactl set notificationAddress=os_user:email
To set the notification email for any ORACLE_HOME:
$ tfactl set notificationAddress=email