oracle10g_rman_語法測試_7
Keywords and Parameters
Syntax Element | Description |
---|---|
%a | Specifies the activation ID of the database. |
%c | Specifies the copy number of the backup piece within a set of duplexed backup pieces. If you did not duplex a backup, then this variable is 1 for backup sets and 0 for proxy copies. If one of these commands is enabled, then the variable shows the copy number. The maximum value for %c is 256. |
%d | Specifies the name of the database. |
%D | Specifies the current day of the month from the Gregorian calendar in format DD. |
%e | Specifies the archived log sequence number. |
%f | Specifies the absolute file number. |
%F | Combines the DBID, day, month, year,
and sequence into a unique and repeatable generated name. This variable
translates into c-IIIIIIIIII-YYYYMMDD-QQ, where:
|
%h | Specifies the archived redo log thread number. |
%I | Specifies the DBID. |
%M | Specifies the month in the Gregorian calendar in format MM. |
%N | Specifies the tablespace name. |
%n | Specifies the name of the database, padded on the right with x characters to a total length of eight characters. For example, if the prod1 is the database name, then the padded name is prod1xxx. |
%p | Specifies the piece number within
the backup set. This value starts at 1 for each backup set and is
incremented by 1 as each backup piece is created.
Note: If you specify PROXY, then the %p variable must be included in the FORMAT string either explicitly or implicitly within %U. |
%s | Specifies the backup set number. This number is a counter in the control file that is incremented for each backup set. The counter value starts at 1 and is unique for the lifetime of the control file. If you restore a backup control file, then duplicate values can result. Also, CREATE CONTROLFILE initializes the counter back to 1. |
%t | Specifies the backup set time stamp, which is a 4-byte value derived as the number of seconds elapsed since a fixed reference time. The combination of %s and %t can be used to form. a unique name for the backup set. |
%T | Specifies the year, month, and day in the Gregorian calendar in this format: YYYYMMDD. |
%u | Specifies an 8-character name constituted by compressed representations of the backup set or image copy number and the time the backup set or image copy was created. |
%U | Specifies a system-generated unique
filename (default). The meaning of %U is different for image copies
and backup pieces.
For a backup piece, %U specifies a convenient shorthand for %u_%p_%c that guarantees uniqueness in generated backup filenames. If you do not specify a format when making a backup, then RMAN uses %U by default. For an image copy of a datafile, %U means the following: data-D-%d_id-%I_TS-%N_FNO-%f_%u For an image copy of an archived redo velog, %U means the following: arch-D_%d-id-%I_S-%e_T-%h_A-%a_%u For an image copy of a control file, %U means the following: cf-D_%d-id-%I_%u |
%Y | Specifies the year in this format: YYYY. |
%% |
Specifies the literal '%' character. For example, %%Y translates to the string %Y. |
Example
Specifying an ASM Disk Group: Example This example copies the database to ASM disk group disk1:
BACKUP AS COPY DATABASE FORMAT '+disk1';
Specifying a Format for Datafile Copies: Example This example creates copies of three datafiles with tag 'LATESTCOPY' to directory /copies:
# Create copies of 3 datafiles with tag 'LATESTCOPY' to directory /copies
BACKUP AS COPY
FROM TAG 'LATESCOPY'
COPY OF DATAFILE 4, 6, 14
FORMAT '/copies/Datafile%f_Database%d';
Creating a Database Copy for Use as a Standby Database: Example This example creates an image copy of the database to instantiate a physical standby in /stby:
# Create an image copy of the database to instantiate physical standby in /stby
BACKUP AS COPY
DATABASE
FORMAT '/stby/standby_file_%f_of_db_%I';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-615369/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 前端測試框架Jest——語法篇前端框架
- 軟體測試培訓之:白盒測試的語句覆蓋法和判定覆蓋法
- SpringBoot(7) —— yaml語法講解Spring BootYAML
- python介面自動化測試之python基礎語法Python
- PJzhang:搜尋引擎高階語法與滲透測試
- ESlint語法檢測工具EsLint
- Python初級面試語法Python面試
- APP 多語言測試APP
- 測試工程師必知的10大測試法則工程師
- 程式測試第一法則?
- Java面試需要知道的SQL語句語法Java面試SQL
- 學習 ES7 語法 decorator 裝飾器
- 八大藝術測試法
- 整合測試時 MockMvc 無法注入MockMVC
- 連載 7 - 測試的本質 - 測什麼、怎麼測
- Go語言中的單元測試Go
- 邏輯注入漏洞滲透測試檢測辦法
- 從入門到放棄:Python+selenium unittest測試框架及基本語法規則Python框架
- 測試測試測試測試測試測試
- 軟體測試要學什麼(7)軟體測試常用工具
- 效能測試學習(1)-效能測試分類與常見術語
- Go語言切片面試真題7連問Go面試
- php7連線mysql測試程式碼PHPMySql
- 阿里雲 CentOS7 寶塔 docker 測試阿里CentOSDocker
- 關於ES6、ES7的常用語法整理
- 滲透測試常用術語總結
- Go 語言基準測試入門Go
- 英語語法
- Go 語言區塊鏈測試實踐指南(一):GO單元測試Go區塊鏈
- [20220104]in list 幾種寫法效能測試.txt
- HTML語法大全_html語言語法大全(必看)HTML
- 2020-12-15:【黑盒測試用例設計】測試方法之錯誤值猜測法
- JavaScript 新語法 「雙問號語法」與「可選鏈語法」JavaScript
- 專訪測試資深大神“雲層”,深入解答測試行業7大問題行業
- es6,es7的一些語法(筆記)筆記
- 7款滲透測試工具,你必須知道!
- 開發者測試:你必須知道 7 件事
- [一、基本語法]1基本語法概述
- 現場測試安全帽檢測系統win7版Win7