[20171130]关于rman的一些总结.txt

[20171130]关于rman的一些总结.txt

--//最近一直做rman相关测试,测试那个乱,没办法.无法从周围的人获得帮助,纯粹是自己的乱猜,乱测,不知道别人是否能看懂我写的东西.
--//有必要做一些总结,不一定对,仅仅是我当前的看法.

1.数据文件备份集中,文件头是最后写到备份集文件的.
2.使用备份集恢复也是一样,文件头也是最好写入的.
3.以上情况对as copy的方式也是一样.

--//oracle这样操作主要目的保证备份是好的可用,反之恢复也是一样.

4.关于备份参数filesperset,最好选择1(我自己的认为这样比较好,缺点当然是备份文件显得有点多),如果觉得备份文件太多,建议选择4,
  次之选择8,大于8.我个人不建议选择.
5.关于rman备份的input or output memory buffer问题,我直接摘录一段:

Oracle RMAN 11g Backup and Recovery.pdf

作者:Robert G. Freeman Matthew Hart
页数:689
出版社:Mc graw hill
出版号: ISBN: 978-0-07-162861-7
        MHID: 0-07-162861-4

RMAN in Memory P80

    RMAN builds buffers in memory through which it streams data blocks for potential backup. This
memory utilization counts against the total size of the PGA and, sometimes, the SGA. There are
two kinds of memory buffers. Input buffers are the buffers that are filled with data blocks read
from files that are being backed up. Output buffers are the buffers that are filled when the
memory-to-memory write occurs to determine whether a particular block needs to be backed up.
When the output buffer is filled, it is written to the backup location. The memory buffers differ
depending on whether you are backing up to or restoring from disk or tape. Figure 2-3 illustrates
input and output buffer allocation. It illustrates a backup of two datafiles being multiplexed into
a single backup set.
       
Input Memory Buffers
    When you are backing up the database, the size and number of input memory buffers depend on
the exact backup command being executed. Primarily, they depend on the number of files being
multiplexed into a single backup. Multiplexing refers to the number of files that will have their
blocks backed up to the same backup piece. To keep the memory allocation within reason, the
following rules are applied to the memory buffer sizes based on the number of files being backed
up together:

■ If the number of files going into the backup set is four or less, then RMAN allocates four
   buffers per file at 1MB per buffer. The total will be 16MB or less.
■ If the number of files going into the backup set is greater than four, but no greater than
   eight, then each file gets four buffers, each of 512KB. This ensures that the total remains
   at 16MB or less.
■ If the number of files being multiplexed is greater than eight, then RMAN allocates four
   buffers of size 128KB. This ensures that each file being backed up will account for 512KB
   of buffer memory.

    Bear in mind that these memory amounts are on a per-channel basis. So, if you allocate two
channels to back up a database with 32 datafiles, for instance, then RMAN will load-balance the
files between the two channels and may not end up with 16 files per channel. If some files are
significantly larger than others, you may end up with only 8 files going into one backup set and
24 files going into the other. If this were the case, then the buffers for the first channel with 8 files
would allocate 16MB of memory for input buffers (four buffers multiplied by 512KB each, multiplied
by 8 files), and the second channel would allocate 12MB of memory buffers (512KB per file
multiplied by 24 files).
    You can use the following query to monitor the size of buffers on a per-file basis while the
backup is running:

SELECT set_count, device_type, type, filename, buffer_size, buffer_count, open_time, close_time
  FROM v$backup_async_io
ORDER BY set_count, type, open_time, close_time;

--//注意:原来有这个问题!下次备份注意看buffer_size!

Output Buffers When Backing Up to Disk P81
    In addition to input buffers, RMAN allocates output buffers, depending on what the output source
is. If you are backing up to disk, then RMAN allocates output buffers that must fill up with data blocks
from the input buffers before being flushed to the backup piece on your file system. Per channel,
there will be four output buffers, each of which is 1MB. So, the memory footprint per channel will
always be 4MB.

Output Memory Buffers When Backing Up to Tape P81
    Memory allocation is different when backing up to tape, to account for the slower I/O rates
that we expect from tape devices. When you are backing up to or restoring from tape, RMAN
allocates four buffers per channel process, each of which is 256KB, so that the total memory
footprint per channel is 1MB.

6.关于写入备份集顺序问题.我个人认为至少对于单个数据文件应该按照顺序写入.

7.文件头损坏,dbv与rman检查无效,感觉都是坏块,使用如下命令无效!!
RMAN> recover datafile 6 block 1;
RMAN> blockrecover datafile 6 block 1;

8.另外在备份期间如果有脏块写盘:会在一些视图中记录数据块的最高scn,这样确定如果不完全恢复scn在文件头与最高scn之间情况,
  不会选择这个备份,而且如果catalog,oracle不会扫描备份集合或者备份image,确定最高的scn.
--//as copy备份记录在,例子:
select recid,file#,NAME,CHECKPOINT_CHANGE#,ABSOLUTE_FUZZY_CHANGE# from v$datafile_copy where recid=33 ;
--//备份集可以查询,例子:
select file#,CHECKPOINT_CHANGE#,ABSOLUTE_FUZZY_CHANGE# from v$backup_datafile;

9.疑问:
--//上个星期做了rman copy备份与数据文件变化的测试.
--//在做rman copy备份时数据文件增大,链接:http://blog.itpub.net/267265/viewspace-2147642/
http://blog.itpub.net/267265/viewspace-2147673/
--//提到检查备份copy image时发现没有BBBBB,CCCC字串.
--//我的猜测oracle 做映像备份与建立备份集一样,也是根据数据文件位图区确定读取那些数据块,这样在备份开始后新建立的块不会备份.
$ strings /home/oracle/backup/sugar01.dbf | grep "AAAA" |wc
100000  170040 3624077
$ strings /home/oracle/backup/sugar01.dbf | grep "BBBB" |wc
      0       0       0
$ strings /home/oracle/backup/sugar01.dbf | grep "CCCC" |wc
      0       0       0

--//后记:这是我当时的理解,实际上应该是错误的.有必要做一些的测试.自己看着都觉得乱!!

--//在做rman copy备份时数据文件减少的情况下,链接:http://blog.itpub.net/267265/viewspace-2147673/
--//而我在减少文件大小后:
SCOTT@book> ALTER DATABASE DATAFILE '/mnt/ramdisk/book/sugar01.dbf' RESIZE 9M ;
Database altered.

$ strings /home/oracle/backup/sugar01.dbf_yyy |grep "BBBBB" |wc
  62394  106045 2256986

$ strings /home/oracle/backup/sugar01.dbf_yyy |grep "CCCC" |wc
      0       0       0

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279069.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

支付宝红包php,支付宝红包赏金跳转源码,一键复制红包码,裂变推广

[html]代码库支付宝到店红包搜索码跳转推广裂变-引流*{padding:0;margin:0;}.main{overflow: hidden;}a {color:black;}.main img{width:100%;outline-width:0px;vertical-align:top;}.main{position: relative;}.main .copy-container{width: 100%;height: 0.42rem;position: …

apt-get更新软件包_如何使用Apt-fast加速软件包下载和更新

apt-get更新软件包By Default, Ubuntu uses apt-get to install packages and updates. Apt-get is a good tool but you can get much faster download speeds using Apt-Fast when downloading and updating your Ubuntu box. 默认情况下,Ubuntu使用apt-get安装软…

FallbackFactory启动的时候抛出异常

在Hystrix做熔断的时候,开始用的是FallBack,后来为了找出为啥exception,然后就用了FallBackFactory。但是奇怪的是,一起动就抛出异常,真的是百思不得骑姐,错了其解。后来在github上找到了解答:h…

制作首页的显示列表

1. 在首页添加显示问答的列表&#xff0c;并定义好相应的样式。 无序列表 <ul > <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> {% block body %}<div class"container"><div class"row clearfi…

php xxtea加密,php - esp32和php XXTEA字符串加密 - SO中文参考 - www.soinside.com

输入具有不同的数据类型可能会导致此问题&#xff0c;因为当前没有任何类型或范围检查的XXTEA实现。或者它可能是由于所涉及的两台计算机的不同端序行为&#xff0c;因为二进制文件通常存储为由字节构造的字数组。或者可能是由于缺少正式加密特定字符串和密钥的官方或标准参考示…

ipad iphone开发_如何在iPad或iPhone上使用外部GPS设备

ipad iphone开发If you bought a Wi-Fi only iPad and now you wish you could use GPS with it, this is the guide for you. Follow along to hook your iPad up to an external GPS unit and/or GPS-enabled smartphone phone. 如果您购买了仅支持Wi-Fi的iPad&#xff0c;现…

jQuery系列(十四):jQuery中的ajax

1、什么是ajax AJAX 异步的javascript和XML&#xff08;Asynchronous Javascript and XML&#xff09; 简言之&#xff0c;在不重载整个网页的情况下&#xff0c;AJAX通过后台加载数据&#xff0c;并在网页上进行显示。 通过 jQuery AJAX 方法&#xff0c;您能够使用 HTTP Get…

flex 布局以及样式

1.Flex是Flexible Box的缩写&#xff0c;意为”弹性布局”&#xff0c;用来为盒状模型提供最大的灵活性2.任何一个容器都可以用flex布局&#xff08;注意&#xff0c;设为Flex布局以后&#xff0c;子元素的float、clear和vertical-align属性将失效&#xff09; 采用Flex布局的元…

java swing列表数据加监听,【Java Swing公开课|Java监听列表项选择事件怎么用,看完这篇文章你一定就会了】- 环球网校...

【摘要】作为一门面向对象编程语言&#xff0c;Java吸收了C语言的优点&#xff0c;也展现了其强大的一面&#xff0c;我们能在各个地方看到其功能强大和简单易用的两个特征&#xff0c;当然&#xff0c;也吸引了很多程序员的注意力&#xff0c;所以就有人想了解Java的相关内容&…

fc-ae-1553_什么是AE-L,AF-L和*按钮,它们的作用是什么?

fc-ae-1553DSLRs and mirrorless cameras have a lot of buttons. If you’re just starting to get the hang of manually controlling your camera, you’re probably wondering what all the—seemingly non-essential—ones do. Let’s take a look at the AE-L, AF-L, AF-…

PopsTabView--filter容器

PopsTabView是个filter容器,他可以自动,快速,构建不同筛选样式,自由组合成一组tab. DownloadDownloadAuthorLicense筛选样式筛选种类可自定义属性单列单选,多选初始数据bean,筛选结果bean,tab样式,筛选样式多排单选,多选初始数据bean,筛选结果beantab样式,筛选样式双列单项单选…

git 基本使用方法

git clone https://gitee.com/kuaiyiwazz.git //开始下载服务器项目文件&#xff08;后边是服务地项目的地址&#xff09;git add . //这里有个点&#xff08;仔细看&#xff09;git status //检查项目修改状态git commit -m"注释(修改的内容)" git push //添…

大学留级两年不敢和家人说_您说什么:如何与家人保持联系?

大学留级两年不敢和家人说Earlier this week we asked you to share your tips, tricks, and techniques for staying connected when you’re away from your home broadband connection. Now we’re back with a roundup of what you said. 本周早些时候&#xff0c;我们要求…

DevExpress v17.2新版亮点—WinForms篇(四)

2019独角兽企业重金招聘Python工程师标准>>> DevExpress首推团队升级培训套包&#xff0c;最高可省10万元&#xff01;查看详情>>> 用户界面套包DevExpress v17.2终于正式发布&#xff0c;本站将以连载的形式为大家介绍各版本新增内容。开篇介绍了DevExpre…

Solr 11 - Solr集群模式的部署(基于Solr 4.10.4搭建SolrCloud)

目录 1 SolrCloud结构说明2 环境的安装2.1 环境说明2.2 部署并启动ZooKeeper集群2.3 部署Solr单机服务2.4 添加Solr的索引库3 部署Solr集群服务(SolrCloud)3.1 启动ZooKeeper3.2 ZooKeeper管理配置文件3.3 修改SolrCloud监听端口3.4 关联Solr与ZooKeeper3.5 分发SolrCloud服务3…

matlab怎么画一箭穿心,MATLAB学习与使用:如何绘制三维心形图 经验告诉你该这样...

MATLAB是MATrix & LABoratory(矩阵实验室)的缩写&#xff0c;是一款强大的科学软件&#xff0c;具有编程、绘图、仿真等功能。利用MATLAB绘制一款三维的心形图&#xff0c;然后送给心爱的姑娘&#xff0c;也是理工男撩妹的一项小技能。工具/材料MATLAB三维心形图操作方法01…

mac重置系统_如何在Mac上重置打印系统

mac重置系统Printers are notorious for failing frequently. A quick restart of the printer or computer usually fixes most intermittent issues, but occasionally it’s best to reset your printing settings and reinstall the printer completely. Consider this a f…

COW奶牛!Copy On Write机制了解一下

前言 只有光头才能变强 在读《Redis设计与实现》关于哈希表扩容的时候&#xff0c;发现这么一段话&#xff1a; 执行BGSAVE命令或者BGREWRITEAOF命令的过程中&#xff0c;Redis需要创建当前服务器进程的子进程&#xff0c;而大多数操作系统都采用写时复制&#xff08;copy-on-w…

参数回调

1.场景 参数回调方式与调用本地 callback 或 listener 相同&#xff0c;只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。 Dubbo 将基于长连接生成反向代理&#xff0c;这样就可以从服务器端调用客户端逻辑 2.

matlab胡良剑第五章,MATLAB习题参考答案(胡良剑,孙晓君)

MATLAB习题参考答案第一章 MATLAB入门4、求近似解解&#xff1a;>> x-2:0.05:2;yx.^4-2.^x两个近似解&#xff1a;y1f(-0.85) -0.0328; y2f(1.250) 0.0630第二章 MATLAB编程与作图1、 设x是数组&#xff0c;求均值和方差 解&#xff1a;函数文件如下&#xff1a;function…