创建表空间
create tablespace back datafile 'testfile' size 100M;
创建用户
create user rman identified by zw default tablespace back temporary tablespace temp;
授权
grant connect,resource,recovery_catalog_owner to rman;
链接到恢复数据库(Rman下)
connect catalog rman/rman;
创建数据数据库(Rman下)
create catalog;
把Rman目标指向要备份的数据库同时链接恢复数据库
rman target test/zw@zw rcvcat rman/rman@zw
注册数据库(Rman下)
register database;