rman学习

本文详细记录了创建Oracle RMAN恢复目录的步骤,包括创建数据库用户、分配权限、创建恢复目录、注册目标数据库等过程。在操作过程中遇到了文件缺失、权限问题和SQL解析错误等挑战,并逐一解决,最终成功备份数据。
摘要由CSDN通过智能技术生成

怎么样创建RMAN恢复目录
[A]首先,创建一个数据库用户,一般都是RMAN,并给予recovery_catalog_owner角色权限
sqlplus sys
SQL> create user rman identified by rman;
SQL> alter user rman default tablespace tools temporary tablespace temp;
SQL> alter user rman quota unlimited on tools;
SQL> grant connect, resource, recovery_catalog_owner to rman;
SQL> exit;
然后,用这个用户登录,创建恢复目录
rman catalog rman/rman
RMAN> create catalog tablespace tools;
RMAN> exit;
最后,你可以在恢复目录注册目标数据库了
rman catalog rman/rman target backdba/backdba
RMAN> register database;

------------------------------------------------------------------------------------------
|创建RMAN恢复目录的过程记录                |
------------------------------------------------------------------------------------------
系统环境:WINXP+ORACLE9.2.0.1客户端
1、在客户端上使用rman的时候提示文件缺少(不知道是什么原因)

C:/>rman

恢复管理器: 版本9.2.0.1.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-03000: recovery manager compiler component initialization failed
RMAN-06000: could not open recovery manager library file: D:/oracle9i/ora92/RDBM
S/ADMIN/RECOVER.BSQ
LFI-00108: Open expect the file [RECOVER][BSQ] to exist.


2、从服务端拷贝RECOVER.BSQ到ORACLE目录
C:/>rman

恢复管理器: 版本9.2.0.1.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

RMAN> catalog scott/tiger@pgjt

RMAN-00571: ===========&#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值