本文演示了 NBU 客户端软件的安装与配置,以及 RMAN 如何也磁带设备通信。
在 DB 服务器上安装客户端软件
# tar xvf SYMCnbclient_Linux-RedHat2.6.18_7.7.3.tar
# cd SYMCnbclient_Linux-RedHat2.6.18_7.7.3
# ls
install NBClients
# ./install
.....
Do you wish to continue? [y,n] (y)
.....
Do you want to install the NetBackup client software for this client? [y,n] (y)
.....
Enter the name of the NetBackup master server : nbumasterpri
Would you like to use "cydb1.xuwang.online" as the configured name of the NetBackup client? [y,n] (y)
.....
在 DB 服务器上配置 /etc/hosts 文件
##################nbu server###########
10.16.44.84 nbumaster1 # 管理节点1
10.16.44.85 nbumaster2 # 管理节点2
10.16.44.86 nbumasterpri # 管理节点 VIP
10.16.44.87 nbu52201 # NBU 一体机
10.16.44.88 nbu52202 # NUB 一体机
######################################
修改客户端 NBU 配置文件
echo "SERVER = nbu52201" >>/usr/openv/netbackup/bp.conf
echo "SERVER = nbu52202" >>/usr/openv/netbackup/bp.conf
echo "REQUIRED_INTERFACE = `hostname`">>/usr/openv/netbackup/bp.conf
echo "CLIENT_CONNECT_TIMEOUT = 1800" >>/usr/openv/netbackup/bp.conf
echo "CLIENT_READ_TIMEOUT = 1800 ">>/usr/openv/netbackup/bp.conf
echo 262144 > /usr/openv/netbackup/NET_BUFFER_SZ
执行 oracle link
# su - oracle
$ echo $ORACLE_HOME
/data/app/oracle/product/11.2.0/db_1
$ cd /usr/openv/netbackup/bin/
$ ./oracle_link
Wed Aug 14 14:29:17 CST 2019
All Oracle instances should be shutdown before running this script.
Please log into the Unix system as the Oracle owner for running this script
Do you want to continue? (y/n) [n] y
LIBOBK path: /usr/openv/netbackup/bin
ORACLE_HOME: /data/app/oracle/product/11.2.0/db_1
Oracle version: 11.2.0.4.0
Platform type: x86_64
Linking LIBOBK:
ln -s /usr/openv/netbackup/bin/libobk.so64 /data/app/oracle/product/11.2.0/db_1/lib/libobk.so
Done
Please check the trace file located in /tmp/make_trace.9083
to make sure the linking process was successful.
在 NBU 服务端添加 DB 服务器的名称解析
在nbumaster1/2、nbu52201/2 四台机器的 /etc/hosts 文件中添加 RAC 两节点的解析。
172.25.0.38 cydb1.xuwang.online cydb1
172.25.0.39 cydb2.xuwang.online cydb2
到此为止,DB 服务器就可以正常与 NBU 通信了。
DB 服务器与 NBU 通信
$ rman target / nocatalog
RMAN> startup mount;
RMAN> run {
set until scn 98417339909;
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_SERV=nbumasterpri,NB_ORA_CLIENT=ibsdbpd1.xuwang.online';
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL ch00;
}