1. 通过DBCA创建一个数据库,后面的恢复目录会在这个数据库中创建。此处略去建库的详细步骤,
该库的SID是rmancat。
2. 以sysdba身份进入数据库rmancat,创建一个表空间用来存储rman恢复目录的数据。
SQL> create tablespace rmants datafile 'd:\oracle\product\10.2.0\oradata\rm
ancat\rmants01.dbf' size 500M;
3. 创建rman用户
SQL> create user rman identified by rman default tablespace rmants
temporary tablespace temp quota unlimited on rmants;
4. 给rman用户赋予适当的权限,角色recovery_catalog_owner拥有rman维护恢复目录所需要的所有权限。
SQL> grant recovery_catalog_owner to rman;
SQL>exit;
5. 启动rman,创建rman恢复目录。
D:\>rman catalog rman/rman@rmancat
恢复管理器: Release 10.2.0.3.0 - Production on 星期四 9月 15 14:06:22 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到恢复目录数据库
RMAN>create catalog tablespace rmants;
恢复目录已创建
RMAN>exit
6. 注册目标数据库
D:\>rman target sys/system@orcl catalog rman/rman@rmancat
恢复管理器: Release 10.2.0.3.0 - Production on 星期四 9月 15 14:13:39 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: ORCL (DBID=1286153759)
连接到恢复目录数据库
RMAN> register database;
注册在恢复目录中的数据库
正在启动全部恢复目录的 resync
完成全部 resync
RMAN>exit;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/36590/viewspace-707501/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/36590/viewspace-707501/