zoukankan      html  css  js  c++  java
  • 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
     
  • 相关阅读:
    Discrete Logging
    P1378 油滴扩展
    P3390 【模板】矩阵快速幂
    RMQ算法
    P1372 又是毕业季I
    P1440 求m区间内的最小值
    高效判断素数方法
    阿尔贝喝我
    浙江大学PAT上机题解析之2-11. 两个有序链表序列的合并
    顺序队列之C++实现
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316703.html
Copyright © 2011-2022 走看看