Oracle 11g RMAN虚拟私有目录(二)

2015-07-16 12:08:49 · 作者: · 浏览: 1
1982, 2011, Oracle and/or its affiliates.? All rights reserved.


RMAN> connect catalog vpc1/vpc1@cs


connected to recovery catalog database


RMAN>



8.创建虚拟私有目录
[oracle11@jingyong1 cs]$ rman catalog vpc1/vpc1@cs


Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:25:40 2015


Copyright (c) 1982, 2011, Oracle and/or its affiliates.? All rights reserved.


connected to recovery catalog database


RMAN> create virtual catalog;


found ineligible base catalog owned by RMAN
found eligible base catalog owned by VPC1
created virtual catalog against base catalog owned by VPC1


9.如果是使用 10.2或之前的版本RMAN且要使用虚拟私有目录,那么可以执行下面的PL/SQL过程来创建虚拟私有目录(这里的base_catalog_owner是基本恢复目录用户)
SQL> EXECUTE base_catalog_owner.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;


10.注册目标数据库
[oracle11@jingyong1 cs]$ rman target sys/system@db catalog vpc1/vpc1@cs


Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:46:51 2015


Copyright (c) 1982, 2011, Oracle and/or its affiliates.? All rights reserved.


connected to target database: DB (DBID=1640573015)
connected to recovery catalog database


RMAN> register database;


database registered in recovery catalog
starting full resync of recovery catalog
full resync complete


--------------------------------------推荐阅读 --------------------------------------


--------------------------------------分割线 --------------------------------------