RMAN中的%T,%D,%U是什么意思
来源:互联网 发布:怎么装修手机淘宝店铺 编辑:程序博客网 时间:2024/04/28 06:38
转自:http://blog.csdn.net/kai27ks/article/details/7719561
例如;backup incremental level 0 databaseformat='lev0_%d_%t_%u_%s_%p'
format=string文件路径和名称的格式串,其中的含义是:
%c copy ID
%p backup piece ID
%s backup set ID
%e log Sequence
%h log thread ID
%d database name
%n database name(x填充到8个字符)
%I DBID
%f file ID
%F DBID , day ,month ,year and sequence的复合格式---多用于全备份
%N tablespacename ---表空间备份
%t timestamp
%M mh mm格式
%Y year yyyy格式
%D day dd格式
%u backup set time(x填充到8个字符))
%U %u_%p_%c ---- 采用备份冗余时使用
以下来自另一文
转自:http://hunt1574.blog.51cto.com/1390776/862297
Syntax Element Description is 256. Example3-22). Example3-22). characters to atotal length of eight characters. For example,if is thedatabase name, then the padded nameis for each backupset and is incremented by 1 as each backup piece is created. and is uniquefor the lifetime of the control file. If you restore a backupcontrol file, then duplicate values can result. Also, initializesthe counter back to and can beused to form a unique name for the backup set. translates tothe string
OCP试题一道
You are using Oracle Database 10g. The LOG_ARCHIVE_FORMAT parameter is set to
'LOG%t_%s_%r.dbf'.
Whyis %r used in the file name format?
A.touniquely identify the archived log files with the restore operation
B.touniquely identify the archived log files with the redo log group number
C.touniquely identify the archived log files for each incarnation of the database
D.touniquely identify the archived log files with the number of recovery operations performed
Answer:C
例如;backup incremental level 0 databaseformat='lev0_%d_%t_%u_%s_%p'
format=string文件路径和名称的格式串,其中的含义是:
%c copy ID
%p backup piece ID
%s backup set ID
%e log Sequence
%h log thread ID
%d database name
%n database name(x填充到8个字符)
%I DBID
%f file ID
%F DBID , day ,month ,year and sequence的复合格式
%N tablespacename
%t timestamp
%M mh mm格式
%Y year yyyy格式
%D day dd格式
%u backup set time(x填充到8个字符))
%U %u_%p_%c
以下来自另一文
The following table lists RMAN substitution variables that arevalid in format strings.
%a
Specifies the activation ID of the database.%c
Specifies the copy number of the backup piece within aset of duplexed backup pieces. If you did not duplex a backup, thenthis variable is 1 for backup sets and 0 for proxy copies. If oneof these commands is enabled, then the variable shows the copynumber. The maximum valuefor %c
%d
Specifies the name of the database(see %D
Specifies the current day of the month from theGregorian calendar informat DD
.%e
Specifies the archived log sequence number.%f
Specifies the absolute file number(see %F
Combines the DBID, day, month, year, and sequence intoa unique and repeatable generated name. This variable translatesinto c-IIIIIIIIII-YYYYMMDD-QQ
, where:IIIIIIIIII
standsfor the DBID. The DBID is printed in decimal so that it can beeasily associated with the target database. YYYYMMDD
isa time stamp in the Gregorian calendar of the day the backup isgenerated QQ
is thesequence in hexadecimal number that starts with 00 and has amaximum of 'FF' (256)
%h
Specifies the archived redo log thread number.%I
Specifies the DBID.%M
Specifies the month in the Gregorian calendar informat MM
.%N
Specifies the tablespace name. This substitutionvariable is only valid when backing up datafiles as imagecopies.%n
Specifies the name of the database, padded on theright with x
prod1
prod1xxx
.%p
Specifies the piece number within the backup set. Thisvalue starts at 1
Note: Ifyou specify variable mustbe included in the stringeither explicitly or implicitlywithin %U.
PROXY
, thenthe %p
FORMAT
%s
Specifies the backup set number. This number is acounter in the control file that is incremented for each backupset. The counter value startsat 1
CREATECONTROLFILE
1
.%t
Specifies the backup set time stamp, which is a 4-bytevalue derived as the number of seconds elapsed since a fixedreference time. The combinationof %s
%t
%T
Specifies the year, month, and day in the Gregoriancalendar in this format: YYYYMMDD
.%u
Specifies an 8-character name constituted bycompressed representations of the backup set or image copy numberand the time the backup set or image copy was created.%U
Specifies a system-generated unique filename(default).The meaningof is differentfor image copies and backup pieces. For a backuppiece, thatguarantees uniqueness in generated backup filenames. For an imagecopy of a datafile, means thefollowing:
%U
%U
specifies aconvenient shorthand for %u_%p_%c
%U
data-D-%d_id-%I_TS-%N_FNO-%f_%u
For an image copy of anarchived redo log, means thefollowing:
%U
arch-D_%d-id-%I_S-%e_T-%h_A-%a_%u
For an image copy of acontrol file, means thefollowing:
%U
cf-D_%d-id-%I_%u
%Y
Specifies the year in thisformat: YYYY
.%%
Specifies the percent (%
) character.For example, %%Y
%Y
.OCP试题一道
'LOG%t_%s_%r.dbf'.
Why
A.to
B.to
C.to
D.to
Answer:
0 0
- RMAN中的%T,%D,%U是什么意思
- RMAN中的%T,%D,%U是什么意思
- RMAN中的%T,%D,%U,%s是什么意思
- Git 的M,T,D,A,U标志是什么意思
- T-SQL 中的 GO 是什么意思
- T-SQL 中的 GO 是什么意思?
- T-SQL中的go是什么意思?
- ssh-keygen -t rsa 中的t是什么意思?
- 服务器结构中的1U 2U 3U是什么意思?
- U是什么意思
- Git 状态 M,T,D,A,U
- H a r d F a u l t
- Java 里面<T>T 是什么意思
- $ npm install -d 是什么意思?
- %2d是什么意思
- java中\\d是什么意思
- %02d是什么意思
- rman target / rman: can't open target
- 积极情绪时代对风险管理的影响
- PL/SQL 包编译时hang住的处理
- PL/SQL 游标变量
- C# 如何使用 ErrorProvider 组件
- 使用EXPLAIN PLAN获取SQL语句…
- RMAN中的%T,%D,%U是什么意思
- sqrt函数分析,sqrt()如何实现的?
- RMAN List和report 命令
- redo log 的active和ina…
- oracle序列详解
- oracle 单引号 双引号
- Oracle用户和模式的区别
- which命令
- linux的mount(挂载)命令详解