1、最低125M
2、以SYSDBA权限连接到恢复目录数据库,创建表空间
SQL> create tablespace rman datafile 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\rman
.dbf' size 125m autoextend on;
表空间已创建。
3、创建恢复目录所有者
SQL> create user rman identified by rman default tablespace rman quota unlimited
on rman ;
SQL> grant recovery_catalog_owner to rman ;
授权成功。
4、创建恢复目录
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>rman catalog rman/rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 10 11:32:01 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到恢复目录数据库
RMAN> create catalog;
恢复目录已创建
5、同步恢复目录
C:\Documents and Settings\Administrator>rman target / catalog rman/rman@test
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 10 11:33:38 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: ORCL (DBID=1266395358)
连接到恢复目录数据库
RMAN> register database;
注册在恢复目录中的数据库
正在启动全部恢复目录的 resync
完成全部 resync
6、注销数据库
C:\Documents and Settings\Administrator>rman target / catalog rman/rman@test
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 10 11:33:38 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: ORCL (DBID=1266395358)
连接到恢复目录数据库
RMAN> unregister database;
数据库名为 "ORCL" 且 DBID 为 1266395358
是否确实要注销数据库 (输入 YES 或 NO)? y
已从恢复目录中注销数据库
7、手动方式重新同步恢复目录
C:\Documents and Settings\Administrator>rman target / catalog rman/rman@test
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 10 11:33:38 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: ORCL (DBID=1266395358)
连接到恢复目录数据库
RMAN> resync catalog;
正在启动全部恢复目录的 resync
完成全部 resync
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12751636/viewspace-689506/ ,如需转载,请注明出处,否则将追究法律责任。