Home > Database > Mysql Tutorial > body text

创建catalog数据库步骤

WBOY
Release: 2016-06-07 15:23:24
Original
1948 people have browsed it

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 创建catalog 步骤一:创建恢复目录用户 step1: 为恢复目录单独创建表空间catalog_tbs, 创建恢复目录用户 CREATE USER rcat_user IDENTIFIED BY rcat_password DEFAULT TABLESPACE catalog_tbs; ste

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入

  创建catalog

  步骤一:创建恢复目录用户

  step1: 为恢复目录单独创建表空间catalog_tbs,

  创建恢复目录用户 CREATE USER rcat_user IDENTIFIED BY rcat_password DEFAULT TABLESPACE catalog_tbs;

  step2: 为恢复目录授予下列角色

  connect

  resource

  recovery_catalog_owner

  GRANT connect,resource,recovery_catalog_owner TO rcat_user;

  步骤二:创建恢复目录模式对象

  step1: 使用RMAN连接的恢复目录

  RMAN

  catalog=rcat_user/rcat_password

  step2: 在RMAN 提示符下执行create catalog命令

  create catalog tablespace catalog_tbs;

  步骤三:在恢复目录中注册数据库

  step1: 使用RMAN 同时连接到数据库和恢复目录

  set ORACLE_SID=main_db

  RMAN target=backup_admin/backupuserpassword

  catalog=rcat_user/rcat_password@recover

  step2: 使用恢复目录注册数据库

  RMAN>Register database;

  rman catalog,撤消目标数据库注册

  步骤一:进入要撤消注册的数据库,获取这个数据库的DBID

  SQL>select dbid from v$database;

  DBID

  2539725638

  步骤二:连接拥有恢复目录的模式,确定恢复目录中该数据库的DB_KEY

  SQL>select db_key from db where db_id=2539725638

  DB_KEY

  1

  步骤三:使用dbms_rcvcat.unregisterdatabase过程从恢复目录中撤消数据库的注册

  exec dbms_rcvcat.unregisterdatabase(1,2539725638)

创建catalog数据库步骤

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template