Skip to main content

How to enable or disable debug logging for Oracle backups

This article applies to:

  • Product edition: Phoenix

Overview

This article describes the procedure to enable and disable debug logging for Oracle backups

Enable and disable debug logging for Oracle

Enable debug logging

  1. Login to the Phoenix Oracle Backup Store Server

  2. Open the terminal with Admin rights and Stop the Agent service using the command:
    ​Agent version 6.x.x /etc/init.d/PhoenixBackupStore stop​
    ​Agent version 7x.x systemctl stop Druva-EnterpriseWorkloads

  3. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:
    ​Agent version 6.x.x ps -ef| grep -i Phoenix
    ​Agent version 7x.x ps -ef | grep -i EnterpriseWorkloads
    ​Kill -9 <process id>

  4. Browse to Phoenix.cfg & OraclePBSPlugin.yml to take the backup of the config file
    ​Agent version 6.x.x /etc/Phoenix/ORACLE/Phoenix.cfg and take backup of Phoenix.cfg
    ​Agent Version 7.x.x /etc/Druva/EnterpriseWorkloads/OraclePBSPlugin.yml and take backup of OraclePBSPlugin.yml

  5. Open the file in VI editor and change the debug value from 0 to 9

    Agent Version 6.x.x: Phoenix.cfg change the value from DEBUGLEVEL = 0 to DEBUGLEVEL = 9

    Agent Version 7.x.x: OraclePBSPlugin.yml change the value from debug_level: 0 to debug_level: 9

  6. Save-Quit the changes.

  7. Start Phoenix Agent Client Service and initiate a backup/restore job.
    ​Agent Version 6.x.x:​​/etc/init.d/PhoenixBackupStore start
    ​Agent version 7x.x systemctl start Druva-EnterpriseWorkloads

Disable debug logging

  1. Login to the Phoenix Oracle Backup Store Server.

  2. Open terminal with Admin rights and Stop the Phoenix Agent service using the command:
    ​Agent version 6.x.x /etc/init.d/PhoenixBackupStore stop​
    ​Agent version 7x.x systemctl stop Druva-EnterpriseWorkloads

  3. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:
    ​​Agent version 6.x.x ps -ef| grep -i Phoenix
    ​Agent version 7x.x ps -ef | grep -i EnterpriseWorkloads
    ​Kill -9 <process id>

  4. Browse to Phoenix.cfg & OraclePBSPlugin.yml to take the backup of the config file
    ​Agent version 6.x.x /etc/Phoenix/ORACLE/Phoenix.cfg and take backup of Phoenix.cfg
    ​Agent Version 7.x.x /etc/Druva/EnterpriseWorkloads/OraclePBSPlugin.yml and take backup of OraclePBSPlugin.yml

  5. Open the file in VI editor and change the debug value from 9 to 0

    Agent Version 6.x.x: Phoenix.cfg change the value from DEBUGLEVEL = 9 to DEBUGLEVEL = 0

    Agent Version 7.x.x: OraclePBSPlugin.yml change the value from debug_level: 9 to debug_level: 0

  6. Save-Quit the changes.

  7. Start Phoenix Agent Client Service and initiate a backup/restore job.
    ​Agent Version 6.x.x:​​/etc/init.d/PhoenixBackupStore start
    ​Agent version 7x.x systemctl start Druva-EnterpriseWorkloads
    ​

Upload files

After the job completes or terminates, zip and upload following files to the case:

  • Zip of /var/log/Phoenix/ORACLE or /var/log/Druva/EnterpriseWorkloads for Phoenix Backup Store logs.

  • RMAN logs from the location:
    ​Agent Version 6.x.x/var/log/Phoenix/ORACLE/backup/<backupset_id>
    ​Agent version 7x.x
    ​/var/log/Druva/EnterpriseWorkloads/oracle-pbs/backup/<backupsetid>/<jobid>/

  • System logs from /var/log/syslog.

  • Job logs of the failed or terminated job.See also

Did this answer your question?