首页 > 数据库 > Oracle > dbca创建数据库不同模板之间的区别

Templates are divided into the following types:
Seed templates
Nonseed templates
The characteristics of each are shown in Table 2-1.
Table 2-1 DBCA Template Types
| Type | File Extension | Includes Data Files | Database Structure |
|---|---|---|---|
|
Seed |
|
Yes |
This type of template contains both the structure and the physical data files of an existing database, referred to as the seed database. Your new database starts as a copy of the seed database, and requires only the following changes:
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 |
|
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. |

Oracle provides the templates shown in Table 2-2.
Table 2-2 Oracle-Provided DBCA Templates and Their Corresponding Workloads
| Template | Workload |
|---|---|
|
Data warehouse |
Users perform numerous, complex queries that process large volumes of data. Response time, accuracy, and availability are key issues.
These queries ( |
|
General Purpose or Transaction processing |
Many concurrent users perform numerous transactions that require rapid access to data. Availability, speed, concurrency, and recoverability are key issues.
Transactions consist of reading ( |
|
Custom database |
This template allows you maximum flexibility in defining a database because you can change any of the settings for the database being created. |
| Property | Description |
|---|---|
| Parameter type | String |
| Syntax |
STAR_TRANSFORMATION_ENABLED = { FALSE | TRUE | TEMP_DISABLE }
|
| Default value |
FALSE
|
| Modifiable |
ALTER SESSION, ALTER SYSTEM
|
| Basic | Yes |
STAR_TRANSFORMATION_ENABLED determines whether a cost-based query transformation will be applied to star queries.
Values:
FALSE
The transformation will not be applied.
TRUE
The optimizer will consider performing a cost-based query transformation on the star query.
TEMP_DISABLE
The optimizer will consider performing a cost-based query transformation on the star query but will not use temporary tables in the star transformation.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23135684/viewspace-1753671/ ,如需转载,请注明出处,否则将追究法律责任。