# $Header$ # # *************************************************************************** # $Copyright: Copyright (c) 2022 Veritas Technologies LLC. All rights reserved $ # *************************************************************************** # # The following settings are used by NetBackup to backup/restore a DB2 database. # # Reminders: # 1) The specified policy must have a type of "DB2". # 2) The specified schedule must be defined for this policy. # 3) The DB2 database host must be entered as a client for this policy. # DATABASE SAMPLE OBJECTTYPE DATABASE POLICY DB2_DB_Policy SCHEDULE Default-Application-Backup ENDOPER # # The following settings are used by NetBackup to backup/restore DB2 log files. # Reminders: # 1) DB2 transcation logs can be backed up/restored using either # (a) DB2 User Exit Program # The specified policy must have a type of "Standard" (for UNIX DB2 # host) or "MS-Windows" (for Windows DB2 host). # # (b) LOGARCHMETH1 can be configured to use NetBackup. # (When LOGARCHMETH1 = "VENDOR:NetBackup for DB2 agent") # This option is possible only for versions 8.1.2 and above. # The specified policy must have a type of DB2. # # 2) The specified schedule must be defined for this policy. # 3) The DB2 database host must be entered as a client for this policy. # # --------------------- # DB2 User Exit Program # --------------------- # If DB2 log file archiving is enabled (DB2 USEREXIT ON), DB2 will invoke # the NetBackup user-exit program to backup & restore DB2 archive log files. # Using ARCFUNC SAVE causes log files to be archived to NetBackup storage, # as specified by the policy storage-unit setting. # Using ARCFUNC COPY causes log files to be archived to a disk directory. # Use ARCDIR to specify the destination directory for log file backup. # Use RETDIR to specify the source directory for log file restore. # DATABASE SAMPLE OBJECTTYPE ARCHIVE POLICY DB2_Log_Policy SCHEDULE User ARCFUNC SAVE #ARCFUNC COPY #ARCDIR /home/db2inst1/arcdir #RETDIR /home/db2inst1/arcdir ENDOPER # -------------------------------------------------------------- # LOGARCHMETH1 = "VENDOR.." parameter for versions 8.1.2 and above # Policy is of type DB2. # -------------------------------------------------------------- # # Comment the above DB2 User Exit section when using LOGARCHMETH1 = "VENDOR.." # DATABASE SAMPLE OBJECTTYPE ARCHIVE POLICY DB2_ARCH_Policy SCHEDULE Default-Application-Backup ENDOPER