当前位置:数据库 > Oracle >>

Oracle DB创建恢复目录所有者

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
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,