Rman關於filesperset引數的介紹
filesperset說明了一個備份集最多的檔案數目,FILESPERSET不指定的話,FILESPERSET(預設值=64)
filesperset =files per backupset
假如10個datafiles,filesperset =4,10/4=2.5,你備份資料庫的時候生成3個backupset
當指定filesperset引數時,rman比較filesperset與自動計算出來的值(對每個已分配通道的檔案數目),並取其中較小的那個值來保證所有的通道被使用。
如果沒有指定filesperset,rman比較計算出來的值(檔案數目除以已分配的通道)和預設值64,並取其中較小的那個值來保證所有通道可用。一個例外是通道比要備份的檔案還要多
例如:
A. filesperset設定為6,資料檔案數目為30,通道資料為4,透過30/4可以得出每個
備份集可含有8個檔案,取6和8中較小的值6,那麼30/6=5個備份集,那麼4個通道肯定都有事情可做了。
B. 如果不指定filesperset,假設資料檔案數目為30,通道資料為4,透過30/4可以
得出每個備份集可含有8個檔案,比較8和預設值64,我們取其中較小的8,那麼也可以保證4個通道都有事情可做
SQL> select file_name from dba_data_files where tablespace_name='USERS';
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/PROD7/users01.dbf
/u01/app/oracle/oradata/PROD7/users02.dbf
/u01/app/oracle/oradata/PROD7/users03.dbf
/u01/app/oracle/oradata/PROD7/users04.dbf
RMAN> backup filesperset 3 tablespace users format '/u01/backup/users%U';
Starting backup at 09-AUG-18
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=224 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=00007 name=/u01/app/oracle/oradata/PROD7/users03.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PROD7/users04.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users01ta4lfl_1_1 tag=TAG20180809T144925 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/u01/app/oracle/oradata/PROD7/users02.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PROD7/users01.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users02ta4lfm_1_1 tag=TAG20180809T144925 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 09-AUG-18
RMAN> backup filesperset 1 tablespace users format '/u01/backup/users%U';
Starting backup at 09-AUG-18
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/u01/app/oracle/oradata/PROD7/users02.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users03ta4lg4_1_1 tag=TAG20180809T144939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00007 name=/u01/app/oracle/oradata/PROD7/users03.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users04ta4lg5_1_1 tag=TAG20180809T144939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00008 name=/u01/app/oracle/oradata/PROD7/users04.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users05ta4lg6_1_1 tag=TAG20180809T144939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/PROD7/users01.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users06ta4lg7_1_1 tag=TAG20180809T144939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 09-AUG-18
RMAN> backup filesperset 4 tablespace users format '/u01/backup/users%U';
Starting backup at 09-AUG-18
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/u01/app/oracle/oradata/PROD7/users02.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/PROD7/users03.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PROD7/users04.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PROD7/users01.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users07ta4ljp_1_1 tag=TAG20180809T145137 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 09-AUG-18
RMAN> backup filesperset 5 tablespace users format '/u01/backup/users%U';
Starting backup at 09-AUG-18
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/u01/app/oracle/oradata/PROD7/users02.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/PROD7/users03.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PROD7/users04.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PROD7/users01.dbf
channel ORA_DISK_1: starting piece 1 at 09-AUG-18
channel ORA_DISK_1: finished piece 1 at 09-AUG-18
piece handle=/u01/backup/users08ta4lk1_1_1 tag=TAG20180809T145145 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 09-AUG-18
RMAN>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2712151/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN備份中的通道(CHANNEL)相關 - PARALLELISM 、FILESPERSETParallel
- jmeter引數化介紹JMeter
- mysql一些引數的介紹MySql
- MySQL change buffer介紹和相關引數調整建議MySql
- Java 中關於protected的介紹Java
- 簡單介紹TensorFlow中關於tf.app.flags命令列引數解析模組APP命令列
- 關於風機滑環的介紹
- 關於 React Hooks 的簡單介紹ReactHook
- 關於Oracle Database Vault介紹OracleDatabase
- 關於Luthier CI 路由介紹路由
- impdp和expdp用法及引數介紹
- 【手摸手玩轉 OceanBase 172】清理備份相關引數介紹
- 關於keras框架的介紹以及操作使用Keras框架
- 關於PHP的語法介紹,新手必看PHP
- 關於mysql基礎知識的介紹MySql
- 關於 Android Service 的介紹都在這了Android
- [譯] 關於 React Motion 的簡要介紹React
- Python 關於JSON模組介紹PythonJSON
- mysql二進位制日誌的引數介紹MySql
- 介紹tomcat Connector 引數優化說明Tomcat優化
- mysqldump中skip-tz-utc引數介紹MySql
- hping3功能以及引數介紹
- HTC VIVE Pro裝置引數配置介紹
- python關於執行緒的一點介紹Python執行緒
- vue中關於測試的知識介紹Vue
- 關於SSL證書的一些介紹
- 關於資料庫 statistics_level的介紹資料庫
- linux kernel 關於RSS/RPS/RFS/XPS的介紹Linux
- 龍芯1A處理器引數介紹
- java基礎(九) 可變引數列表介紹Java
- 關於 SAP UI5 Device API 的使用介紹UIdevAPI
- 關於 sap.ui.base.Object 的簡要介紹UIObject
- Linux核心引數overcommit_memory和OOM killer介紹LinuxMITOOM
- 關於xtrabackup --slave-info引數的說明
- 關於Jmeter引數化的編碼問題JMeter
- JZ4775晶片引數怎麼樣?JZ4775處理器引數介紹晶片
- 兄弟連golang神技(1)-關於 Go 語言的介紹Golang
- MySQL query_cache_type的DEMAND引數介紹和使用舉例MySql