您好,登錄后才能下訂單哦!
RMAN深入解析之--內存中的RMAN
RMAN會在內存中創建一些緩沖區,然后通過這些緩沖區將數據塊 寫入到備份中。內存的利用與PGA(有時是SGA)的總體大小有關。
內存緩沖區分為輸入緩沖區和輸出緩沖區。輸入緩沖區(input buffer)填充從備份文件中讀取數據塊;輸出緩沖區(output buffer)則在執行內存對內存的寫操作時填充需要備份的數據塊,一旦輸出緩沖區被填滿,輸出緩沖區的內容就會被寫入到備份位置。
RMAN的內存利用
在磁盤上備份會使用PGA內存空間作為備份緩沖區,PGA內存空間從用于信道進程的內存空間中分配。如果操作系統沒有配置本地異步I/O,則可以利用DBWR_IO_SLAVES參數使用I/O叢屬來填充內存中的輸入緩沖。如果設置DBWR_IO_SLAVES參數為任意的非零值,則RMAN會自動分配4個I/O從屬來協調輸入緩沖區中數據塊加載。為了實現這一功能,RMAN必須利用一個共享內存區域。因此,用于磁盤備份的內存緩沖區會被推入共享池,如果存在大池,則被推入大池。如果沒有使用磁帶I/O從屬,則會在PGA中分配用于磁帶輸出緩沖區的內存。
查看RMAN備份輸入緩沖區的信息:
[oracle@rh7 ~]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 17 18:30:27 2014 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: PROD (DBID=239333010) RMAN> backup database; Starting backup at 17-JUN-14 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=43 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/prod/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/prod/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/prod/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/prod/undotbs01.dbf input datafile file number=00004 name=/u01/app/oracle/oradata/prod/users01.dbf channel ORA_DISK_1: starting piece 1 at 17-JUN-14 channel ORA_DISK_1: finished piece 1 at 17-JUN-14 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/04pb386s_1_1 tag=TAG20140617T183051 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:01:42 channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set including current control file in backup set including current SPFILE in backup set channel ORA_DISK_1: starting piece 1 at 17-JUN-14 channel ORA_DISK_1: finished piece 1 at 17-JUN-14 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/05pb38a3_1_1 tag=TAG20140617T183051 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01 Finished backup at 17-JUN-14 查看緩沖區信息: sql>select set_count,device_type,type,filename,buffer_size,buffer_count,open_time,close_time 2 from v$backup_async_io 3* order by set_count,type,open_time,close_time SET_COUNT DEVICE_TYP TYPE FILENAME BUFFER_SIZE BUFFER_COUNT OPEN_TIME CLOSE_TIM ---------- ---------- --------- ---------------------------------------- ----------- ------------ --------- --------- 4 DISK AGGREGATE 0 0 17-JUN-14 17-JUN-14 4 DISK INPUT /u01/app/oracle/oradata/prod/example01.d 524288 6 17-JUN-14 17-JUN-14 bf 4 DISK INPUT /u01/app/oracle/oradata/prod/sysaux01.db 524288 6 17-JUN-14 17-JUN-14 f 4 DISK INPUT /u01/app/oracle/oradata/prod/system01.db 524288 6 17-JUN-14 f 4 DISK INPUT /u01/app/oracle/oradata/prod/users01.dbf 524288 6 17-JUN-14 17-JUN-14 4 DISK INPUT /u01/app/oracle/oradata/prod/undotbs01.d 524288 6 17-JUN-14 17-JUN-14 bf 4 DISK OUTPUT /u01/app/oracle/product/11.2.0/db_1/dbs/ 1048576 4 17-JUN-14 04pb386s_1_1 7 rows selected. Elapsed: 00:00:00.02 18:32:19 SYS@ prod>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。