Split Mirror Backup: Software Configuration

http://help.sap.com/saphelp_nw04/helpdata/en/3e/8211362006da428605436ace50992b/content.htm

Split Mirror Backup: Software Configuration  Locate the document in its SAP Library structure

This section describes the software configuration for split mirror backup:

·        At least the client software and SQLPLUS components of the Oracle database software must be installed on the backup server.

·        The Oracle home directory structure must correspond to the SAP standard installation required by BRBACKUP.

Default Directories

UNIX

Windows

$ORACLE_HOME/dbs

%ORACLE_HOME%\DATABASE

$ORACLE_HOME/bin

%ORACLE_HOME%\BIN

$SAPDATA_HOME/sapbackup

%SAPBACKUP%

$SAPDATA_HOME/saparch

%SAPARCH%

$SAPDATA_HOME/sapreorg

%SAPREORG%

$SAPDATA_HOME/sapcheck

%SAPCHECK%

$SAPDATA_HOME/saptrace

%SAPTRACE%

Note

BRBACKUP must be able to access the control files on the backup server created by the SQL command alter database backup controlfile to <filename> on the production server.

BRBACKUP tries to copy the control files to the backup server using the rcp or ftp command – depending on the value of stage_copy_cmd – and the host name for the HOST_NAMEfield of the V$INSTANCE view.

Alternatively, you can use Network File Systems (NFS) to mount the sapbackup directory from the production server to the backup server.

For more information, see SAP Note 156704.

·        The Oracle and BRBACKUP profiles should be available in $ORACLE_HOME/dbsor %ORACLE_HOME%\DATABASE.

·        Set the backup_type parameter in the init<DBSID>.sap profile to offline_split |online_split|offline_mirror|online_mirror.

·        To establish the connection between the backup server and the production server, you must define the profile parameter primary_db for the SQLNET connection. Before this, you must perform the following steps:

¡        Create an Oracle password file:

orapwd file=<ORACLE_HOME>/dbs/orapw<DBSID>
password=<SYS password> entries=100

¡        Set the remote_login_passwordfile parameter to exclusive in all init<DBSID>.ora profiles.

¡        Give the system user SYSOPER authorization in the production database. Start SQLPLUS as user SYS and execute the following Oracle command:

SQL> connect / as sysdba

SQL> grant sysoper to system;

¡        If needed, change the password for the system user:

SQL> alter user system identified by <password>;

The SYSOPER authorization and the password file are only required to stop the primary database for the offline split. For an online split, the standard remote connection using the instance string specified in the primary_db parameter is sufficient.

·        Make sure that the directory /usr/sap/<SAPSID>/SYS/exe/run or \\<Host name>\sapmnt\<SAPSID>\SYS\exe\run is accessible from the backup server and that it contains at least the programs BRBACKUP, BRCONNECT, and BRTOOLS  (and optionally other BR programs).

Note

Normally make sure that the paths of all database files accessed by the production database and backup database are identical, although this is not absolutely essential.

You can mount the database files on the backup host in a different SAPDATA_HOME directory by using the init<DBSID>.sap parameter orig_db_home. By using this parameter you can even mount the split-off files on the same host.

The manufacturer of the external backup tool should install and configure the BACKINT interface on the backup server.

Profile Parameters and Command Options for init<DBSID>.sap

Make sure that the following parameters are set in the initialization profile init<DBSID>.sap:

·        backup_type = offline_split|online_split|offline_mirror|online_mirror

·        Split command scenario using offline_split or online_split:

¡        split_cmd = "<split_cmd> [ $ ] "

<split_cmd> is a program or shell script called by BRBACKUP to split the mirror disks.

¡        resync_cmd = "<resync_cmd> [ $ ] "

<resync.cmd> is a program or shell script called by BRBACKUP to resynchronize the mirror disks. If this parameter is not set, BRBACKUP does not perform the resynchronization.

At runtime, BRBACKUP replaces the optional character $ with the name of the text file that contains the names of all files to be split or resynchronized.

Note

If split_cmd/resync_cmd is completed successfully, an exit code of 0 is returned. Only messages beginning with #INFO are accepted, that is, these are the only messages not interpreted as error messages. If the command is not successful, a return code of > 0 is returned as well as messages describing the cause of the error.

·        SPLITINT scenario using offline_mirror or online_mirror:

¡        split_options = “<split_options>”

This defines the additional options used to call SPLITINT. Your SPLITINT vendor can you tell you how to set them.

¡        split_resync = no|yes

This controls whether the mirror disks should be resynchronized immediately after the backup has finished.

·        primary_db = <inst_str>

<inst_str> is an instance string to the production database to connect from the backup server to the production server. The connections are defined in the Oracle configuration file tnsnames.ora.

·        The BRBACKUP call is as follows:

¡        Split command scenario:

§         brbackup -t|type online_split Online backup of mirror disks

§         brbackup -t|type offline_split Offline backup of mirror disks

¡        SPLITINT scenario:

§         brbackup -t|type online_mirror Online backup of mirror disks

§         brbackup -t|type offline_mirror Offline backup of mirror disks

For more information, see -t|-type. This command line option overrides the backup type set in the backup_type parameter in the init<DBSID>.sap profile.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值