|
Oracle Managed Files simplify the administration of certain types of Oracle databases. These files help with administration by eliminating the need for the database administrator to directly manage the files associated with the Oracle database. Oracle Managed Files are created and deleted by the Oracle Server based on parameters specified in the PFILE or the SPFILE initialization file. Initialization File Parameters for OMFTo take advantage of OMF, parameters need to be specified in the parameter files. These parameters and their explanation follow:
Both of these parameters do not have to be set to use OMF; they are independent parameters. Setting one allows you to use that functionality while leaving the other manually managed. Furthermore, these parameters are dynamic parameters, meaning that they can be altered at any time by using the ALTER SYSTEM SET command.
OMF Naming ConventionsOracle not only controls the maintenance of the database files, but it also controls the naming of these files. Table 4.4 shows what each of these filenames typically looks like.
The wildcards %g, %t, and %u have the following definitions:
For example, if you want to create a database with Oracle Managed Files for the data files (data files, temp files, and undo files), control files, and online redo log files, and have the control files and log files created in their own separate directories, you would set the initialization parameters as follows: On Unix: DB_CREATE_FILE_DEST = '/mydatabse/mydb1/' DB_CREATE_ONLINE_LOG_DEST_1 = '/mydblogs1/mydb1/' DB_CREATE_ONLINE_LOG_DEST_2 = '/mydblogs2/mydb1/' On Windows: DB_CREATE_FILE_DEST = 'c:\mydatabse\mydb1\' DB_CREATE_ONLINE_LOG_DEST_1 = 'c:\mydblogs1\mydb1\' DB_CREATE_ONLINE_LOG_DEST_2 = 'c:\mydblogs2\mydb1\' Then issue the CREATE DATABASE statement as follows: CREATE DATABASE mydb1; This allows the control files and redo log files to be duplexed across the /mydblogs1 (c:\mydblogs1) and /mydblogs2 (c:\mydblogs2) directories.
You can find out the internally generated filenames by selecting from the DBA_DATAFILES data dictionary view for the data files, or the V$LOGFILE data dictionary view for log files. |
|