[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.pswp.cn/news/279069.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279069.shtml
英文地址,請注明出處:http://en.pswp.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…