NBU7.5备份SAP

更新时间:2024-04-26 04:53:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

NBU7.5备份SAP

编写:星期八不打球

yilijun_yy@126.com

2013年10月23日

目录

目录………………………………………………………………………..………………….…………….……..2

一、SAN Client配置…………………………………………………………………………………….…..3

1 在FT Media Server上启动nbhba模式………………………………….……….…….3 2 查看hba模式状态……………………………………………………………………….……….3 3 修改hba模式………………………………………………………………………………………..4 4 确认模式更改成功……………………………………………………………………..………..4 5 配置FT Media Server服务……………………………………………………………………4 6 验证服务……………………………………………………………..………...…………………….5 7 配置SAN 客户端……………………………………………..…………………………………..5 8 Master Server中配置查看SAN Client……………………………………………………6 二、配置SAP的备份脚本和参数文件…………………………………………………………….7

1 为backint文件创建NetBackup的链接………………….…………………………….7 2 创建并修改备份脚本和参数文件……………..…………………………………………7 三、创建并手动备份SAP的备份策略…………………………………….…………………….23

1 在NetBackup Master Server 上创建一个新的备份策略………..….………23 2 手动开启新建的sap_CEP-backup备份策略………..…….….…….…………….26

环境描述:备份服务器的系统为redhatlinux 6.3_64安装nbu7.5,SAP为aix小机并通过san client 的模式来备份sap的数据库。Nbu7.5的master和client的安装我就不描述了,网上一查一大把。

一、 SAN Client 配置

1 在FT Media Server上启动nbhba模式:

# cd /usr/openv/openv/netbackup/bin/admincmd/

./nbftsrv_config–nbhba

Installing nbhba driver.

Uninstalled WinDriver for FT Server mode.

It may be necessary to temporarily unload your QLogicdriversto free up the ports for the nbhba

drivers.

This is an optional step. If you choose not to do this, the nbhba drivers may not have access to the HBA ports until a subsequent reboot.

Would you like to unload and reload your native QLogic drivers now? [y,n] (y) y

Are you sure you want to unload QLogic driver: qla2xxx? [y,n] (y) y Removing qla2xxx.

Installed driver for nbhba mode.

2 查看HBA 模式状态

# ./nbhba -L

2 ports recognized; 0 target mode ports; mode : driver in nbhba mode HBA Index #1 Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX Model Name = \ Port = 0

Mode = initiator (designated for other use)(138) HBA Index #2 Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX Model Name = \ Port = 1

Mode = initiator (designated for other use)(138)

3 修改 HBA 模式

Command: nbhba –modify –wwn -mode target

[root@ admincmd]# ./nbhba -modify -wwn 21:00:00:E0:8B:9B:96:F0 -mode target Modified port with WWN 21:00:00:E0:8B:9B:96:F0 Modified port with WWN 21:01:00:E0:8B:BB:96:F0

注意:这里改模式的时候,会同时更改同一块HBA上的多个端口。所以规划阶段必须要两块物理上的HBA卡,一个双口卡或者4口卡算成一个。

4 确认模式更改成功

[root@ admincmd]#./nbhba -L

2 ports recognized; 2 target mode ports; mode : driver in nbhba mode HBA Index #1 Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX Model Name = \ Port = 0

Mode = initiator (designated for other use)(138) HBA Index #2

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX Model Name = \ Port = 1

Mode = target (designated for FT Server)(8138)

5 配置FT Media Server服务

[root@ admincmd]# ./nbftsrv_config

Installing the JungoWinDriver and Fibre Transport Server. Uninstalled WinDriver for FT Server mode. Removing ql2300_stub.

The following automatic startup and shutdown scripts (respectively) have

been installed. They will cause the NetBackupFibre Transport Server daemon to be automatically shut down and restarted each time the system boots.

/etc/rc.d/rc2.d/S21nbftserver /etc/rc.d/rc3.d/S21nbftserver /etc/rc.d/rc5.d/S21nbftserver /etc/rc.d/rc0.d/K03nbftserver /etc/rc.d/rc1.d/K03nbftserver /etc/rc.d/rc6.d/K03nbftserver

Installed driver for FT Server mode.

/etc/udev/rules.d/50-windrvr.rules does not exist, creating...

/etc/udev/rules.d/50-windrvr.rules updated with JungoWinDriver permissions. Installed WinDriver for FT Server mode. NetBackupFibre Transport Server started.

Would you like to make these changes persist after a reboot? [y,n] (y) y Running mkinitrd. Previous initrd image is saved at /boot/initrd-2.6.18-194.el5.img.03-23-

12.13:20:23.

SSID Change: MUST REBOOT TO COMPLETE INSTALLATION.

完成后重启FT Media Server 6 验证服务

重启完成后验证FT Media Server针对SAN Client的服务是否启动 查看是否有下面标红的服务

[root@ ~]# cd /usr/openv/netbackup/bin/ [root@ bin]# ./bpps

root 2873 1 9 13:27 ? /usr/openv/netbackup/bin/nbftsrvr

root 3138 1 0 13:27 ? /usr/openv/netbackup/bin/vnetd -standalone

root 3143 1 0 13:27 ? /usr/openv/netbackup/bin/bpcd -standalone

root 3147 3143 0 13:27 ? 00:00:00 [bpcd] root 3323 1 0 13:27 ? /usr/openv/netbackup/bin/bpcompatd

root 3331 1 0 13:27 ? /usr/openv/netbackup/bin/nbrmms

root 3353 1 0 13:27 ? /usr/openv/netbackup/bin/nbsl

root 3408 1 0 13:27 ? /usr/openv/netbackup/bin/nbsvcmon

root 3770 2873 12 13:27 ? /usr/openv/netbackup/bin/nbfdrv64 -m=0x4a0009 -v=1 -s=256K

00:00:05 00:00:00 00:00:00

00:00:00 00:00:00 00:00:00 00:00:00 00:00:02

到这里 FT Media Server端就配置完成了。

7 配置SAN 客户端

AIX Client配置:

执行/usr/openv/netbackup/bin/bpclntcmd–sanclient 1启用SAN Client

执行/usr/openv/netbackup/bin/bp.kill_all停止服务 执行/usr/openv/netbackup/bin/bp.kill_al启动NBU服务

执行/usr/openv/netbackup/bin/bpps -x确认nbftclnt服务是否正常启动。 执行系统命令cfgmgr-v后利用lsdev–Cctape确认识别到ARCHIVE Python 的驱动器

8 Master Server 中配置查看 SAN Client 正确的配置;类似下图:

到此,SAN Client配置全部完成。

注意:如果SAN Client没有发现2个Client HBA Num,请去客户端重新扫描下并重启nbu服务。 .

二、 配置SAP的备份脚本和参数文件

1 为backint文件创建NetBackup的链接

ln –s /usr/openv/netbackup/bin/backing /usr/sap/CEP/SYS/exe/run/backing 说明:此SAP数据库的SID为CEP

2 创建并修改备份脚本和参数文件

2.1 创建备份脚本存放路径;

/usr/openv/scripts 2.2 复制脚本模本;

脚本模板放在客户端/usr/openv/netbackup/ext/db_ext/sap/scripts下,复制sap_online_backup到新建的脚本目录下。 如新建脚本存放路径为/usr/openv/scripts 然后执行以下步骤:

#cd /usr/openv/netbackup/ext/db_ext/sap/scripts #cpsap_online_backup /usr/openv/scripts #chmod 777 sap_online_backup

2.3 修改红色部分的sap_online_backup的备份脚本;

#bcpyrght

#*************************************************************************** #* $VRTScprght: Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved $ * #*************************************************************************** #ecpyrght #

#NOTE:IF your SAP user (in this script orasap) runs in C shell, environmental #variables can not be exported. In that case, you should modify this script to #work in your environment. For example:

# SAP_SERVER=$SAP_SERVER; export SAP_SERVER; (Correct for Bourne and Korn shells) # can change into

# setenv SAP_SERVER $SAP_SERVER; (Correct for C shell) # #

#This environment variable are created by Netbackup (bphdb) #

echo \echo \echo \echo \echo \

echo \

RETURN_STATUS=0

# SAP_ENV - Holds environmental variables. SAP_ENV=\ #

# If SAP_SERVER exists then export it to make it available to backint. #

if [ -n \then

SAP_ENV=\

#if Oracle DBA acount(orasap user) uses C Shell,comment the above line and uncomment the next line #SAP_ENV=\fi #

# If SAP_POLICY exists then export it to make it available to backint. #

if [ -n \then

SAP_ENV=\

#if Oracle DBA account(orasap user) uses C Shell, comment the above line and uncomment the next line # SAP_ENV=\fi #

# If SAP_SCHED exists then export it to make it available to backint. #

if [ -n \then

SAP_ENV=\

#if Oracle DBA account(orasap user) uses C Shell, comment the above line and uncomment the next line # SAP_ENV=\fi

#

# If SAP_SNC_SCHED exists then export it to make it available to backint. #

if [ -n \then

SAP_ENV=\ #if Oracle DBA account(orasap user) uses C Shell, comment the above line and uncomment the next line # SAP_ENV=\fi #

# Full online backup with dynamic BEGIN/END BACKUP switch #

CMD_LINE=\ #

# The username on the \# name. #

echo \su - oracep -c \

RETURN_STATUS=$? #

# save and delete archive logs #

if [ $RETURN_STATUS -eq 0 ] then

timeStamp=`date '+%m%d%y%H%M%S'` ; br_out_file=\

CMD_LINE=\ #

# The username on the \ # name. #

echo \su - oracep -c \

RETURN_STATUS=$?

# If there were no redo logs to backup, brarchive will return 1. But if 1 is # returned to bphdb, job will appear as failed in the activity monitor. To # preventNetbackup failure, check return code from brarchive. If the return code # is 1, check for message code BR0013W in the output of brarchive. If this message # is present, then there were no redo logs present to backup and its not a failure. # So in that case return 0 to bphdb.

if [ $RETURN_STATUS = 1 ]; then

su - oracep -c \ if [ $? = 0 ]; then

RETURN_STATUS=0 fi fi

su - oracep -c \ fi

exit $RETURN_STATUS

红色部分全部是要修改的地方,上面的已经全部修改成我的SAP备份环境。

下面我说下主要修改参数的地方: (1)SAP_NEV添加删除注释符

(2)CMD_LINE 添加了-u system/ctruck123的账户和密码 (3)su–oracep修改成了我的数据库用户名

添加system密码和数据库用户名根据各位自己的环境修改。 2.4 配置备份参数文件initSID.utl

(1) 我SAP数据库的SID为CEP,$ORACLE_HOME=/oracle/CEP/102_64

#cd /usr/openv/netbackup/ext/db_ext/sap/scripts

#cpinitSAP.utl /oracle/CEP/102_64/dbs #cd /oracle/CEP/102_64/dbs #cpinitSAP.utlinitCEP.utl

#chownoracep:dbainitCEP.utl #chmod 755 initCEP.utl

如果此目录下已经存在同名文件,则将原同名文件改名另存,然后在复制。

(2) 修改initCEP.utl

#******************************************************************************** # $Copyright: Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved $ *

#******************************************************************************** #

# backint parameters #

# switch_list: is required and is used as a control file to communicate with # BACKINT and BRBACKUP for online backups. A switch list file is created # every time BRBACKUP wants to backup a file or when it wants to indicate that # a backup is finished. The switch_list parameter must be set to a file path # that is located in: $ORACLE_HOME/sapbackup/.switch.lis. #

switch_list /oracle/CEP/102_64/sapbackup/.switch.lis # #

# switch_sem: is required and is used as a control file which is used between # BACKINT and BRBACKUP to communicate. After the switch list file has been # created and closed, BACKINT creates the switch semaphore file and waits until # it is deleted by BRBACKUP. The switch_sem parameter must be set to a file # path that is located in: $ORACLE_HOME/sapbackup/.switch.sem. #

switch_sem /oracle/CEP/102_64/sapbackup/.switch.sem # #

# switch_log: is required and is used as a control file which is used between # BACKINT and BRBACKUP to communicate. After the switch semaphore file has # been deleted, BACKINT opens and reads the switch log file to determine if # the process is successful. The switch log file is created by BRBACKUP. The # switch_log parameter must be set to a file path that is located in: # $ORACLE_HOME/sapbackup/.switch_log. #

switch_log /oracle/CEP/102_64/sapbackup/.switch.log # #

# backint_dir: is an optional parameter and must be set to a directory that is # public. BACKINT uses this directory for work space and to store files called # backint.times, which keeps track of backup information. #

#backint_dir /oracle/SAP/sapscript/backint_dir # #

# server: is an optional parameter and is the machine name of the NetBackup # Master server. The NetBackup Master server is the name of the machine that # provides most of the administration and control for Netbackup operations and # contains the NetBackup database. If BACKINT finds a $SAP_SERVER environment # variable, the server parameter's value will be overriden by the value of # $SAP_SERVER. Also, if the server parameter is not specified and there is # no environment variable then the currently configured server for # the NetBackup Client will be used. #

#server jupiter

server nbumaster1 # #

# client: is an optional parameter and must be set to a machine name that has # theNetBackup client software, an Oracle database, and a SAP environment. # In some cases the server and client machine will be the same machine. If # BACKINT finds a $SAP_CLIENT environment variable, the client parameter value # will be overriden by the assigned environment variable. If the client parameter # is not specified and there is no environment variable then the currently # configured NetBackup Client will be used. If BACKINT could not get the currently # configured NetBackup Client also, then it uses the value returned by # thegethostname() library function. #

#client jupiter

client cerpprd1 # #

# drives: is an optional parameter and should be set to the number of # simultaneous tape drives to kickoff backup. Set NetBackup Server to support # multiple simultaneous client backups and the number of storage units/tape # drives for this backup policy. Based on the number of drives specified # BACKINT will simultaneously run the same number of backup jobs. # So for example, if the drives parameter is set to 5, then 5 backup jobs will # run at the same time.

# The drives parameter should be set to the following rule: #

# drives = Number of storage units per policy X MPX number #

# The drives parameter value should not exceed the Set Maxium Jobs per Client # global attribute. If BACKINT finds a $SAP_DRIVES environment variable, the # drive parameter value will be overriden by the value of the $SAP_DRIVES # variable. If the drive parameter is not specified and there is no

# environment variable, default value of one will be used. # #drives 1 drives 1 # #

# policy: is an optionl parameter and should be set to the name of a SAP policy # type that has been defined in Netbackup. The SAP policy must have a schedule # type of Application Backup defined in order for BACKINT to work. If BACKINT finds # a $SAP_POLICY environment variable, the policy parameter value will be # overriden by the value of the $SAP_POLICY variable. If the policy parameter # is not specified and there is no environment variable, then BACKINT will # exit with an error. #

#policy sap_backup

policysap_CEP_backup # #

# schedule: Is optional and must be set to the name of type Application Backup # schedule that is associates with a SAP policy type. The schedule can # define aspects of the backup such as how long Netbackup retains images, # maximum MPX per drive, storage unit, and volume pool. If BACKINT finds a # $SAP_SCHED environment variable, the schedule parameter value will be # overriden by the value of the $SAP_SCHED environment variable. If the # schedule parameter is not specified and there is no environment variable, # then, NetBackup uses the first schedule of type Application Backup # that it finds. It is higly recommended to set schedule parameter in *.utl file. #

#schedule Default-Application-Backup

schedule Default-Application-Backup # #

# policy2: is optional and is the name of a policy to be used for the # secondary SAP backup. The secondary backup is performed for each SAP # database backup on files that are needed to track SAP backup information. # This option would be used to save the backup information on a different # media. If policy2 is not specified, then the policy parameter value is used. #

#policy2 sap_sec_backup # #

# schedule2: is optional and is the name of a Application Backup schedule to be # used for the secondary SAP backup. The secondary backup is performed for # each SAP database backup on files that are needed to track SAP backup # information. This option would be used to save the backup information on a # different media. If schedule2 is not specified, then the schedule parameter # value is used. #

#schedule2 userbkps # #

# sort_backup_type: [size | custom | device | drive ]

# This parameter is optional and is used to specify four different backup # sort option. If sort_backup_type is not specified it will default to # the size option. #

#sort_backup_type size #

# sort_restore_type: [image | custom | drive ]

# This parameter is optional and is used to specify three different restore # sort option. If sort_restore_type is not specified it will default to # the image option. This option is only applicable for pre 6.0 releases. #

#sort_restore_type image # #

# custom_sort_file: is optional and is used in conjunction with the

# sort_backup_type and sort_restore_type parameter. If the custom option is # specified on either the sort_backup_type or sort_restore_type parameter, # then the custom_sort_file parameter needs to be set to a valid file. The # value for this parameter must be a full path name to a custom sort file and # must have public permissions. #

#custom_sort_file /oracle/SAP/sapscripts/custom_sort_file # #

# master_time_offset: is an option parameter used to restore old backups # if there was a time difference between the master and client machines. # This option should only be used for restoring 3.0 or older backup or if a # backint restore can't find a specified backup. The master_time_offset is # specified in minutes. The value will be subtracted from the start time and # added to the end time for a restore or inquire. #

#master_time_offset 2 #

#

#sleep: is optional and is used to specify a sleep time to monitor the # bpbackup or bprestore logs. The default is 5 seconds. When BACKINT is # called a number of bpbackup/bprestore commands can be running at the # sametime. BACKINT monitors each command and display the information to the # -o parameter. In some cases bpbackup/bprestore information is not displayed # because of the monitoring cycle. Therefore this option is used mainly for # debug reasons. This option is only applicable for pre 6.0 releases. # #sleep 5 # #

# policy_log: is optional and is the name of a policy to be used for # backing up a second copy of an archive log. If this option is specified # then two backups will be performed on the same archive log. The first # backup will go to the \# to the \#

#policy_logsap_archive_logs # #

# sched_log: is optional and is the name of a schedule to create a second # backing up of an archive log. If this option is specified then two backups # will be performed on the same archive log. The first backup will go to the # \# option. The \# \# the \#

#sched_log Default-Application-Backup # #

# retry_backup: is an optional parameter and should be set to the number of # retries for a failed backup. If this option is specified BACKINT will # retry a failed backup job. The number of retries is determine by the # value on the retry_backup parameter. #

#retry_backup 2 # #

# fail_backup: is optional and is used to stop the backup process immediately # when an error occurs. The standard behavior of BACKINT is to continue # processing even in the event of an error and then report what files failed # and what files were successful. If this parameter is specified then BACKINT

# will stop process on the first error and report failures for all the # files that were not backed up. #

#fail_backup # #

# media_notify_script: is optional and is used to call a script when a

# \ The value for this # option must be the full path name to a script. The script should also have # the right file permissions and should be tested before implementation. If # the message is encountered and this optional is specified, then the # following commands will be executed from BACKINT: # MEDIA_ID=A001;export MEDIA_ID

# NETBACKUP_SERVER=saturn;export NETBACKUP_SERVER # /oracle/SAP/sapscripts/sap_media_notify # This option is only applicable for pre 6.0 releases. #

#media_notify_script /oracle/SAP/sapscripts/sap_media_notify # #

# restore_filter: is optional and is used to resolve linked file paths on a

# restore. This parameter should be commented out and should be used only on # rare occasions. The following are the cases were this parameter is needed: # 1) Oracle table spaces use file paths

# 2) The directory paths to the Oracle table spaces are linked paths # 3) The linked directory paths don't exist at restore time

# The value for this parameter must be a fully qualified file path name to a # script, which has the right permissions and has been tested before being # implemented. The script must have an input and output parameter and be able # to modify the contents of a text file which contains file paths. The script # is responsible for converting linked directory paths into absolute directory # paths. See /usr/openv/netbackup/ext/db_ext/sap/scripts/restore_filter for # an example. #

#restore_filter /oracle/SAP/sapscripts/restore_filter.sh # #

# bplist_filter: is optional and is used to resolve linked file passes on an

# inquire. This parameter should be commented out and should be used only on # rare occasions. Like the restore_filter_script parameter this is needed # for the following cases:

# 1) Oracle table spaces use file paths

# 2) The directory paths to the Oracle table spaces are linked paths # 3) The linked directory paths don't exist at restore time

# The value for this option must be a fully qualified path name to a script, # which has the right file permission and has been tested before being

# implemented. The script must have an input and output parameter and be able # to modify the contents of a text file, which contains file paths. The script # is responsible for converting absolute directory paths into linked directory # paths. This is just the opposite of the restore filter script. See

# /usr/openv/netbackup/ext/db_ext/sap/scripts/bplist_filter for an example. #

#bplist_filter /oracle/SAP/sapscripts/restore_filter.sh # #

# check_directory_flag: is optional and is used to allow directory and

# subdirectory backups. The parameter value can be either set to a 1 for true # or 0 for false. The SAP Tools only allows file backups, not directories or # subdirectories. The SAP Tools requires BACKINT to report an error if a # directory being backed up. This option provides the ability to override # this design and gives the SAP Tools the ability to backup directories and # subdirectories. The default is not to allow directory and subdirectory # backups. This option is only applicable for pre 6.0 releases. #

#check_directory_flag 1 # #

# second_secondary_archive: is optional, and it can have value of 0 or 1. # If value is one, then 2 copies of secondary backup will be made. This # parameter will have an effect only if policy_log and/or schedule_log are # specified. The first backup will go to the \ name option and the # second backup will go to the \# will serve brarchive but it will have no effect on brbackup. #

#second_secondary_archive 0 #

# backup_stream_buffersize: is optional. This parameter can be used to # specify the value of buffer size in case of stream backup. Data is # received through stream (pipe) in case of SAPDB. When passing this # data to netbackup, the buffer size specified by this value will be used. #

#backup_stream_buffersize 65535 #

# restore_stream_buffersize: is optional. This parameter can be used to # specify the value of buffer size in case of stream restore. Data is

# received from netbackup and passed to SAPDB through stream (pipe) in case # of restore. When receiving data from netbackup and copying it to pipe, # the buffer size specified by this value will be used.

#

#restore_stream_buffersize 65535 #

#inquire_query_period: In case of #NULL based inquire query, SAP agent will #restrict the catalog search to six months by default. This parameter can be #used to specify the query period (in months). For example if user wants to #restrict the result of #NULL inquire query search to last 10 months then this #parameter should be set to 10. #

#inquire_query_period 10 #

# multistream_restore: is optional, and it can have value of 0 or 1.

# If value is 0, then NetBackup master server (BPRD process) takes care of performing # an efficient restore job from selected backup images. If value is 1, then # parallel restore streams will be started (similar to pre NBU 6.0 version),

# number of restore streams will be decided based on values of \# The default value of multistream_restore is set to 0. #

# multistream_restore 0

保存已修改的内容,并退出编辑器。

2.5 配置备份参数文件initCEP.sap

(1) 我SAP数据库的SID为CEP,$ORACLE_HOME=/oracle/CEP/102_64

#cd /usr/openv/netbackup/ext/db_ext/sap/scripts

#cpinitSAP.sap /oracle/CEP/102_64/dbs #cd /oracle/CEP/102_64/dbs #cpinitSAP.sapinitCEP.sap #chownoracep:dbainitCEP.sap #chmod 755 initCEP.sap

如果此目录下已经存在同名文件,则将原同名文件改名另存,然后在复制。

(2) 修改initCEP.sap

######################################################################## # # # SAP backup profile for VeritasNetbackup. # #bcpyrght

#*************************************************************************** #* $VRTScprght: Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved $ * #*************************************************************************** #ecpyrght

# The parameter syntax is the same as for init.ora parameters. # # Enclose parameter values which consist of more than one symbol in #

# double quotes. #

# After any symbol, parameter definition can be continued on the next #

# line. # # A parameter value list should be enclosed in parentheses, the list #

# items should be delimited by commas. # # There can be any number of white spaces (blanks, tabs and new lines) # # between symbols of parameter definition. # # # ########################################################################

# backup device type

# [disk | tape | tape_auto | pipe | pipe_auto | util_file | util_vol] # default: tape

#backup_dev_type = tape backup_dev_type = util_file

# backup mode [all | | ()] # default: all backup_mode = all

#backup_mode = (PSAPUSER1D,PSAPUSER1I,PSAPCLUI)

# backup type [offline | offline_force | online] # default: offline #backup_type = offline backup_type = online

# backup root directory [ | ()] # default: $ORACLE_HOME/sapbackup

backup_root_dir = /oracle/CEP/102_64/sapbackup

# compression flag [yes | no | hardware | only] # default: no compress = no

# compress command

# first $-character is replaced with the source file name # second $-character is replaced with the target file name # = .Z # for compress command the -c option must be set # !!! enclose the parameter value in double quotes !!! # no default

compress_cmd = \

# temporary directory for compression

# default: value of the backup_root_dir parameter

compress_dir = /oracle/CEP/102_64/sapreorg

# flags for cpio command # default: -ovB cpio_flags = -ovB

# remote shell command (backup_dev_type = pipe) # !!! enclose the parameter value in double quotes !!!

# !!! do not include pipe character \# !!! do not include dd command in the parameter value !!! # !!! usecopy_in_cmd and copy_out_cmd parameters instead !!! # no default

# HP-UX: \# OSF1: \ or \# AIX: \# SINIX: \ or \# SUN: \ or \# DGUX: \ or \# NT: \ or \read_fifo_cmd = \

# remote copy-in command (backup_dev_type = pipe) # $-character is replaced with current tape address

# !!! usecopy_in_cmd to define the dd command for tape reading !!! # !!! enclose the parameter value in double quotes !!! # no default

copy_in_cmd = \

# remote copy-out command (backup_dev_type = pipe) # $-character is replaced with current tape address

# !!! usecopy_out_cmd to define the dd command for tape writing !!! # !!! enclose the parameter value in double quotes !!! # no default

copy_out_cmd = \

# rewind command (operating system dependent) # $-character is replaced with current tape address # !!! enclose the parameter value in double quotes !!! # no default

# HP-UX: \# OSF1: \# AIX: \# SINIX: \# SUN: \

# DGUX: \# NT: \rewind = \

# rewind set offline command (operating system dependent) # $-character is replaced with current tape address # !!! enclose the parameter value in double quotes !!! # default: value of the rewind parameter # HP-UX: \# OSF1: \# AIX: \# SINIX: \# SUN: \# DGUX: \# NT: \rewind_offline = \

# tape size in KB = K or in MB = M (tape device dependent) # !!! do not put spaces between the number and 'K' or 'M' !!! # default: 1200M

# recommended values for tape devices without hardware compression: # 60 m 4 mm DAT tape: 1200M # 90 m 4 mm DAT tape: 1800M # 120 m 4 mm DAT tape: 2400M # 112 m 8 mm Video tape: 2000M

# recommended values for tape devices with hardware compression: # 60 m 4 mm DAT tape: 1000M # 90 m 4 mm DAT tape: 1600M # 120 m 4 mm DAT tape: 2200M # 112 m 8 mm Video tape: 1800M # HP-UX: 1200M # OSF1: 1200M # AIX: 2000M # SINIX: 2000M # SUN: 1200M # DGUX: 1200M # NT: 1200M tape_size = 1200M

# address of tape device without rewind [ | ()] # no default

# HP-UX: /dev/rmt/0mn # OSF1: /dev/nrmt0h # AIX: /dev/rmt0.1

# SINIX: /dev/ios0/rstape005n # SUN: /dev/rmt/0mn # DGUX: /dev/rmt/0n # NT: \\\\.\\tape0

tape_address = /dev/rmt/3mn

# address of tape device with rewind [ | ()] # no default

# HP-UX: /dev/rmt/0m # OSF1: /dev/rmt0h # AIX: /dev/rmt0 # SINIX: /dev/ios0/rstape005 # SUN: /dev/rmt/0m # DGUX: /dev/rmt/0 # NT: /dev/mt0

tape_address_rew = /dev/rmt/3m

# tape volumes for brarchive

# [ | () | SCRATCH] # no default

volume_archive = (D22A01, D22A02, D22A03, D22A04, D22A05, D22A06, D22A07, D22A08, D22A09, D22A10, D22A11, D22A12, D22A13, D22A14, D22A15, D22A16, D22A17, D22A18, D22A19, D22A20, D22A21, D22A22, D22A23, D22A24, D22A25, D22A26, D22A27, D22A28, D22A29, D22A30)

# tape volumes for brbackup

# [ | () | SCRATCH] # no default

volume_backup = (D22B01, D22B02, D22B03, D22B04, D22B05, D22B06, D22B07, D22B08, D22B09, D22B10, D22B11, D22B12, D22B13, D22B14, D22B15, D22B16, D22B17, D22B18, D22B19, D22B20, D22B21, D22B22, D22B23, D22B24, D22B25, D22B26, D22B27, D22B28, D22B29, D22B30)

# expiration period in days for tape volumes # default: 30 expir_period = 30

# recommended use count of tape volumes # default: 100 tape_use_count = 100

# backup utility parameter file # default: no parameter file # util_par_file= ?/dbs/init@.utl

util_par_file = /oracle/CEP/102_64/dbs/initCEP.utl

注意:如果没有/oracle/CEP/102_64/sapreorg的这个路径,那就做一下sapreorg的ln链接

到此备份SAP的脚本全部修改完成。

三、 创建并手动备份SAP的备份策略

1 在NetBackup Master Server上创建一个新的备份策略;

本文来源:https://www.bwwdw.com/article/fy3p.html

Top