![OCP认证考试指南(1ZO-063) Oracle Database 12c高级管理](https://wfqqreader-1252317822.image.myqcloud.com/cover/789/27110789/b_27110789.jpg)
上QQ阅读APP看书,第一时间看更新
3.1.5 创建恢复目录
现在仓库数据库中已经有了RMAN用户账户,此时可以启动RMAN,连接到目录,并使用CREATE CATALOG命令初始化仓库:
[oracle@tettnang ~]$ rman catalog rcat_owner/Rcat9095@rcat Recovery Manager: Release 12.1.0.1.0 - Production on Tue Feb 18 14:55:14 2014 Copyright(c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database RMAN> create catalog; recovery catalog created RMAN>
从此时起,使用仓库将变得十分简单,只需要在包含CATALOG参数的RMAN命令行中指定仓库用户名和密码(或在RMAN会话中使用CONNECT CATALOG命令)。在Oracle Enterprise Manager Cloud Control 12c中,可以持久保存仓库凭据信息,如图3-1所示。在本例中,数据库目标dwcdb是由Enterprise Manager Cloud Control监视的一个数据库。如果数据库未被监视,就可以指定将要作为恢复目录数据库的任意数据库的主机、端口和实例名。
![](https://epubservercos.yuewen.com/DC8256/15477643204540406/epubprivate/OEBPS/Images/figure_0074_0001.jpg?sign=1739005436-Og3djwnTr93lWw7wjBe38sWbd7TwVNJJ-0-7d1d268234e2de40d1b9e74c7e0df8c9)
图3-1 持久保存RMAN仓库凭据
在未来的Cloud Control会话中,所有RMAN备份和恢复操作都将自动使用恢复目录。