这里选择No,退出:
查看一下我们生成模板的大小:
DG1:/u01/app/Oracle/product/11.2.0.3/db_1/assistants/dbca/templates>ll -lh
total 555M
-rw-r--r-- 1 oracle oinstall 5.0K Sep 1710:24 Data_Warehouse.dbc
-rw-r----- 1 oracleoinstall 9.3M Dec 14 17:56 dave.ctl
-rw-r----- 1 oracleoinstall 6.2K Dec 14 17:58 dave.dbc
-rw-r----- 1 oracleoinstall 260M Dec 14 17:56 dave.dfb
-rwxrw-rwx 1 oracle oinstall 21M Sep 22 15:22 example01.dfb
-rwxrw-rwx 1 oracle oinstall 1.5M Sep 2215:22 example.dmp
-rw-r--r-- 1 oracle oinstall 4.9K Sep 1710:24 General_Purpose.dbc
-rw-r--r-- 1 oracle oinstall 12K Feb 15 2010 New_Database.dbt
-rwxrw-rwx 1 oracle oinstall 9.3M Sep 2215:21 Seed_Database.ctl
-rwxrw-rwx 1 oracle oinstall 254M Sep 2215:22 Seed_Database.dfb
这里的模板有几种不同的扩展名,官网对扩展名的解释如下:
|
Type |
File Extension |
Includes Data Files |
Database Structure |
|
Seed |
.dbc |
Yes |
This type of template contains both the structure and the physical data files of an existing database, referred to as theseed database. Your new database starts as a copy of the seed database, and requires only the following changes: ·Name of the database ·Destination of the data files ·Number of control files ·Number of online redo log groups ·Initialization parameters Other changes can be made after database creation using custom scripts that can be invoked by DBCA, command-line SQL statements, or Oracle Enterprise Manager Database Control. The data files for the seed database are stored in compressed RMAN backup format in a file with a .dfb extension. The seed database control file is stored in a file with .ctl extension. (This file is needed only when storing data files in Oracle Automatic Storage Management (Oracle ASM) disk groups or as Oracle Managed Files.) The .dbc file contains the location of the seed database data files and contains the source database name used to mount the control file. |
|
Nonseed |
.dbt |
No |
This type of template is used to create a new database. It contains the characteristics of the database to be created. Nonseed templates are more flexible than their seed counterparts because all data files and online redo log files are created to your specification, and names, sizes, and other attributes can be changed as required. |
根据上面的说明,dfb 是一个RMAN 压缩备份的文件,ctl保存的是控制文件,dbc 包含data files 等文件的位置信息。
当我们创建完之后,就可以利用这个模板来进行实例复制,因为这个模板和源实例一模一样,所以如果在同一台server 创建,就需要修改一些参数值,在创建实例的时候可以直接修改这些参数的值。
