亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 5525 | 回復(fù): 4
打印 上一主題 下一主題

如何用NBU備份db2的歸檔日志 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-10-18 22:51 |只看該作者 |倒序?yàn)g覽
想用NBU的出口程序備份DB2的歸檔?不知道怎么來實(shí)現(xiàn),Veritas的文檔寫的不是很詳細(xì)。\r\n\r\n設(shè)置了如下:\r\ndb2 update db cfg for sample using userexit on 啟用用戶出口 \r\n\r\ndb2 update db cfg for sample using logretain on 啟用歸檔日志 \r\n\r\n在NBU里面做了個policy叫db2_standard,是不是就可以了,\r\n怎么知道它是不是能正常工作,好像這個policy 沒有辦法手工執(zhí)行測試?\r\nbp.conf文件如下:\r\n\r\n# $Header: db2.conf,v 1.5 2007/04/12 14:05:29 $\r\n#\r\n# ***************************************************************************\r\n# * $Copyright: Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved $ *\r\n# ***************************************************************************\r\n#\r\n# The following settings are used by NetBackup to backup/restore a DB2 database.\r\n#\r\n# Reminders:\r\n# 1) The specified policy must have a type of \"DB2\".\r\n# 2) The specified schedule must be defined for this policy.\r\n# 3) The DB2 database host must be entered as a client for this policy.\r\n#\r\n\r\nDATABASE SAMPLE\r\nOBJECTTYPE DATABASE\r\nPOLICY DB2\r\nSCHEDULE Default-Application-Backup\r\nENDOPER\r\n\r\n#\r\n# The following settings are used by NetBackup to backup/restore DB2 log files.\r\n#\r\n Reminders:\r\n# 1) DB2 transcation logs can be backed up/restored using  either \r\n#  (a) DB2 User Exit Program\r\n#       The specified policy must have a type of \"Standard\" (for UNIX DB2 \r\n#       host) or \"MS-Windows-NT\" (for Windows DB2 host).\r\n#\r\n#  (b) LOGARCHMETH1 can be configured to use NetBackup.\r\n#      (When LOGARCHMETH1 = \"VENDOR:NetBackup for DB2 agent\")\r\n#       This option is possible only for versions 8.2 and above.\r\n#       The specified policy must have a type of DB2.\r\n#\r\n# 2) The specified schedule must be defined for this policy.\r\n# 3) The DB2 database host must be entered as a client for this policy.\r\n#\r\n\r\n# ---------------------\r\n# DB2 User Exit Program\r\n# ---------------------\r\n# If DB2 log file archiving is enabled (DB2 USEREXIT ON), DB2 will invoke\r\n# the NetBackup user-exit program to backup & restore DB2 archive log files.\r\n# Using ARCFUNC SAVE causes log files to be archived to NetBackup storage,\r\n# as specified by the policy storage-unit setting.\r\n# Using ARCFUNC COPY causes log files to be archived to a disk directory.\r\n# Use ARCDIR to specify the destination directory for log file backup.\r\n# Use RETDIR to specify the source directory for log file restore.\r\n#\r\nDATABASE SAMPLE\r\nOBJECTTYPE ARCHIVE\r\nPOLICY db2_standard\r\nSCHEDULE userexit\r\nARCFUNC SAVE\r\n#ARCFUNC COPY\r\n#ARCDIR /home/db2inst1/arcdir\r\n#RETDIR /home/db2inst1/arcdir\r\nENDOPER

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2008-10-19 21:55 |只看該作者
還需要文檔多全啊,呵呵,看這個注釋就夠了

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-10-20 10:46 |只看該作者
出了什么問題?怎么解決的

論壇徽章:
2
2015年迎新春徽章
日期:2015-03-04 09:49:45IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-07-29 06:20:00
4 [報(bào)告]
發(fā)表于 2008-10-20 13:19 |只看該作者
我記得 備份的時候用一個“include log”,就可以順便備份log,不用單獨(dú)備份,restor的時候可以先提取出log。

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2008-11-03 18:18 |只看該作者

回復(fù) #6 冬瓜頭 的帖子

手工編譯db2uexit可以自動歸檔到NBU的
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP