XTTS Creates Alias on Destination when Source and Destination use ASM (Doc ID 2351123.1)
XTTS Creates Alias on Destination when Source and Destination use ASM (Doc ID 2351123.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
SYMPTOMS
When using XTT migration method (both Note 2005729.1-12C and Note 1389592.1-11G) and both source and destination use ASM, the procedure does not create OMF datafiles in destination ASM. Instead, it creates ASM aliases.
当使用XTT迁移方法( Note 2005729.1 -12C和 Note 1389592.1 -11G)并且源和目标都使用ASM时,该过程不会在目标ASM中创建OMF数据文件。而是创建ASM别名。
CAUSE
RMAN cannot explicitly name datafiles with an OMF name and thus it creates an alias with underscore (_) which refers to the actual OMF name on destination.
RMAN无法使用OMF名称显式命名数据文件,因此RMAN使用下划线(_)创建别名,该别名引用目标上的实际OMF名称。
Since we cannot give explicit OMF name on destination, the only way to map the datafiles is to use alias thus justifying cause.
由于我们无法在目标位置上给出明确的OMF名称,因此映射数据文件的唯一方法是使用别名,从而说明原因。
SOLUTION
To avoid the use of these aliases on the destination, you can: 为了避免在目标上使用这些别名,您可以
1. Identify the datafiles created in destination: 确定在目标上创建数据文件
a. using asmcmd:
For example:
ASMCMD> cd +<PATH>
ASMCMD> ls
CATDB/
conv_test_265_930050283
test_convert_260_929258385
testing_conv_267_930050263
ASMCMD> ls -l
Type Redund Striped Time Sys Name
Y CATDB/
DATAFILE UNPROT COARSE DEC 09 06:00:00 N conv_test_265_930050283 => +<PATH>/DATAFILE/<FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 06:00:00 N test_convert_260_929258385 => +<PATH>/DATAFILE/<FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 06:00:00 N testing_conv_267_930050263 => +<PATH>/DATAFILE/<FILE_NAME>
ASMCMD> ls catdb/datafile
<FILE_NAME>
<FILE_NAME>
<FILE_NAME>
ASMCMD> ls -l catdb/datafile
Type Redund Striped Time Sys Name
DATAFILE UNPROT COARSE DEC 09 06:00:00 Y <FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 06:00:00 Y <FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 06:00:00 Y <FILE_NAME>
b. Using query against V$ASM_ALIAS:
For example:
set pagesize 0
select '''' ||'+<PATH>/' || name || ''','
FROM v$asm_alias
where group_number=1
and ( name like 'CIS%' or name like 'DVC%' or name like 'MSRMT%')
order by 1
;
2. Modify the import command to include actual datafile names: 修改导入命令以包括实际的数据文件名:
For example for Step 5B.3, change command 例如对于步骤5B.3,更改命令
FROM:
$ impdp directory=DATA_PUMP_DIR logfile=<FILE_NAME>.log network_link=ttslink \
> transport_full_check=no \
> transport_tablespaces=<TABLESPACE_NAME1>,<TABLESPACE_NAME2> ,<TABLESPACE_NAME3>\
> transport_datafiles='+<PATH>/<FILE_NAME>', \
> '+<PATH>/DATAFILE/<FILE_NAME>', \
> '+<PATH>/DATAFILE/<FILE_NAME>'
TO:
$ impdp directory=DATA_PUMP_DIR logfile=tts_imp.log network_link=<LINK_NAME>\
> transport_full_check=no \
> transport_tablespaces=<TABLESPACE_NAME1>,<TABLESPACE_NAME2>,<TABLESPACE_NAME3>\
> transport_datafiles='+<PATH>/DATAFILE/<FILE_NAME>', \
> '+<PATH>/DATAFILE/<FILE_NAME>', \
> '+<PATH>/DATAFILE/<FILE_NAME>'
NOTE: we are substituting the alias with the actual OMF datafile name. 注意:我们用实际的OMF数据文件名替换别名。
Results:
Import: Release 12.1.0.2.0 - Production on Fri Dec 9 11:15:58 2016 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. Username: system/<PASSWORD> Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics
and Real Application Testing options
Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** directory=DATA_PUMP_DIR logfile=tts_imp.log network_link=ttslink transport_full_check=no transport_tablespaces=<TABLESPACE_NAME>,<TABLESPACE_NAME>,<TABLESPACE_NAME> transport_datafiles=+<PATH>/DATAFILE/<FILE_NAME>, +<PATH>/DATAFILE/<FILE_NAME>, +<PATH>/DATAFILE/<FILE_NAME>
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/STATISTICS/MARKER
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at Fri Dec 9 11:17:42 2016 elapsed 0 00:01:38
In destination database, after tablespace plugin, we see: 在目标数据库中,在表空间插件之后,我们看到:
SQL> l
1 select file#, name from v$datafile where ts# in
2 (select ts# from v$tablespace where
3* name in ('<TABLESPACE_NAME1>', '<TABLESPACE_NAME2>', '<TABLESPACE_NAME3>'))
SQL / FILE# NAME
---------- -------------------------------------------------------------------------------- 11 +<PATH>/DATAFILE/<FILE_NAME>
12 +<PATH>/DATAFILE/<FILE_NAME>
13 +<PATH>/DATAFILE/<FILE_NAME>
3. Once tablespaces are altered to read write, remove the aliases. 将表空间更改为可读写后,请删除别名。
For example:
ASMCMD> rmalias conv_test_265_930050283 test_convert_260_929258385 testing_conv_267_930050263
ASMCMD> ls
CATDB/
ASMCMD> cd CATDB/DATAFILE
ASMCMD> ls -l
Type Redund Striped Time Sys Name
DATAFILE UNPROT COARSE DEC 09 11:00:00 Y <FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 11:00:00 Y <FILE_NAME>
DATAFILE UNPROT COARSE DEC 09 11:00:00 Y <FILE_NAME>
REFERENCES
BUG:25183374 - RESTORE FROM PLATFORM NOT HONORING THE OMF FORMAT
NOTE:2005729.1 - 12C - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup
NOTE:1389592.1 - 11G - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup
XTTS Creates Alias on Destination when Source and Destination use ASM (Doc ID 2351123.1)的更多相关文章
- 11G-使用跨平台增量备份减少可移动表空间的停机时间 XTTS (Doc ID 1389592.1)
11G - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 13895 ...
- How to Create Transportable Tablespaces Where the Source and Destination are ASM-Based (Doc ID 394798.1)
How to Create Transportable Tablespaces Where the Source and Destination are ASM-Based (Doc ID 39479 ...
- source /etc/profile报错-bash: id:command is not found
由于误操作导致 source /etc/profile 报错 -bash: id:command is not found 此时,linux下很多命令到不能能用,包括vi ls 等... 可以使用 e ...
- matlab数据的导入和导出,以matlab工作区workspace为source和destination
MATLAB支持工作区的保存.用户可以将工作区或工作区中的变量以文件的形式保存,以备在需要时再次导入. 保存工作区可以通过菜单进行,也可以通过命令窗口进行. 数据导出 1. 保存整个工作区 选择Fil ...
- 转 Oracle Transportable TableSpace(TTS) 传输表空间 说明
############1 迁移数据库的集中方法 三.相关技术 迁移方式 优势 不足1 Export and import • 对数据库版本,以及系统平台没有要求 • 不支持并发,速度慢• 停机时 ...
- V4 Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245.1)
V4 Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245. ...
- 12C-使用跨平台增量备份减少可移动表空间的停机时间 (Doc ID 2005729.1)
12C - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 20057 ...
- Shell 编程-常见的文件处理命令
touch 命令 touch命令用于创建空文件,例如有时应用程序希望在它们写入数据之前,某个日志文件就已经存在.这时可用touch命令创建一个空文件:touch test1:touch命令还可以用来改 ...
- 【AutoMapper官方文档】DTO与Domin Model相互转换(中)
写在前面 AutoMapper目录: [AutoMapper官方文档]DTO与Domin Model相互转换(上) [AutoMapper官方文档]DTO与Domin Model相互转换(中) [Au ...
随机推荐
- Codeves 4279 线段树练习5
有n个数和5种操作 add a b c:把区间[a,b]内的所有数都增加c set a b c:把区间[a,b]内的所有数都设为c sum a b:查询区间[a,b]的区间和 max a b:查询区间 ...
- 查看yum已安装的包
在linux下如何使用yum查看安装了哪些软件包 列出所有已安装的软件包 yum list installed yum针对软件包操作常用命令: 1.使用 yum 查找软件包 命令:yum search ...
- nginx 自启动设置
首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: 1 vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx ...
- 孟文静浅谈AG百家庄闲技巧,下三路的运用以及三株路的正反打法
关于三珠路的各种打法,这里我做个详细的讲解,如想了解更多打法可+qq<738不要字4633>或关注VX公众号<孟文静1> 三珠路的打法源于叶汉,叶汉的打法是——三珠路打反 先看 ...
- srvany.exe读取配置文件问题
使用instsrv.exe与srvany.exe将自己的程序弄成免登录系统就能自动启动了,然而程序运行需要读取相应的配置文件,所以程序是跑起来了,但不能正常使用,找了很久终于找到了答案.在之前的基础上 ...
- Vue之使用JsonView来展示Json树
前两天干活儿有个需求,在前端需要展示可折叠的Json树,供开发人员查看,这里采用JsonView组件来实现,它是一款用于展示Json的Vue组件,支持大体积的Json文件快速解析渲染,下面记录一下实现 ...
- aspnet boilerplate 随笔一
使用abp模板进行项目开发: 1:准备工作:我使用v2.x版本,所以会依赖.net core 2.2 查看并更新本地环境: 更新.net core版本:cmd 运行 dotnet --version查 ...
- SAP 基础知识
SAP R/3系统的应用层由应用服务器及消息服务器(Message Server)组成. 应用服务器组件如下: 工作进程(Work Process) 调度机(Dispatcher) 网关服务器(Gat ...
- ORA-07217 environment variable cannot be evaluated
问题描述:还是rman的问题,一个很沙雕的问题,改了半天,准备是要做数据库的全备,和归档的备份 1.连接rman进行备份,这里要保持数据库为mount状态,因为要对数据库全备 [oracle@orcl ...
- Centos7部署mysql
安装mysql yum install mysql mysql-server 会出现以下错误: [root@yl-web yl]# yum install mysql-server Loaded pl ...