ASM OMF single-file creation form 重命名

2024-06-03 00:20

本文主要是介绍ASM OMF single-file creation form 重命名,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

OMF下不能自动命名,需要重新命名的话:1

1. spfile 可以 create pfile from spfile 后再create spfile from pfile

2 redo?

3 datafile?

Here are some details of the copy problem:

a) You are not allowed to set the numbers for the target file
ASMCMD> cp +AUX/AUX/DATAFILE/RMANTEST.265.804096431 +DATA/xydb/DATAFILE/RMANTEST.265.804096431
copying +AUX/AUX/DATAFILE/RMANTEST.265.804096431 -> +DATA/xydb/DATAFILE/RMANTEST.265.804096431
ASMCMD-8016: copy source->'+AUX/AUX/DATAFILE/RMANTEST.265.804096431' and target->'+DATA/xydb/DATAFILE/RMANTEST.265.804096431' failed
ORA-15056: additional error message
ORA-15046: ASM file name '+DATA/xydb/DATAFILE/RMANTEST.265.804096431' is not in single-file creation form
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 413
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)
ASMCMD>

b) If you omit the numbers then the structure of the datafile in the target ASM directory is different to the others:
ASMCMD> cp +AUX/AUX/DATAFILE/RMANTEST.265.804096431 +DATA/xydb/DATAFILE/RMANTEST
copying +AUX/AUX/DATAFILE/RMANTEST.265.804096431 -> +DATA/xydb/DATAFILE/RMANTEST
ASMCMD> ls -l
Type      Redund  Striped  Time             Sys  Name
DATAFILE  MIRROR  COARSE   JAN 08 14:00:00  Y    TBS01.264.774103285
                                            N    RMANTEST => +DATA/ASM/DATAFILE/RMANTEST.274.804179419
DATAFILE  MIRROR  COARSE   JAN 08 00:00:00  Y    SYSAUX.261.774103259
DATAFILE  MIRROR  COARSE   JAN 08 00:00:00  Y    SYSTEM.260.774103249
DATAFILE  MIRROR  COARSE   JAN 08 00:00:00  Y    UNDOTBS1.262.774103267
DATAFILE  MIRROR  COARSE   JAN 08 00:00:00  Y    UNDOTBS2.265.774103287
DATAFILE  MIRROR  COARSE   JAN 08 00:00:00  Y    UNDOTBS3.266.774103291
ASMCMD>

SYMPTOMS

ORA-15046 when using asmcmd pwmove command on password file
 

$ asmcmd pwmove --asm +DG/ASM/PASSWORD/pwdasm.256.934825981 +DG1/ASM/PASSWORD/pwdasm.256.934825981 -f
moving +DG/ASM/PASSWORD/pwdasm.256.934825981 -> +DG1/ASM/PASSWORD/pwdasm.256.934825981
ASMCMD-8016: copy source '+DG/ASM/PASSWORD/pwdasm.256.934825981' and target '+DG1/ASM/PASSWORD/pwdasm.256.934825981' failed
ORA-15056: additional error message
ORA-15046: ASM file name '+DG1/ASM/PASSWORD/pwdasm.256.934825981' is not in single-file creation form       <<<-----------------------
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 603
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)

CHANGES

None

CAUSE

Destination file name cannot be in a OMF format
 
target '+DG/ASM/PASSWORD/pwdasm.256.934825981' failed <<<----------"pwdasm.256.934825981" is an OMF compliant name

Using Oracle Managed Files
 

SOLUTION

Use a non-OMF destination file name

Example:
$ asmcmd pwmove --asm +DG/ASM/PASSWORD/pwdasm.256.934825981 +DG1/ASM/PASSWORD/asmpwdfile -f

Note: you may or may not need to use the force "-f" option in the command.

RMAN duplicate has failed with ORA-15046 while restoring the spfile
 

RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error while restoring backup piece <backup piece name>
ORA-32015: unable to restore SPFILE
ORA-17502: ksfdcre:4 Failed to create file <ASM DG Name>/<DB_UNIQUE_NAME>/PARAMETERFILE/spfile.<nnnn>.<nnnnnnn>
ORA-15046: ASM file name '<ASM DG Name>/<DB_UNIQUE_NAME>/PARAMETERFILE/spfile.<nnnn>.<nnnnnnn>' is not in single-file creation form

CHANGES

CAUSE

Bug 35801772
 
Symptoms match with the Bug which is in status 11 { Dev working }
 

SOLUTION

Action Plan which helped to resolve the issue given in the above Bug was :

If the spfile is specified within CRS on the auxiliary instance, this will cause the error for the spfile. Clearing it removes the issue.

Run the below command at the Auxiliary DB to confirm if spfile has been configured in CRS

$ srvctl config database -db '<db_unique_name/db_name>';

The above command showed that spfile setting was configured in CRS.

Clear the spfile setting in CRS using the below command : 

At the Auxiliary DB

========

$ srvctl modify database -db <db_unique_name/db_name> -spfile '' # it is two single quotes


 Then the spfile got Restored and RMAN Duplicate was successful. 

这篇关于ASM OMF single-file creation form 重命名的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1025511

相关文章

解决JavaWeb-file.isDirectory()遇到的坑问题

《解决JavaWeb-file.isDirectory()遇到的坑问题》JavaWeb开发中,使用`file.isDirectory()`判断路径是否为文件夹时,需要特别注意:该方法只能判断已存在的文... 目录Jahttp://www.chinasem.cnvaWeb-file.isDirectory()遇

在Pandas中进行数据重命名的方法示例

《在Pandas中进行数据重命名的方法示例》Pandas作为Python中最流行的数据处理库,提供了强大的数据操作功能,其中数据重命名是常见且基础的操作之一,本文将通过简洁明了的讲解和丰富的代码示例,... 目录一、引言二、Pandas rename方法简介三、列名重命名3.1 使用字典进行列名重命名3.编

VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virtual disk”问题

《VMWare报错“指定的文件不是虚拟磁盘“或“Thefilespecifiedisnotavirtualdisk”问题》文章描述了如何修复VMware虚拟机中出现的“指定的文件不是虚拟... 目录VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virt

使用Java编写一个文件批量重命名工具

《使用Java编写一个文件批量重命名工具》这篇文章主要为大家详细介绍了如何使用Java编写一个文件批量重命名工具,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录背景处理1. 文件夹检查与遍历2. 批量重命名3. 输出配置代码片段完整代码背景在开发移动应用时,UI设计通常会提供不

提示:Decompiled.class file,bytecode version如何解决

《提示:Decompiled.classfile,bytecodeversion如何解决》在处理Decompiled.classfile和bytecodeversion问题时,通过修改Maven配... 目录问题原因总结问题1、提示:Decompiled .class file,China编程 bytecode

form表单提交编码的问题

浏览器在form提交后,会生成一个HTTP的头部信息"content-type",标准规定其形式为Content-type: application/x-www-form-urlencoded; charset=UTF-8        那么我们如果需要修改编码,不使用默认的,那么可以如下这样操作修改编码,来满足需求: hmtl代码:   <meta http-equiv="Conte

js异步提交form表单的解决方案

1.定义异步提交表单的方法 (通用方法) /*** 异步提交form表单* @param options {form:form表单元素,success:执行成功后处理函数}* <span style="color:#ff0000;"><strong>@注意 后台接收参数要解码否则中文会导致乱码 如:URLDecoder.decode(param,"UTF-8")</strong></span>

前端form表单+ifarme方式实现大文件下载

// main.jsimport Vue from 'vue';import App from './App.vue';import { downloadTokenFile } from '@/path/to/your/function'; // 替换为您的函数路径// 将 downloadTokenFile 添加到 Vue 原型上Vue.prototype.$downloadTokenF

Python脚本:对文件进行批量重命名

字符替换:批量对文件名中指定字符进行替换添加前缀:批量向原文件名添加前缀添加后缀:批量向原文件名添加后缀 import osdef Rename_CharReplace():#对文件名中某字符进行替换(已完结)re_dir = os.getcwd()re_list = os.listdir(re_dir)original_char = input('请输入你要替换的字符:')replace_ch

Open a folder or workspace... (File -> Open Folder)

问题:vscode Open with Live Server 时 显示Open a folder or workspace... (File -> Open Folder)报错 解决:不可以单独打开文件1.html ; 需要在文件夹里打开 像这样