问题描述
大家好,
我需要使用RMAN转换可传输表空间和数据泵将带有TDE的11g RAC DB迁移到带有TDE的另一个11g RAC DB
源本地: 11.2.0.4 RAC数据库,TDE位于2节点RAC群集上的SunSParc 64位Solaris OS 10 (大字节序)。
目标Exadata: 11.2.0.4 RAC数据库在第1/8机架Exadata机器XM8上,RHEL7.7 64位 (小端序),同样在2节点RAC群集上。
以下是我在这个追求中使用的步骤:
1.使用来自源数据库的预先创建的DB模板,使用dbca创建目标RAC数据库
2.尝试了2种方法: A) 使用source的钱包密码配置和设置全新的TDE (表空间级别)。B) 将电子钱包从源节点复制到目标节点,使用与源相同的加密密码来创建和打开目标钱包。使用这两种方法,target wallet创建了fine。
3.创建了一个具有2个数据文件的测试表空间 & 一个源上的用户
4.将表空间置于源代码上的只读模式
5.对源上的表空间元数据进行了导出转储: expdp系统TRANSPORT_TABLESPACES = xtt_tst TRANSPORT_FULL_CHECK = 是目录 = mig2exa dumpfile = xtt_tst_metadata.dmp日志文件 = xtt_tst_metadata.log
6.将转储和数据文件都复制到目标
7.将表空间带到源上的读/写模式
8.使用rman convert命令转换目标上的数据文件
RMAN> 转换数据文件
'/dbaswap/mig2exa//XTT_TST_1.dbf','/dbaswap/mig2exa//XTT_TST_2.dbf'
DB_FILE_NAME_CONVERT '/dbaswap/mig2exa/','datac1' 来自平台 'Solaris[tm] OE (64位) ';
9.在目标上创建用户 (使用表空间)-这很重要,否则插入不起作用
10.开始使用导入转储插入tableapce: impdp userid = 系统目录 = mig2exa transport_datafiles = 'datac1/xtt_tst_1.dbf','datac1/xtt_tst_2.dbf' dumpfile = xtt_tst_metadata.dmp nolofile = 是
The error I'm getting from both options 2A and 2B ( above) is:
ORA-39123: Data Pump transportable tablespace job aborted
ORA-28374: typed master key not found in wallet
我如何得到这个错误?为什么即使我将源钱包复制到target并使用相同的加密密码,也无法在target上识别主密钥?这种RMAN转换方法甚至可以使用11g TDE数据库吗?
请指教!
问候,
Ash Saxena
我需要使用RMAN转换可传输表空间和数据泵将带有TDE的11g RAC DB迁移到带有TDE的另一个11g RAC DB
源本地: 11.2.0.4 RAC数据库,TDE位于2节点RAC群集上的SunSParc 64位Solaris OS 10 (大字节序)。
目标Exadata: 11.2.0.4 RAC数据库在第1/8机架Exadata机器XM8上,RHEL7.7 64位 (小端序),同样在2节点RAC群集上。
以下是我在这个追求中使用的步骤:
1.使用来自源数据库的预先创建的DB模板,使用dbca创建目标RAC数据库
2.尝试了2种方法: A) 使用source的钱包密码配置和设置全新的TDE (表空间级别)。B) 将电子钱包从源节点复制到目标节点,使用与源相同的加密密码来创建和打开目标钱包。使用这两种方法,target wallet创建了fine。
3.创建了一个具有2个数据文件的测试表空间 & 一个源上的用户
4.将表空间置于源代码上的只读模式
5.对源上的表空间元数据进行了导出转储: expdp系统TRANSPORT_TABLESPACES = xtt_tst TRANSPORT_FULL_CHECK = 是目录 = mig2exa dumpfile = xtt_tst_metadata.dmp日志文件 = xtt_tst_metadata.log
6.将转储和数据文件都复制到目标
7.将表空间带到源上的读/写模式
8.使用rman convert命令转换目标上的数据文件
RMAN> 转换数据文件
'/dbaswap/mig2exa/
DB_FILE_NAME_CONVERT '/dbaswap/mig2exa/
9.在目标上创建用户 (使用表空间)-这很重要,否则插入不起作用
10.开始使用导入转储插入tableapce: impdp userid = 系统目录 = mig2exa transport_datafiles = 'datac1/xtt_tst_1.dbf','datac1/xtt_tst_2.dbf' dumpfile = xtt_tst_metadata.dmp nolofile = 是
The error I'm getting from both options 2A and 2B ( above) is:
ORA-39123: Data Pump transportable tablespace job aborted
ORA-28374: typed master key not found in wallet
我如何得到这个错误?为什么即使我将源钱包复制到target并使用相同的加密密码,也无法在target上识别主密钥?这种RMAN转换方法甚至可以使用11g TDE数据库吗?
请指教!
问候,
Ash Saxena
专家解答
我一直在看 (19c) 文档,我怀疑你不能用图像副本来做到这一点,即,我们用于跨平台转换的传统手段。
在跨平台图像复制部分:
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-transporting-data-across-platforms.html#GUID-D4C86E36-8EF8-489D-84CE-B8F045C8AB20
没有提及TDE,我认为这可能是有道理的,因为我们也需要备份钱包。
但是,在 “带备份的跨平台” 部分中:
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-transporting-data-across-platforms.html#GUID-4644069A-7849-49F2-A1BF-2193EBAFFDBD
有一个处理TDE的步骤列表,特别是
--
-- source
--
If the tablespace being transported is a TDE-encrypted tablespace, then specify the passphrase that will be used to wrap the master key before storing it in the backupset.
The following command sets the passphrase to encr_temp.
RMAN> SET PASSPHRASE ON IDENTIFIED BY encr_temp;
RMAN > BACKUP
TO PLATFORM 'Solaris[tm] OE (64-bit)'
FORMAT '/tmp/xplat_backups/trans_ts.bck'
DATAPUMP FORMAT '/tmp/xplat_backups/trans_ts_dmp.bck'
TABLESPACE projects, tasks;
--
-- target
--
If the tablespace being transported is a TDE-encyrpted tablespace, then provide the passphrase that was used on the source database to wrap the master key.
The following example sets the passphrase to encr_temp.
SET PASSPHRASE ON IDENTIFIED BY encr_temp;
RMAN> RESTORE
FOREIGN TABLESPACE projects, tasks TO NEW
FROM BACKUPSET '/tmp/xplat_restores/trans_ts.bck'
DUMP FILE FROM BACKUPSET '/tmp/xplat_restores/trans_ts_dmp.bck';
在跨平台图像复制部分:
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-transporting-data-across-platforms.html#GUID-D4C86E36-8EF8-489D-84CE-B8F045C8AB20
没有提及TDE,我认为这可能是有道理的,因为我们也需要备份钱包。
但是,在 “带备份的跨平台” 部分中:
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-transporting-data-across-platforms.html#GUID-4644069A-7849-49F2-A1BF-2193EBAFFDBD
有一个处理TDE的步骤列表,特别是
--
-- source
--
If the tablespace being transported is a TDE-encrypted tablespace, then specify the passphrase that will be used to wrap the master key before storing it in the backupset.
The following command sets the passphrase to encr_temp.
RMAN> SET PASSPHRASE ON IDENTIFIED BY encr_temp;
RMAN > BACKUP
TO PLATFORM 'Solaris[tm] OE (64-bit)'
FORMAT '/tmp/xplat_backups/trans_ts.bck'
DATAPUMP FORMAT '/tmp/xplat_backups/trans_ts_dmp.bck'
TABLESPACE projects, tasks;
--
-- target
--
If the tablespace being transported is a TDE-encyrpted tablespace, then provide the passphrase that was used on the source database to wrap the master key.
The following example sets the passphrase to encr_temp.
SET PASSPHRASE ON IDENTIFIED BY encr_temp;
RMAN> RESTORE
FOREIGN TABLESPACE projects, tasks TO NEW
FROM BACKUPSET '/tmp/xplat_restores/trans_ts.bck'
DUMP FILE FROM BACKUPSET '/tmp/xplat_restores/trans_ts_dmp.bck';
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




