关于resetCfileSection函数中ID号的说明
在4.1和4.2中我们分别使用了11和28的id。 我们这里看一下这里为什么是这2个号。
在如下的脚本:
$ORACLE_HOME/rdbms/admin/dbmsbkrs.sql
我们可以看到dbms_backup_restore包的创建代码。 在这段代码中给了我们定义的说明。
-- Valid record types are defined as thefollowing constants:
RTYP_DB_INFO constant binary_integer := 0;
RTYP_CKPTPROG constant binary_integer := 1;
RTYP_THREAD constant binary_integer := 2;
RTYP_LOGFILE constant binary_integer := 3;
RTYP_DATAFILE constant binary_integer := 4;
RTYP_FILENAME constant binary_integer := 5;
RTYP_TABLESPACE constant binary_integer := 6;
RTYP_RESERVED1 constant binary_integer := 7;
RTYP_TEMPFILE constant binary_integer := 7;
RTYP_RMAN_CONFIGURATION constant binary_integer := 8;
RTYP_LOG_HISTORY constant binary_integer := 9;
RTYP_OFFLINE_RANGE constant binary_integer :=10;
RTYP_ARCHIVED_LOG constant binary_integer :=11;
RTYP_BACKUP_SET constant binary_integer :=12;
RTYP_BACKUP_PIECE constant binary_integer :=13;
RTYP_BACKUP_DFILE constant binary_integer :=14;
RTYP_BACKUP_LOG constant binary_integer :=15;
RTYP_DFILE_COPY constant binary_integer :=16;
RTYP_BACKUP_DFILE_CORR constant binary_integer :=17;
RTYP_DFILE_COPY_CORR constant binary_integer :=18;
RTYP_DELETED_OBJECT constant binary_integer :=19;
RTYP_RESERVED3 constant binary_integer :=20;
RTYP_PROXY constant binary_integer :=20;
RTYP_RESERVED4 constant binary_integer :=21;
RTYP_BACKUP_SPFILE constant binary_integer :=21;
RTYP_DB2 constant binary_integer :=22;
RTYP_INCARNATION constant binary_integer :=23;
RTYP_FLASHBACK constant binary_integer :=24;
RTYP_RA_INFO constant binary_integer :=25;
RTYP_INST_RSVT constant binary_integer :=26;
RTYP_AGED_FILES constant binary_integer :=27;
RTYP_RMAN_STATUS constant binary_integer :=28;
RTYP_THREAD_INST constant binary_integer :=29;
RTYP_MTR constant binary_integer :=30;
RTYP_DFH constant binary_integer :=31;
RTYP_SDM constant binary_integer :=32;
RTYP_RSP constant binary_integer :=33;
RTYP_NRR constant binary_integer :=34;
RTYP_BLOCK_CORRUPTION constant binary_integer :=35;
RTYP_ACM_OPERATION constant binary_integer :=36;
RTYP_FOREIGN_ARCHIVED_LOG constantbinary_integer :=37;
通过以上的说明,可以理解,我们这里为什么ID是11和28了。
页:
[1]