mysql带库名查询_nbu带库使用的简单使用

一、配置NBU的agent

1.1 在目标主机上安装最新版NBU agent.

1.2 配置SQL LINK

以管理员身份登录系统,执行NBU 与 Oracle 的库联接操作。

[root@lxtora04 bin]#

[root@lxtora04 bin]# su - oracle

[oracle@lxtora04 /]$ cd usr/openv

[oracle@lxtora04 openv]$ cd netbackup

[oracle@lxtora04 netbackup]$ cd bin

[oracle@lxtora04 bin]$ ./oracle_link

Tue Apr 26 11:23:48 CST 2011

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: /home/oracle/data/oracle/product/11.2.0/dbhome_1

Oracle version: 11.2.0.1.0

Platform type: x86_64

Linking LIBOBK:

Ln -s /usr/openv/netbackup/bin/libobk.so64 /home/oracle/data/oracle/product/11.2.0/dbhome_1/lib/libobk.so

Done

Please check the trace file located in /tmp/make_trace.6414

to make sure the linking process was successful.

二、查看带库内容

2.1.使用bplist查看带库的内容

[oracle@ex01db01 ~]$ /usr/openv/netbackup/bin/bplist -C lxbedirac2 -t 4 -R /

/c-173956695-20170608-08

/cntrl_8564_1_946154203

/al_8561_1_946152069

/bk_8559_1_946151711

c-开头:包含控制文件,spfile文件。AUTOBACKUP的备份片

cntrl_开头:控制文件的备份片

al_开头:归档日志备份片

bk_开头:数据文件备份片

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

bplist的简介:

bplist 命令可根据指定的选项来显示以前存档或备份的文件的列表。 您可以选择文件或目录以及希望该列表涵盖的时间段。 可以递归地显示到目录的指定深度。

bplist 仅显示您有读访问权限的文件。 只有在管理员帐户执行用户备份时,该命令才列出文件。

-C:指定用于查找要列出的备份或存档的客户端名称。 该名称必须与它在 NetBackup配置中显示的名称相同, 其默认值是当前客户端的名称。

-t:指定与策略类型相对应的以下编号之一。 4表示oracle

-R:以递归方式列出遇到的子目录,直至深度为 n。 n 的默认值是 999。

-l:以长格式列出以下文件详细信息

/: /目录

更多详细资料:

https://www.veritas.com/support/en_US/article.DOC5332

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

2.2测试带库是否连接成功

下面的说明带库已经连接成功。该服务器已经是NBU的agent端了

RMAN> run {

2> allocate channel ch01 TYPE 'SBT_TAPE';

3> release channel ch01;

4> }

using target database control file instead of recovery catalog

allocated channel: ch01

channel ch01: SID=258 device type=SBT_TAPE

channel ch01: Veritas NetBackup for Oracle - Release 7.0 (2010010419)

released channel: ch01

RMAN>

带库日志恢复出错,排查错误的相关日志:

nbu的log位置

cd /usr/openv/netbackup/logs/user_ops/dbext/logs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Legal Notice Copyright © 2017 Veritas Technologies LLC. All rights reserved. Veritas and the Veritas Logo are trademarks or registered trademarks of Veritas Technologies LLC or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. This product may contain third party software for which Veritas is required to provide attribution to the third party (“Third Party Programs”). Some of the Third Party Programs are available under open source or free software licenses. The License Agreement accompanying the Software does not alter any rights or obligations you may have under those open source or free software licenses. Please see the Third Party Legal Notice Appendix to this Documentation or TPIP ReadMe File accompanying this product for more information on the Third Party Programs. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Veritas Technologies LLC and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. VERITAS TECHNOLOGIES LLC SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE. The Licensed Software and Documentation are deemed to be commercial computer software as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19 "Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq. "Commercial Computer Software and Commercial Computer Software Documentation," as applicable, and any successor regulations, whether delivered by Veritas as on premises or hosted services. Any use, modification, reproduction release, performance, display or disclosure of the Licensed Software and Documentation by the U.S. Government shall be solely in accordance with the terms of this Agreement.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值