【求助】:NBU6.0 看不到DB2实例
NBU DB2配置:
[root@oracle9i /]# /usr/openv/netbackup/bin/db2_config
Please specify the DB2 instance home path name:
/home/db2inst1
Do you have other DB2 instances? (y/n) [n]
Linking /home/db2inst1/sqllib/adm/db2uext2 to /usr/openv/netbackup/bin/db2uext2.
Copying /usr/openv/netbackup/ext/db_ext/db2/scripts/db2.conf to /home/db2inst1/db2.conf.
DB2实例名:
[db2inst1@oracle9i ~]$ db2 get instance
The current database manager instance is: db2inst1
DB2归档
db2 => update db cfg for sample using userexit on
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
db2 => update db cfg for sample using logretain on
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
db2 => update db cfg for sample using trackmod on
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
/home/db2inst1目录下 db2.conf文件
[db2inst1@oracle9i ~]$ cat db2.conf
#
# 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
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-NT" (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.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
SCHEDULE User
ARCFUNC SAVE
#ARCFUNC COPY
#ARCDIR /home/db2inst1/arcdir
#RETDIR /home/db2inst1/arcdir
ENDOPER
# --------------------------------------------------------------
# LOGARCHMETH1 = "VENDOR.." parameter for versions 8.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
SCHEDULE Default-Application-Backup
ENDOPER
可就是看不到实例名
附件
-
图片111.JPG
(78.29 KB)
-
2007-8-25 09:13