日期:2014-05-16  浏览次数:20385 次

Oracle DB 创建恢复目录所有者
使用用户 ID  和相应的权限来配置恢复目录数据库,并注册一个数据库。 
1) 使用 SQL*Plus  配置恢复目录数据库。以 RCAT1028 为恢复目录数据库 SYS  用户的身份连接到该数据库。 

[oracle@rtest dbs]$ sqlplus sys/oracle@rcat1028 as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 28 16:06:05 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
 
SQL> 

2) 创建一个名为 RCAT 的表空间用于存放资料档案库数据。将其大小设置为  15 MB 。 

SQL> create tablespace rcat datafile '+DATA/rcat01.dbf'size 15M;

Tablespace created.
SQL> 

3) 创建一个将作为恢复目录数据库所有者的用户。将用户命名为 RCATOWNER。
默认的表空间应为 RCAT 表空间,并且此用户对该表空间的使用无限额限制。 

SQL> create user rcatowner identified by oracle default tablespace rcat quota unlimited on rcat;

User created.
 
SQL> 

4) 将 RECOVERY_CATALOG_OWNER 角色授予 RCATOWNER 用户。 

SQL> grant recovery_catalog_owner to rcatowner;

Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options