首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

Oracle DB 创造恢复目录所有者

2013-10-29 
Oracle DB 创建恢复目录所有者使用用户 ID和相应的权限来配置恢复目录数据库,并注册一个数据库。 1) 使用 S

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 ProductionWith the Partitioning, Automatic Storage Management, OLAP, Data Miningand 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> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Automatic Storage Management, OLAP, Data Miningand Real Application Testing options 

热点排行