联系:手机/微信(+86 17813235971) QQ(107644445)
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
经过测试,发现pdb插入cdb的过程中,对于xml的错误提示功能非常强大,在简单的测试过程中,发现出tablespace部分不能正常提示正确值之外,其他都可以完美的提示正常值,根据他的提示去修改值即可,下面是测试过程中主要的错误值和正确值提示
<cid>2</cid> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of cid (2 in the plug XML file, 4 in the data file) <afn>16</afn> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of afn (16 in the plug XML file, 19 in the data file) <guid>E0408583F149457AE043161EA8C08888</guid> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of guid (E0408583F149457AE043161EA8C08888 in the plug XML file, E0408583F149457AE043161EA8C0E5B7 in the data file) <rdba>4094824</rdba> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of rdba (4094824 in the plug XML file, 4194824 in the data file) <createscnbas>3283924</createscnbas> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of createscnbas (3283924 in the plug XML file, 3289484 in the data file) <fcpsb>3289191</fcpsb> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65139: Mismatch between XML metadata file and data file D:\PDB1_SYSTEM01.DBF for value of fcpsb (3289191 in the plug XML file, 3291031 in the data file)
对于表空间部分的这几个值,不能很好的验证,如果人工编辑,需要注意这些值,都可能出现类似错误ORA-65064,提示不太友好(但是测试中表空间名称不正确可以插入进去)
<name>SYSAUX1</name> <type>0</type> <tsn>1</tsn> <status>1</status> <issft>0</issft> <name>SYSTEM</name> <type>0</type> <tsn>1</tsn> SQL> create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy ; create pluggable database pdb1 using 'd:/pdb1_win_un.xml' nocopy * 第 1 行出现错误: ORA-65064: 插件 XML 文件的内容不正确
在正常的情况下,如果是做nocdb插入到cdb中或者是pdb的unplug/plug建议直接使用生成的xml文件,不需要人工去编辑它(如果要去修改它,你需要理解它的xml规则)
根据pdb的插入如此强大功能,提供给我们单独pdb数据库异常恢复很好的帮助,相关细节在后续章节揭晓,关于pdb的数据库一些异常恢复