SlideShare a Scribd company logo
{
Big File Tablespaces
Presentation By :- Devang Vyas(14501002)
Rushang vaghela(14501006)
Why Bigfile Tablespaces ?
• Oracle Database 11g can contain up to 8 exabytes (8 million terabytes) of
data.
How many millions of datafiles you’d need to manage in order to hold
this much data.
You have the option of creating really big tablespaces called, bigfile
tablespaces.
A bigfile tablespace (BFT) contains only one very large datafile.
 Two ways For Create Data files
1) Permanent tablespace .
2) Temporary tablespace
DataFiles :-
The Data file contains data of all the logical structure that are
part of table space like,Table,index etc.
Tablespaces :-
A tablespace is a set of one or more datafiles and usually
consist of related segments
• Using the bigfile concept, Oracle has made a tablespace logically equal to a
datafile by creating
the new one-to-one relationship between tablespaces and datafiles.
Creating Bigfile Tablespaces
Three Different Ways to Create bigfile tablespaces
1) Specify them at database creation time and thus make them the default
tablespace type .
2) Use the CREATE BIGFILE statement.
3)Use the ALTER DATABASE statement to set the default type to a BFT
tablespace.
1)
Specify BFTs as the default tablespace type during database creation. If
you don’t
explicitly specify BFT as your default tablespace type, Database will
have the traditional smallfile tablespace as the default
 Syntax :-
CREATE DATABASE statement, showing how you specify a BFT:
SQL> CREATE DATABASE
SET DEFAULT BIGFILE tablespace . . .
 Once you set the default tablespace type to bigfile tablespaces, all tablespaces
you create subsequently
 will be BFTs unless you manually override the default setting
 The previous sections have dealt with operating system file
management
 where you, the DBA,manually create, delete, and manage the datafiles.
 Oracle Managed Files enable you to bypass dealing with operating
system files directly.
 In Oracle database, you deal with various types of database files,
 Including,
 datafiles,
 control files,
 online redo log files.
File Management with Oracle
Managed Files
2) Use the CREATE TABLESPACE statement, as
shown here:
SQL> CREATE BIGFILE TABLESPACE bigtbs_01
DATAFILE '/u01/oracle/data/bigtbs_01.dbf' SIZE 100G
. . ..
 When you specify the CREATE BIGFILE TABLESPACE clause, Oracle
will automatically create a
 locally managed tablespace with automatic segment space
management.
3) Use the ALTER DATABASE statement to set the default type to a BFT
tablespace.
 You can dynamically change the default tablespace type to bigfile or
smallfile, thus making all
 tablespaces you subsequently create either bigfile or smallfile type
tablespaces.
 Here’s an example
 that shows how to set the default tablespace type in your database to
bigfile:
 SQL> ALTER TABLESPACE SET DEFAULT BIGFILE TABLESPACE;
 You can use the RESIZE and AUTOEXTEND clauses in the ALTER
TABLESPACE statement to modify the size
of a BFT.
• RESIZE : The RESIZE clause lets you resize a BFT directly, without
using the DATAFILE clause, as
shown here:
SQL> ALTER TABLESPACE bigtbs RESIZE 120G;
• AUTOEXTEND : The AUTOEXTEND clause enables automatic file
extension, again without referring to the datafile. Here’s an example:
SQL> ALTER TABLESPACE bigtbs AUTOEXTEND ON NEXT 20G;
Altering a Bigfile Tablespace
 You can gather information about the BFTs in your database by using the
following data dictionary views:
• DBA_TABLESPACES
• USER_TABLESPACES
• V$TABLESPACE
 All three views have the new BIGFILE column, whose value indicates
whether a tablespace is of
the BFT type (YES) or smallfile type (NO).
Viewing Bigfile Tablespace
Information
 You can also use the DATABASE_PROPERTIES data dictionary view, as shown
in the following query, to find out what the default tablespace type for your
database is:
 SQL> SELECT property_value
 FROM database_properties
 WHERE property_name='DEFAULT_TBS_TYPE';
Output :-
 PROPERTY_VALUE
 --------------
 SMALLFILE
 SQL>
DATABASE_PROPERTIES
 Oracle Database 10g mandates the creation of the Sysaux tablespace,
which serves as an auxiliary tablespace to the System tablespace.
 System tablespace was the default location for storing objects belonging
to components like the Workspace Manager, Logical Standby, Oracle
Spatial, and so on.
Managing the Sysaux
Tablespace
 You can create the Sysaux tablespace manually at database creation time.
Here is the syntax for creating the Sysaux tablespace :
 CREATE DATABASE mydb
USER sys IDENTIFIED BY abc1def
USER system IDENTIFIED BY uvw2xyz
. . .
SYSAUX DATAFILE '/u01/oracle/oradata/mydb/sysaux01.dbf' SIZE
500M REUSE
. . .
Creating the Sysaux Tablespace
 Once you provide the datafile location and size, Oracle creates the
Sysaux tablespace with the following attributes :
• Permanent
• Read/write
• Locally managed
• Automatic segment space management
 You can alter the Sysaux tablespace using the same ALTER
TABLESPACE command that you use for other tablespaces. Here’s an
example:
 SQL> ALTER TABLESPACE sysaux ADD DATAFILE
 '/u01/app/oracle/prod1/oradata/sysaux02.dbf' SIZE 500M;
 Key dictionary views to manage tablespaces in an Oracle
database
 • DBA_TABLESPACES
 • DBA_FREE_SPACE
 • DBA_SEGMENTS
 • DBA_DATA_FILES
 • DBA_TABLESPACE_GROUPS
Data Dictionary Views for Managing
Tablespaces
 The previous sections have dealt with operating system file
management, where you, the DBA, manually create, delete, and
manage the datafiles.

Easy File Management with
Oracle Managed Files
 Here are a couple of examples showing how simple it is to create a
tablespace and add space to it under an OMF system:
 SQL> CREATE TABLESPACE finance01;
 SQL> ALTER TABLESPACE finance01 ADD DATAFILE 500M;
 Similarly, when you want to drop a tablespace, you just need to issue
the DROP TABLESPACE
 command and the OMF datafiles are automatically removed by Oracle,
along with the tablespace definition:
 SQL> DROP TABLESPACE finance01;
 OMF files offer several advantages over user-managedfiles:
• Oracle automatically creates and deletes OMF files.
• You don’t have to worry about coming up with a naming convention
for the files.
• It’s easy to drop datafiles by mistake when you’re managing them.
With OMF files, you don’trun the risk of accidentally deleting database
files.
• Oracle automatically deletes a file when it’s no longer needed.
• You can have a mix of traditional files and OMF files in the same
database.
Benefits of Using OMF
 You can create OMF files when you create the database, or you can add
them to a database that you created with traditional datafiles later on.
Either way, you need to set some initialization parameters to enable
OMF file creation.
Creating Oracle Managed Files
Initialization Parameters for OMF
• You can set these four parameters in your parameter file, and you can
change them online with the ALTER SYSTEM or ALTER SESSION
statement.
• You can use each of these parameters to specify the file destination for
different types of OMF files, such as
• datafiles,
• control files, and
• online redo log files:
• DB_CREATE_FILE_DEST :-
This parameter specifies the default location of datafiles, online
redo log files, control files, block-change tracking files, and tempfiles.
• DB_CREATE_ONLINE_LOG_DEST_n :-
You can use this parameter to specify the default location of
online redo log files and control files.
• DB_RECOVERY_FILE_DEST :-
This parameter defines the default location for control files,
archived redo log files, RMAN backups, and flashback logs.
Parameters For OMF
 You can use OMF to create all three types of files that the Oracle database
requires:
control files,
redo log files, and
datafiles.
Different Types of Oracle
Managed Files
 Every Oracle Database has a control file, which is a small binary file
that records the physical structure of the database. The control file
includes:
 The database name
 Names and locations of associated datafiles and redo log files
 The timestamp of the database creation
 The current log sequence number
 Checkpoint information
Control Files
 OMF redo log file creation is similar to control file creation. If you don’t
specify a location for the redo log files, and you set either the
DB_CREATE_FILE_DEST or the DB_CREATE_ONLINE_LOG_DEST_n
parameter in the init.ora file, Oracle automatically creates OMF-based
redo log files.
Redo Log Files
 If you don’t specify a datafile location in the CREATE or ALTER
statements for a regular datafile, or a tempfile for a temporary
tablespace, tempfile, or an undo tablespace datafile, but instead specify
the
 DB_CREATE_FILE_DEST parameter, all these files will be OMF files.
Datafiles
Thank You

More Related Content

What's hot (19)

PPT
Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Piotr Pruski
 
PDF
Microsoft SQL Server - Files and Filegroups
Naji El Kotob
 
PDF
MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019
Dave Stokes
 
DOCX
Db2 Important questions to read
Prasanth Dusi
 
PPT
Less06 Storage
vivaankumar
 
PDF
Big Data: Big SQL and HBase
Cynthia Saracco
 
PDF
MySQL 8 Tips and Tricks from Symfony USA 2018, San Francisco
Dave Stokes
 
PPT
ora_sothea
thysothea
 
PDF
tempdb and Performance Keys
Naji El Kotob
 
DOCX
Sql loader good example
Aneel Swarna MBA ,PMP
 
DOCX
Multiple files single target single interface
Dharmaraj Borse
 
DOCX
Oracle sql loader utility
nageswarareddapps
 
PPT
Less02 Installation
vivaankumar
 
PPTX
Physical architecture of sql server
Divya Sharma
 
PDF
MySQL 8 Server Optimization Swanseacon 2018
Dave Stokes
 
PPT
Hechsp 001 Chapter 3
Brian Kelly
 
PPT
Sql server basics
Dilfaroz Khan
 
PPTX
Oracle Tablespace - Basic
Eryk Budi Pratama
 
PPT
Less05 storage
Imran Ali
 
Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Piotr Pruski
 
Microsoft SQL Server - Files and Filegroups
Naji El Kotob
 
MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019
Dave Stokes
 
Db2 Important questions to read
Prasanth Dusi
 
Less06 Storage
vivaankumar
 
Big Data: Big SQL and HBase
Cynthia Saracco
 
MySQL 8 Tips and Tricks from Symfony USA 2018, San Francisco
Dave Stokes
 
ora_sothea
thysothea
 
tempdb and Performance Keys
Naji El Kotob
 
Sql loader good example
Aneel Swarna MBA ,PMP
 
Multiple files single target single interface
Dharmaraj Borse
 
Oracle sql loader utility
nageswarareddapps
 
Less02 Installation
vivaankumar
 
Physical architecture of sql server
Divya Sharma
 
MySQL 8 Server Optimization Swanseacon 2018
Dave Stokes
 
Hechsp 001 Chapter 3
Brian Kelly
 
Sql server basics
Dilfaroz Khan
 
Oracle Tablespace - Basic
Eryk Budi Pratama
 
Less05 storage
Imran Ali
 

Viewers also liked (12)

PPTX
Standard 9
sangita_chosencaregroup
 
ODP
Maxi yousendit
iemunsasalta promo aleph
 
PDF
How To Use Hightail
Jayson Ijalo
 
PPTX
How to send a big file using dropbox
louie Tuboro
 
PPTX
Onedrive
Ultron5 ME
 
PPTX
onedrive
Carolina Linares
 
PDF
Tomo I - Cabeza y Cuello - Popesko
Juan Pablo Lopez
 
PDF
Tecnicas de estudio 2011
Oscar López Regalado
 
PPTX
RapidMiner: Data Mining And Rapid Miner
DataminingTools Inc
 
DOCX
1 solucion de guia taller aa3 blackboard sesion en linea
.. ..
 
PPTX
Caracteristicas de slideshare
paulacamargo05
 
PPTX
Uso de onedrive
Pa Ma Bu Ma
 
Maxi yousendit
iemunsasalta promo aleph
 
How To Use Hightail
Jayson Ijalo
 
How to send a big file using dropbox
louie Tuboro
 
Onedrive
Ultron5 ME
 
Tomo I - Cabeza y Cuello - Popesko
Juan Pablo Lopez
 
Tecnicas de estudio 2011
Oscar López Regalado
 
RapidMiner: Data Mining And Rapid Miner
DataminingTools Inc
 
1 solucion de guia taller aa3 blackboard sesion en linea
.. ..
 
Caracteristicas de slideshare
paulacamargo05
 
Uso de onedrive
Pa Ma Bu Ma
 
Ad

Similar to Big file tablespaces (20)

PPT
Week 10-11 Managing Tablespaces and Data Files.ppt
IqraHanif27
 
PDF
02-Oracle 19c-Storage-Management de Base de Datos
FreddyRonaldSandoval
 
PPTX
tablespaces and datafiles in database administration
AsharJaved14
 
PDF
Tablespaces
Vinay Thota
 
PPT
Less07 storage
Amit Bhalla
 
DOCX
Oracle Managed Files
Anar Godjaev
 
PPT
Creating database
Hitesh Kumar Markam
 
DOCX
Discussion 1Respond to the following in 100 words or less. Work.docx
duketjoy27252
 
PPT
Les 18 space
Femi Adeyemi
 
PPT
database-stucture-and-space-managment.ppt
Iftikhar70
 
PPT
database-stucture-and-space-managment.ppt
subbu998029
 
PPT
Oracle Architecture software overview ppts
ssuserf272701
 
PPT
Capitulo 01 Dba 2
Julio Pari
 
DOC
Create manula and automaticly database
Anar Godjaev
 
TXT
Oracle11g notes
Manish Mudhliyar
 
PDF
8 i locally_mgr_tbsp
Anil Pandey
 
PPTX
Sql plsql online training
enrollmy training
 
PPT
Overview of Primary Components of the Oracle
umarodnguj
 
PPT
Online Oracle Training For Beginners
vibrantuser
 
PPTX
Oracle administration classes in mumbai
Vibrant Technologies & Computers
 
Week 10-11 Managing Tablespaces and Data Files.ppt
IqraHanif27
 
02-Oracle 19c-Storage-Management de Base de Datos
FreddyRonaldSandoval
 
tablespaces and datafiles in database administration
AsharJaved14
 
Tablespaces
Vinay Thota
 
Less07 storage
Amit Bhalla
 
Oracle Managed Files
Anar Godjaev
 
Creating database
Hitesh Kumar Markam
 
Discussion 1Respond to the following in 100 words or less. Work.docx
duketjoy27252
 
Les 18 space
Femi Adeyemi
 
database-stucture-and-space-managment.ppt
Iftikhar70
 
database-stucture-and-space-managment.ppt
subbu998029
 
Oracle Architecture software overview ppts
ssuserf272701
 
Capitulo 01 Dba 2
Julio Pari
 
Create manula and automaticly database
Anar Godjaev
 
Oracle11g notes
Manish Mudhliyar
 
8 i locally_mgr_tbsp
Anil Pandey
 
Sql plsql online training
enrollmy training
 
Overview of Primary Components of the Oracle
umarodnguj
 
Online Oracle Training For Beginners
vibrantuser
 
Oracle administration classes in mumbai
Vibrant Technologies & Computers
 
Ad

Recently uploaded (20)

PPTX
Maternal and Child Tracking system & RCH portal
Ms Usha Vadhel
 
PPTX
HIRSCHSPRUNG'S DISEASE(MEGACOLON): NURSING MANAGMENT.pptx
PRADEEP ABOTHU
 
PPTX
Modern analytical techniques used to characterize organic compounds. Birbhum ...
AyanHossain
 
PPTX
ABDOMINAL WALL DEFECTS:GASTROSCHISIS, OMPHALOCELE.pptx
PRADEEP ABOTHU
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PDF
Right to Information.pdf by Sapna Maurya XI D
Directorate of Education Delhi
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PDF
FULL DOCUMENT: Read the full Deloitte and Touche audit report on the National...
Kweku Zurek
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
Nutrition Month 2025 TARP.pptx presentation
FairyLouHernandezMej
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
How to Consolidate Subscription Billing in Odoo 18 Sales
Celine George
 
PDF
Module 1: Determinants of Health [Tutorial Slides]
JonathanHallett4
 
PDF
A guide to responding to Section C essay tasks for the VCE English Language E...
jpinnuck
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PPTX
Mrs Mhondiwa Introduction to Algebra class
sabinaschimanga
 
PDF
Stepwise procedure (Manually Submitted & Un Attended) Medical Devices Cases
MUHAMMAD SOHAIL
 
PDF
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
PPTX
Constitutional Design Civics Class 9.pptx
bikesh692
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
Maternal and Child Tracking system & RCH portal
Ms Usha Vadhel
 
HIRSCHSPRUNG'S DISEASE(MEGACOLON): NURSING MANAGMENT.pptx
PRADEEP ABOTHU
 
Modern analytical techniques used to characterize organic compounds. Birbhum ...
AyanHossain
 
ABDOMINAL WALL DEFECTS:GASTROSCHISIS, OMPHALOCELE.pptx
PRADEEP ABOTHU
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Right to Information.pdf by Sapna Maurya XI D
Directorate of Education Delhi
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
FULL DOCUMENT: Read the full Deloitte and Touche audit report on the National...
Kweku Zurek
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Nutrition Month 2025 TARP.pptx presentation
FairyLouHernandezMej
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
How to Consolidate Subscription Billing in Odoo 18 Sales
Celine George
 
Module 1: Determinants of Health [Tutorial Slides]
JonathanHallett4
 
A guide to responding to Section C essay tasks for the VCE English Language E...
jpinnuck
 
digestive system for Pharm d I year HAP
rekhapositivity
 
Mrs Mhondiwa Introduction to Algebra class
sabinaschimanga
 
Stepwise procedure (Manually Submitted & Un Attended) Medical Devices Cases
MUHAMMAD SOHAIL
 
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
Constitutional Design Civics Class 9.pptx
bikesh692
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 

Big file tablespaces

  • 1. { Big File Tablespaces Presentation By :- Devang Vyas(14501002) Rushang vaghela(14501006)
  • 2. Why Bigfile Tablespaces ? • Oracle Database 11g can contain up to 8 exabytes (8 million terabytes) of data. How many millions of datafiles you’d need to manage in order to hold this much data. You have the option of creating really big tablespaces called, bigfile tablespaces. A bigfile tablespace (BFT) contains only one very large datafile.
  • 3.  Two ways For Create Data files 1) Permanent tablespace . 2) Temporary tablespace
  • 4. DataFiles :- The Data file contains data of all the logical structure that are part of table space like,Table,index etc. Tablespaces :- A tablespace is a set of one or more datafiles and usually consist of related segments • Using the bigfile concept, Oracle has made a tablespace logically equal to a datafile by creating the new one-to-one relationship between tablespaces and datafiles.
  • 5. Creating Bigfile Tablespaces Three Different Ways to Create bigfile tablespaces 1) Specify them at database creation time and thus make them the default tablespace type . 2) Use the CREATE BIGFILE statement. 3)Use the ALTER DATABASE statement to set the default type to a BFT tablespace.
  • 6. 1) Specify BFTs as the default tablespace type during database creation. If you don’t explicitly specify BFT as your default tablespace type, Database will have the traditional smallfile tablespace as the default  Syntax :- CREATE DATABASE statement, showing how you specify a BFT: SQL> CREATE DATABASE SET DEFAULT BIGFILE tablespace . . .  Once you set the default tablespace type to bigfile tablespaces, all tablespaces you create subsequently  will be BFTs unless you manually override the default setting
  • 7.  The previous sections have dealt with operating system file management  where you, the DBA,manually create, delete, and manage the datafiles.  Oracle Managed Files enable you to bypass dealing with operating system files directly.  In Oracle database, you deal with various types of database files,  Including,  datafiles,  control files,  online redo log files. File Management with Oracle Managed Files
  • 8. 2) Use the CREATE TABLESPACE statement, as shown here: SQL> CREATE BIGFILE TABLESPACE bigtbs_01 DATAFILE '/u01/oracle/data/bigtbs_01.dbf' SIZE 100G . . ..  When you specify the CREATE BIGFILE TABLESPACE clause, Oracle will automatically create a  locally managed tablespace with automatic segment space management.
  • 9. 3) Use the ALTER DATABASE statement to set the default type to a BFT tablespace.  You can dynamically change the default tablespace type to bigfile or smallfile, thus making all  tablespaces you subsequently create either bigfile or smallfile type tablespaces.  Here’s an example  that shows how to set the default tablespace type in your database to bigfile:  SQL> ALTER TABLESPACE SET DEFAULT BIGFILE TABLESPACE;
  • 10.  You can use the RESIZE and AUTOEXTEND clauses in the ALTER TABLESPACE statement to modify the size of a BFT. • RESIZE : The RESIZE clause lets you resize a BFT directly, without using the DATAFILE clause, as shown here: SQL> ALTER TABLESPACE bigtbs RESIZE 120G; • AUTOEXTEND : The AUTOEXTEND clause enables automatic file extension, again without referring to the datafile. Here’s an example: SQL> ALTER TABLESPACE bigtbs AUTOEXTEND ON NEXT 20G; Altering a Bigfile Tablespace
  • 11.  You can gather information about the BFTs in your database by using the following data dictionary views: • DBA_TABLESPACES • USER_TABLESPACES • V$TABLESPACE  All three views have the new BIGFILE column, whose value indicates whether a tablespace is of the BFT type (YES) or smallfile type (NO). Viewing Bigfile Tablespace Information
  • 12.  You can also use the DATABASE_PROPERTIES data dictionary view, as shown in the following query, to find out what the default tablespace type for your database is:  SQL> SELECT property_value  FROM database_properties  WHERE property_name='DEFAULT_TBS_TYPE'; Output :-  PROPERTY_VALUE  --------------  SMALLFILE  SQL> DATABASE_PROPERTIES
  • 13.  Oracle Database 10g mandates the creation of the Sysaux tablespace, which serves as an auxiliary tablespace to the System tablespace.  System tablespace was the default location for storing objects belonging to components like the Workspace Manager, Logical Standby, Oracle Spatial, and so on. Managing the Sysaux Tablespace
  • 14.  You can create the Sysaux tablespace manually at database creation time. Here is the syntax for creating the Sysaux tablespace :  CREATE DATABASE mydb USER sys IDENTIFIED BY abc1def USER system IDENTIFIED BY uvw2xyz . . . SYSAUX DATAFILE '/u01/oracle/oradata/mydb/sysaux01.dbf' SIZE 500M REUSE . . . Creating the Sysaux Tablespace
  • 15.  Once you provide the datafile location and size, Oracle creates the Sysaux tablespace with the following attributes : • Permanent • Read/write • Locally managed • Automatic segment space management  You can alter the Sysaux tablespace using the same ALTER TABLESPACE command that you use for other tablespaces. Here’s an example:  SQL> ALTER TABLESPACE sysaux ADD DATAFILE  '/u01/app/oracle/prod1/oradata/sysaux02.dbf' SIZE 500M;
  • 16.  Key dictionary views to manage tablespaces in an Oracle database  • DBA_TABLESPACES  • DBA_FREE_SPACE  • DBA_SEGMENTS  • DBA_DATA_FILES  • DBA_TABLESPACE_GROUPS Data Dictionary Views for Managing Tablespaces
  • 17.  The previous sections have dealt with operating system file management, where you, the DBA, manually create, delete, and manage the datafiles.  Easy File Management with Oracle Managed Files
  • 18.  Here are a couple of examples showing how simple it is to create a tablespace and add space to it under an OMF system:  SQL> CREATE TABLESPACE finance01;  SQL> ALTER TABLESPACE finance01 ADD DATAFILE 500M;  Similarly, when you want to drop a tablespace, you just need to issue the DROP TABLESPACE  command and the OMF datafiles are automatically removed by Oracle, along with the tablespace definition:  SQL> DROP TABLESPACE finance01;
  • 19.  OMF files offer several advantages over user-managedfiles: • Oracle automatically creates and deletes OMF files. • You don’t have to worry about coming up with a naming convention for the files. • It’s easy to drop datafiles by mistake when you’re managing them. With OMF files, you don’trun the risk of accidentally deleting database files. • Oracle automatically deletes a file when it’s no longer needed. • You can have a mix of traditional files and OMF files in the same database. Benefits of Using OMF
  • 20.  You can create OMF files when you create the database, or you can add them to a database that you created with traditional datafiles later on. Either way, you need to set some initialization parameters to enable OMF file creation. Creating Oracle Managed Files
  • 21. Initialization Parameters for OMF • You can set these four parameters in your parameter file, and you can change them online with the ALTER SYSTEM or ALTER SESSION statement. • You can use each of these parameters to specify the file destination for different types of OMF files, such as • datafiles, • control files, and • online redo log files:
  • 22. • DB_CREATE_FILE_DEST :- This parameter specifies the default location of datafiles, online redo log files, control files, block-change tracking files, and tempfiles. • DB_CREATE_ONLINE_LOG_DEST_n :- You can use this parameter to specify the default location of online redo log files and control files. • DB_RECOVERY_FILE_DEST :- This parameter defines the default location for control files, archived redo log files, RMAN backups, and flashback logs. Parameters For OMF
  • 23.  You can use OMF to create all three types of files that the Oracle database requires: control files, redo log files, and datafiles. Different Types of Oracle Managed Files
  • 24.  Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database. The control file includes:  The database name  Names and locations of associated datafiles and redo log files  The timestamp of the database creation  The current log sequence number  Checkpoint information Control Files
  • 25.  OMF redo log file creation is similar to control file creation. If you don’t specify a location for the redo log files, and you set either the DB_CREATE_FILE_DEST or the DB_CREATE_ONLINE_LOG_DEST_n parameter in the init.ora file, Oracle automatically creates OMF-based redo log files. Redo Log Files
  • 26.  If you don’t specify a datafile location in the CREATE or ALTER statements for a regular datafile, or a tempfile for a temporary tablespace, tempfile, or an undo tablespace datafile, but instead specify the  DB_CREATE_FILE_DEST parameter, all these files will be OMF files. Datafiles