6.You are working on a CATDB database that contains an Oracle Database version 11.1 catalog schema owned by the user RCO11. The INST1 database contains an Oracle Database version 10.1 catalog schema owned by the user RCAT10.
You want the RMAN to import metadata for database IDs 1423241 and 1423242, registered in RCAT10, into the recovery catalog owned by RCO11. You also want to deregister them from the catalog after import.
You executed the following commands to achieve this:
RMAN> CONNECT CATALOG
rco11/password@catdb
RMAN> IMPORT CATALOG
rcat10/oracle@inst1 DBID=1423241,1423242;
What happens if the RCO11 catalog has scripts with the same name as that of the scripts in RCAT10 catalog?
A. The scripts in the RCO11 catalog are overwritten.
B. RMAN renames the local stored scripts in the RCO11 catalog.
C. The RMAN session in which the command is executed aborts.
D. RMAN renames the global scripts that are imported from the RCAT10 catalog.
Answer: D
参考:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmcatdb.htm#BRADV89699
在使用导入目录时,源目录架构是要导入到不同的模式中的目录架构。目标目录架构是您打算导入源目录架构的目录架构。
默认情况下,RMAN从源恢复目录中导入所有注册的目标数据库的元数据。或者,可以从源目录模式导入指定的数据库列表。
默认情况下,RMAN在成功导入后将从源目录模式注销注册的数据库。RMAN在注销合并数据库之前和之后打印消息,表明是否注销成功。你也可以指定No Unregister选项指定数据库不从目标目录中注销。
存储的脚本是全局的或局部的。全局脚本,但不是本地脚本,可能在导入过程中产生名称冲突,因为目标模式包含相同的脚本名称。在这种情况下,RMAN重命名全局脚本名称为复制script_name。例如,RMAN将bp_cmd为复制bp_cmd。
如果重命名全局脚本还不是唯一的,那么RMAN重命名为复制(2)script_name。如果此脚本的名字也存在,那么RMAN重命名脚本为复制(3)script_name。RMAN继续复制(N)模式直到脚本唯一命名的。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/81227/viewspace-2121474/
,如需转载,请注明出处,否则将追究法律责任。