VPC实验

创建恢复目录
为恢复目录创建表空间:
SQL> CREATE TABLESPACE "RMANTABS" DATAFILE '/u01/app/oracle/oradata/test/rman01.dbf' SIZE 100M
创建用户:
SQL> create user rman identified by rman default tablespace rmantabs;
给用户赋予相应权限:
SQL> grant connect to rman;
SQL> alter user rman quota unlimited on rmantabs;
SQL> grant recovery_catalog_owner to rman;


用rman连接目录库:
[oracle@localhost ~]$ rman catalog rman/rman@test target /
RMAN> create catalog tablespace rmantabs;
RMAN> register database;


创建虚拟用户,并给虚拟用户 分配需要维护的 target 数据库:
SQL> create user ztp identified by ztp default tablespace rmantabs; 
SQL> GRANT recovery_catalog_owner TO ztp;


RMAN> CONNECT CATALOG rman/rman@test;
RMAN> grant catalog for database "TEST" to ztp;
RMAN> CONNECT CATALOG ztp/ztp@test;
RMAN> CREATE VIRTUAL CATALOG;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值