广告
返回顶部
首页 > 资讯 > 数据库 >rman duplicate 比較重要的知识点
  • 630
分享到

rman duplicate 比較重要的知识点

2024-04-02 19:04:59 630人浏览 八月长安
摘要

rman duplicate database 必须是同样的平台,可是支持32bit\64bit 间复制,且 在复制完毕后须要执行$oracle_HOME/rdbms/admin/utlirp.sql脚本来

rman duplicate database 必须是同样的平台,可是支持32bit\64bit 间复制,且 在复制完毕后须要执行$oracle_HOME/rdbms/admin/utlirp.sql
脚本来转换pl/sql 代码

The DUPLICATE command requires one or more auxiliary channels. These channels perfORM the work of the duplication on the auxiliary database instance.
rman duplicate 命令须要在备库上至少要分配一个以上辅助通道(auxiliary channels)

If the source database files are in the Oracle Managed Files (OMF) format, then you cannot use the DB_FILE_NAME_CONVERT and
LOG_FILE_NAME_CONVERT initialization parameters or the fileNameConversionSpec clause to generate new OMF file names for the
duplicate database. If you do not follow this rule, the new OMF files generated from these three methods can cause problems
使用duplicate 时必需要注意,假设源库使用OMF,那么我们就不能使用 DB_FILE_NAME_CONVERT 和 LOG_FILE_NAME_CONVERT 和其它的文件转
换方式。否者就会出问题;比如。备库的控制文件中的数据文件名称是依据DB_FILE_NAME_CONVERT 和 LOG_FILE_NAME_CONVERT 转换而来,可是实际数据文件求不在相应的路径下,实际文件会採用OMF来管理;这时须要使用:

1》RMAN catalog 和 switch database to copy

2》alter database rename file to 和

3》switch datafile file# to copy 来修正控制文件的信息;

当然也有例外,假设仅仅是换个asm 磁盘组名,其它路径名不变,能够使用DB_FILE_NAME_CONVERT
The only exception to this rule is when changing only an ASM disk group name. Assume that source data files and online redo
log files are stored in ASM disk group +SOURCEDSK. You want to store the duplicate database files in ASM disk group +DUPDSK.
In this case, you can set the initialization parameters as follows:
DB_FILE_NAME_CONVERT = ("+SOURCEDSK","+DUPDSK")
LOG_FILE_NAME_CONVERT = ("+SOURCEDSK","+DUPDSK")

RMAN uses DB_FILE_NAME_CONVERT or LOG_FILE_NAME_CONVERT to convert the disk group name, and then generates a new, valid file
name based on the converted disk group name.

-假设源库使用OMF,建议使用下面參数配置:
You have the following other supported options for naming data files when the source files are in the Oracle Managed Files format:

1.Use SET NEWNAME to specify names for individual data files.
2.Set DB_FILE_CREATE_DEST to make all data files of the new database Oracle-managed files, except the files for which SET

NEWNAME is used. You should not set DB_FILE_NAME_CONVERT if you set DB_FILE_CREATE_DEST.
DB_CREATE_FILE_DEST
DB_RECOVERY_FILE_DEST

对于redolog 假设没有设置DB_RECOVERY_FILE_DEST, or DB_CREATE_ONLINE_LOG_DEST_n. 则会使用DB_CREATE_FILE_DEST 參数指定的文件夹来存放

SQL> show parameter DB_CREATE_ONLINE_LOG_DEST
NAME TYPE VALUE


db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
若单独指定 db_create_online_logdest* 參数。则redolog member 会冗余放到这些单独指定的文件夹下

Supported options for naming online redo logs duplicated from Oracle-managed files are DB_CREATE_FILE_DEST,
DB_RECOVERY_FILE_DEST, or DB_CREATE_ONLINE_LOG_DEST_n.

----DB_CREATE_ONLINE_LOG_DEST_n 參数解释,为redolog,control file指定存放文件夹,指定多个则多路复用
DB_CREATE_ONLINE_LOG_DEST_n (where n = 1, 2, 3, ... 5) specifies the default location for Oracle-managed control files and online redo logs. If more than one DB_CREATE_ONLINE_LOG_DEST_n parameter is specified, then the control file or online redo log is multiplexed across the locations of the other DB_CREATE_ONLINE_LOG_DEST_n parameters. One member of each online redo log is created in each location, and one control file is created in each location.

Specifying at least two parameters provides greater fault tolerance for the control files and online redo logs if one of the locations should fail.

If a file system directory is specified as the default location, then the directory must already exist; Oracle does not create it. The directory must have appropriate permissions that allow Oracle to create files in it. Oracle generates unique names for the files, and a file thus created is an Oracle Managed File.
对于文件系统而言,指定的文件夹必须权限准确,且已经存在;假设没有,oracle 不会自己主动创建
注意:nofilenamecheck参数需要解释下:
如果在复制时,位置不同时,我们会用参数db_file_name_convert 对文件位置进行转换。 但是如果在复制时我们用的是相同的位置。 这里必须加上nofilenamecheck参数。 该参数通知复制操作不必在执行还原操作前确认文件名是不同的。如果没有指定nofilenamecheck参数,rman会给出如下错误:
RMAN-05001: auxiliary filename /DBSoft/oracle/oradata/woo/users01.dbf conflicts with a file used by the target database

您可能感兴趣的文档:

--结束END--

本文标题: rman duplicate 比較重要的知识点

本文链接: https://www.lsjlt.com/news/41671.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • rman duplicate 比較重要的知识点
    rman duplicate database 必须是同样的平台,可是支持32bit\64bit 间复制,且 在复制完毕后须要执行$ORACLE_HOME/rdbms/admin/utlirp.sql脚本来...
    99+
    2022-10-18
  • java的重要知识点有哪些
    本篇内容介绍了“java的重要知识点有哪些”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!Spring Cloud Config配置管理工具包...
    99+
    2023-06-04
  • Ajax的重要知识点有哪些
    这篇文章主要介绍“Ajax的重要知识点有哪些”,在日常操作中,相信很多人在Ajax的重要知识点有哪些问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Ajax的重要知识点有哪些”...
    99+
    2022-10-19
  • C编程语言的重要知识点有哪些
    本篇内容介绍了“C编程语言的重要知识点有哪些”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!在C语言中,您可以在类型转换中,运算符内部,函数声...
    99+
    2023-06-16
  • Java中的重要核心知识点之继承详解
    目录一、继承1、概念2、语法3、父类成员的访问(1)子类中访问父类成员变量(2)子类中访问父类成员方法4、super关键字5、子类构造方法6、super和this7、代码块执行顺序8...
    99+
    2022-11-12
  • AJAX应用中必须要掌握的重点知识有哪些
    小编给大家分享一下AJAX应用中必须要掌握的重点知识有哪些,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!AJAX是什么是Asyn...
    99+
    2022-10-19
  • 可能是全网最好的MySQL重要知识点/面试题总结
    文末有公众号二维码,欢迎关注获取笔主最新更新文章,并可免费获取笔主总结的《Java面试突击》以及Java工程师必备学习资源。 @[toc] 什么是MySQL MySQL 是一种关系型数据库,在Java企业级开发中非常常用,因为 MyS...
    99+
    2022-02-17
    可能是全网最好的MySQL重要知识点/面试题总结
  • 面试题总结:可能是全网最好的MySQL重要知识点
    作者:Snailclimb 整理编辑:SegmentFault本文原载于SegmentFault专栏JavaGuide,如侵删。标题有点标题党的意思,但希望你在看了文章之后不会有这个想法——这篇文...
    99+
    2022-10-18
  • “Java IDE 重定向和打包:您需要了解的关键知识点是什么?”
    Java IDE 重定向和打包:您需要了解的关键知识点是什么? 作为一名Java开发人员,您可能会遇到需要对Java应用程序进行重定向和打包的情况。这些操作对于开发过程和最终应用程序的部署都是非常重要的。在本文中,我们将深入探讨Java I...
    99+
    2023-08-19
    ide 重定向 打包
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作