Table of Contents

Oracle Database - File System

File System on Linux

The file system is a storage option for the database files during the installation of a database.

Oracle Database Configuration Assistant creates the database files in a directory on a file system mounted on the computer. Oracle recommends that the file system you choose be separate from the file systems used by the operating system or the Oracle software. The file system that you choose can be any of the following:

If you are creating a database on basic disks that are not logical volumes or RAID devices, then Oracle recommends that you follow the Optimal Flexible Architecture (OFA) recommendations and distribute the database files over more than one disk.

If you are using multiple disks in an LVM or RAID configuration, then Oracle recommends that you use the stripe and mirror everything (SAME) methodology to increase performance and reliability. Using this methodology, you do not need to specify more than one file system mount point for database storage.

If you choose the Advanced database creation option, then you can also choose to use the Oracle-managed files feature with the new database. If you use this feature, then you must specify only the database object name instead of file names when creating or deleting database files.

Guidelines on Linux

If you choose to place the Oracle Database files on a file system, then use the following guidelines when deciding where to place them:

Creating Required Installation Directories

You must perform this procedure only if you want to place the Oracle Database or recovery files on a separate file system to the Oracle base directory.

To create directories for the Oracle database, or recovery files on separate file systems to the Oracle base directory:

# df -h
File Type File System Requirements
Database files Choose either:
* A single file system with at least 2 GB of free disk space
* Two or more file systems with at least 2 GB of free disk space in total
Recovery files Choose a file system with at least 2.4 GB of free disk space
# mkdir /mount_point/oradata
# chown oracle:oinstall /mount_point/oradata
# chmod 775 /mount_point/oradata

The default location for Database file directory is ORACLE_BASE/oradata.

# mkdir /mount_point/recovery_area
# chown oracle:oinstall /mount_point/recovery_area
# chmod 775 /mount_point/recovery_area

The default fast recovery area is ORACLE_BASE/recovery_area. However, Oracle recommends that you keep the fast recovery area on a separate physical disk than that of the database file directory. This will enable you use the fast recovery area to retrieve data if the disk containing oradata is unusable due to any reasons.

Documentation / Reference