duplicate命令调用非常简单。oracle将实现数据库级复制的大量脚本都进行了封装。
只要准备工作充分,只需要简单的执行一条语句。
除了穿件副本数据库之外,还能用来创建物理standby数据库。
除了穿件副本数据库之外,还能用来创建物理standby数据库。
可以看到duplicate的两个用途的命令:
duplicate target database for standby;
duplicate target database to new_database;
duplicate 命令虽然参数众多,但是语法简单,并且大多数参数不是必选的。而是为了提高复制数据库时的灵活性。增强其功能。
Syntax Element | Description |
---|---|
FOR STANDBY | Specifies that database being duplicated is to be used as a standby database. RMAN restores the most recent files, unless SET UNTIL is specified. If DORECOVER is specified, then RMAN also recovers database. RMAN always leaves standby database in mounted state after executing DUPLICATE command. |
dupsbyOptionList | Specifies options that only apply when creating a standby database. |
DORECOVER | Specifies th |