- Oracle linux install from rpm
- Oracle linux install from rpm
- Oracle linux install from rpm
- Oracle linux install from rpm
- 4 Oracle Database Preinstallation Tasks
- 4.1 Guidelines for Linux Operating System Installation
- 4.1.1 Completing a Minimal Linux Installation
- 4.1.1.1 About Minimal Linux Installations
- 4.1.1.2 RPM Packages for Completing Operating System Configuration
- 4.1.1.3 Open SSH Requirement for Minimal Installation
- 4.1.2 Completing a Default Linux Installation
- 4.1.3 About Oracle Linux and the Unbreakable Enterprise Kernel
- 4.1.4 About the Oracle Preinstallation RPM
- 4.1.5 Using Oracle Ksplice to Perform a Zero Downtime Update
- 4.2 Logging In to the System as root
- 4.3 Configuring Servers for Oracle Database
- 4.3.1 Checking Server Hardware and Memory Configuration
- 4.3.2 General Server Minimum Requirements
- 4.3.3 Server Storage M inimum Requirements
- 4.3.3.1 Disk Space Requirements for Linux x86-64
- 4.3.3.2 Disk Space Requirements for IBM: Linux on System z
- 4.3.3.3 Disk Space Requirements for the Temporary Directory
- 4.3.4 Server Memory Minimum Requirements
- 4.4 R eviewing Operating System Security Common Practices
- 4.5 Using Installation Fixup Scripts
- 4.6 U sing Oracle RPM Checker on IBM: Linux on System z
- 4.7 About Operating System Requirements
- 4.8 Operating System Requirements for x86-64 Linux Platforms
- 4.8.1 S upported Oracle Linux 7 and Red Hat Enterprise Linux 7 Distributions for x86-64
- 4.8.2 S upported Oracle Linux 6 and Red Hat Enterprise Linux 6 Distributions for x86-64
- 4.8.3 S upported Oracle Linux 5 and Red Hat Enterprise Linux 5 Distributions for x86-64
- 4.8.4 S upported SUSE Distributions for x86-64
- 4.8.5 Supported NeoKylin Linux Advanced Server Distributions for x86-64
- 4.9 Operating System Requirements for IBM: Linux on System z
- 4.9.1 S upported Red Hat Enterprise Linux 7 Distributions for IBM: Linux on System z
- 4.9.2 S upported Red Hat Enterprise Linux 6 Distributions for IBM: Linux on System z
- 4.9.3 S upported Red Hat Enterprise Linux 5 Distributions for IBM: Linux on System z
- 4.9.4 S upported SUSE Distributions for IBM: Linux on System z
- 4.10 A dditional Drivers and Software Packages for Linux
- 4.10.1 I nstallation Requirements for Open Database Connectivity
- 4.10.1.1 About ODBC Drivers and Oracle Database
- 4.10.1.2 Installing Oracle ODBC Driver for Linux
- 4.10.2 I nstallation Requirements for PAM on Linux
- 4.10.2.1 About PAM and Login Authentication
- 4.10.2.2 Installing PAM Library
- 4.10.3 I nstallation Requirements for Oracle Messaging Gateway
- 4.10.3.1 About Oracle Messaging Gateway
- 4.10.3.2 Installing Oracle Messaging Gateway
- 4.10.4 I nstallation Requirements for Lightweight Directory Access Protocol
- 4.10.4.1 About LDAP and Oracle Plug-ins
- 4.10.4.2 Installing the LDAP Package
- 4.10.5 I nstallation Requirements for Programming Environments for Linux
- 4.10.5.1 About Programming Environments and Oracle Database
- 4.10.5.2 Configuring Support for Programming Environments
- 4.10.6 I nstallation Requirements for Web Browsers
- 4.11 Checking the Software Requirements
- 4.12 Installing the cvuqdisk RPM for Linux
- 4.13 C hecking Shared Memory File System Mount on Linux
- 4.14 C onfirming Host Name Resolution
- 4.15 D isabling Transparent HugePages
- 4.16 Identifying Required Software Directories
- 4.16.1 Oracle Base Directory
- 4.16.2 Oracle Inventory Directory
- 4.16.3 Oracle Home Directory
- 4.17 Identifying or Creating an Oracle Base Directory
- 4.17.1 Identifying an Existing Oracle Base Directory
- 4.17.2 Creating the Oracle Base and Oracle Inventory Directories
- 4.18 Setting Disk I/O Scheduler on Linux
- 4.19 Choosing a Storage Option for Oracle Database and Recovery Files
- 4.20 Creating Directories for Oracle Database or Recovery Files
- 4.20.1 Guidelines for Placing Oracle Database Files on a File System
- 4.20.2 Creating Required Directories
Oracle linux install from rpm
Learn how to install Oracle Instant Client by downloading the RPMs and using the yum install command.
Starting with 19c, by default, you can install only one version of the Oracle Instant Client RPM packages at a time. If you need multiple versions, use the Oracle Instant Client zip files.
Removing Earlier Oracle Instant Client Installations
Remove any earlier installations of Oracle Instant Client using yum before you start a fresh installation.
List the currently installed Oracle Instant Client packages. For example:
For Oracle Linux 7:
For Oracle Linux 8:
The output will be like:
Remove the Oracle Instant Client packages. For example:
For Oracle Linux 7:
For Oracle Linux 8:
Remove the legacy Oracle Instant Client yum repository setup package. For example:
For Oracle Linux 7:
For Oracle Linux 8:
A reboot is not required.
Installing Oracle Instant Client From the yum Server
If you are using Oracle Linux and have configured your Oracle Linux yum server, then you can install Oracle Instant Client using the yum install command.
Install the Oracle Linux release package to configure repository definitions for Oracle Instant Client:
For Oracle Linux 7:
For Oracle Linux 8:
Go to the Oracle Instant Client repositories to view the available Oracle Instant Client packages:
For Oracle Linux 7:
For Oracle Linux 8:
All installations require a Basic or Basic Light package. All other packages are optional.
Install Oracle Instant Client packages using yum .
For Oracle Linux 7:
For Oracle Linux 8:
To install other Oracle Instant Client packages like SQL*Plus, run:
For Oracle Linux 7:
For Oracle Linux 8:
Using versionlock to Avoid Upgrades
To ensure that you do not inadvertently upgrade Oracle Instant Client when a new major release is published, use yum versionlock after you have installed Oracle Instant Client 21c.
For Oracle Linux 7:
For Oracle Linux 8:
Configuring yum versionlock still allows automatic Oracle Instant Client release updates to 21.2, 21.3, and so on.
Manually Downloading and Installing Oracle Instant Client RPM Packages
An alternative method for installing Oracle Instant Client is to manually download and install the Oracle Instant Client packages.
Go to the Oracle Instant Client Downloads page:
Download the desired Oracle Instant Client RPM packages. Select the correct platform, architecture, and packages of your choice. For example, if your application is 64-bit, then ensure that you select 64-bit Instant Client and download the Basic Package RPM file.
All installations require a Basic or Basic Light package. All other packages are optional.
Install the packages using yum .
For Oracle Linux 7:
For Oracle Linux 8:
Additionally, you may have to perform the following tasks before you start your application:
If you intend to colocate optional Oracle configuration files such as tnsnames.ora , sqlnet.ora , ldap.ora , or oraaccess.xml with Oracle Instant Client, then move these files to the /usr/lib/oracle/21/client64/lib/network/admin subdirectory.
This is the default Oracle configuration directory for applications linked with this Oracle Instant Client.
Alternatively, you can move the Oracle configuration files to another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.
To use binaries from the tools package, use yum or dnf to install the package and then update your PATH environment variable. For example:
Oracle linux install from rpm
Use Oracle Preinstallation RPM to simplify operating system configuration, and to ensure that you have required kernel packages.
Oracle recommends that you install Oracle Linux 6 or Oracle Linux 7 and use Oracle Preinstallation RPM to configure your operating systems for Oracle Database and Oracle Grid Infrastructure installations.
The Oracle Preinstallation RPM for your Oracle Linux distributions and database release automatically installs any additional packages needed for installing Oracle Grid Infrastructure and Oracle Database, and configures your server operating system automatically, including setting kernel parameters and other basic operating system requirements for installation. For more information about Oracle Linux and Oracle Preinstallation RPM, refer to:
Configuring a server using Oracle Linux and the Oracle Preinstallation RPM consists of the following steps:
Install Oracle Linux.
Register your Linux distribution with Oracle Unbreakable Linux Network (ULN) or download and configure the yum repository for your system using the Oracle Linux yum server for your Oracle Linux release.
Install the Oracle Preinstallation RPM with the RPM for your Oracle Grid Infrastructure and Oracle Database releases, and update your Linux release.
Create role-allocated groups and users with identical names and ID numbers.
Complete network interface configuration for each cluster node candidate.
Complete system configuration for shared storage access as required for each standard or core node cluster candidate.
After these steps are complete, you can proceed to install Oracle Grid Infrastructure and Oracle Database.
Oracle linux install from rpm
If your Linux distribution is Oracle Linux, or Red Hat Enterprise Linux, and you are an Oracle Linux support customer, then you can complete most preinstallation configuration tasks by using the Oracle Preinstallation RPM for your release.
Oracle Preinstallation RPMs are available from the Oracle Linux Network or available on the Oracle Linux DVDs. Using the Oracle Preinstallation RPM is not required, but Oracle recommends you use it to save time in setting up your cluster servers.
When installed, the Oracle Preinstallation RPM does the following:
Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies
Creates an oracle user, and creates the oraInventory ( oinstall ) and OSDBA ( dba ) groups for that user
As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle Preinstallation RPM program
Sets hard and soft resource limits
Sets other recommended parameters, depending on your kernel version
Sets numa=off in the kernel for Linux x86_64 machines.
The Oracle Preinstallation RPM does not install OpenSSH, which is required for Oracle Grid Infrastructure installation. If you perform a minimal Linux installation and install the Oracle Preinstallation RPM for your release, then you must also install the OpenSSH client manually. Using RSH is no longer supported.
To become an Oracle Linux Network customer, contact your sales representative or purchase a license from the Oracle Linux store:
To register your server on the Unbreakable Linux Network, or to find out more information, see the following URL:
If you are using Oracle Linux 5.2 or a higher release, then the Oracle Preinstallation RPM is included on the install media.
The Oracle Preinstallation RPM designated for each Oracle Database release sets kernel parameters and resource limits only for the user account oracle . To use multiple software account owners, you must perform system configuration for other accounts manually.
Oracle linux install from rpm
If your Linux distribution is Oracle Linux, or Red Hat Enterprise Linux, and you are an Oracle Linux support customer, then you can complete most preinstallation configuration tasks by using the Oracle Preinstallation RPM for your release.
Oracle Preinstallation RPMs are available from the Oracle Linux Network or available on the Oracle Linux DVDs. Using the Oracle Preinstallation RPM is not required, but Oracle recommends you use it to save time in setting up your cluster servers.
When installed, the Oracle Preinstallation RPM does the following:
Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies
Creates an oracle user, and creates the oraInventory ( oinstall ) and OSDBA ( dba ) groups for that user
As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle Preinstallation RPM program
Sets hard and soft resource limits
Sets other recommended parameters, depending on your kernel version
Sets numa=off in the kernel for Linux x86_64 machines.
The Oracle Preinstallation RPM does not install OpenSSH, which is required for Oracle Grid Infrastructure installation. If you perform a minimal Linux installation and install the Oracle Preinstallation RPM for your release, then you must also install the OpenSSH client manually. Using RSH is no longer supported.
To become an Oracle Linux Network customer, contact your sales representative or purchase a license from the Oracle Linux store:
To register your server on the Unbreakable Linux Network, or to find out more information, see the following URL:
If you are using Oracle Linux 5.2 or a higher release, then the Oracle Preinstallation RPM is included on the install media.
The Oracle Preinstallation RPM designated for each Oracle Database release sets kernel parameters and resource limits only for the user account oracle . To use multiple software account owners, you must perform system configuration for other accounts manually.
4 Oracle Database Preinstallation Tasks
This chapter describes the tasks that you must complete before you start Oracle Universal Installer.
To use Oracle Automatic Storage Management (Oracle ASM) or Oracle Restart, you must first install Oracle Grid Infrastructure for a standalone server before you install and create the database. Otherwise, you must manually register the database with Oracle Restart.
This chapter includes information about the following topics:
Appendix A, «Country Codes», in Oracle Configuration Manager Installation and Administration Guide for a list of valid country codes that can be used while installing Oracle Configuration Manager
4.1 Guidelines for Linux Operating System Installation
This section provides information about installing a supported Linux distribution. Complete the minimum hardware configuration before you install the operating system.
This section contains the following topics:
4.1.1 Completing a Minimal Linux Installation
Review the following sections regarding minimal Linux installation requirements:
4.1.1.1 About Minimal Linux Installations
To complete a minimal Linux installation, select one of the minimal installation options (either a custom installation where you select the Minimal option from Package Group Selection, or where you deselect all packages except for the Base pack). This installation lacks many RPMs required for database installation, so you must use an RPM package for your Oracle Linux release to install the required packages. The package you use depends on your Linux release, and your support status with Unbreakable Linux Network (ULN).
The Oracle Preinstallation RPM installs the X11 client libraries, but it does not install the X Window System server packages. To use graphical user interfaces such as OUI, configuration assistants, and Oracle Enterprise Manager, set the display to a system with X Window System server packages.
Refer to the following URL for documentation regarding installation of a reduced set of packages:
If you are not a member of Unbreakable Linux Network or Red Hat Support network, and you are a My Oracle Support customer, then you can download instructions to configure a script that documents installation of a reduced set of packages:
You can also search for «Linux reduced set of packages» to locate the instructions.
4.1.1.2 RPM Packages for Completing Operating System Configuration
Oracle Linux 6 Preinstallation RPM With ULN Support
Oracle Preinstallation RPM for your Oracle Linux 6 kernel ( oracle-rdbms-server-12cR1-preinstall ).
Unbreakable Linux Network (ULN) customers can obtain the Oracle Preinstallation RPM by using yum .
Oracle Linux 5 Oracle Validated RPM With ULN Support
Oracle Validated RPM ( oracle-validated ) for your Oracle Linux 5 kernel.
Unbreakable Linux Network (ULN) customers can obtain the Oracle Validated RPM by using up2date , or using yum (5.5 and later releases).
Oracle Linux 6 Preinstallation RPM Without ULN Support
Oracle Linux 5 Oracle Validated RPM Without ULN Support
4.1.1.3 Open SSH Requirement for Minimal Installation
SSH is required for Oracle Grid Infrastructure installation. OpenSSH should be included in the Linux distribution minimal installation. To confirm that SSH packages are installed, enter the following command:
If you do not see a list of SSH packages, then install those packages for your Linux distribution.
4.1.2 Completing a Default Linux Installation
If you do not install the Oracle Preinstallation RPM, then Oracle recommends that you install your Linux operating system with the default software packages (RPMs). This installation includes most of the required packages and helps you limit manual verification of package dependencies. Oracle recommends that you do not customize the RPMs during installation.
For information about a default installation, log on to My Oracle Support:
Search for «default rpms linux installation,» and look for your Linux distribution. For example:
After installation, review system requirements for your distribution to ensure that you have all required kernel packages installed, and complete all other configuration tasks required for your distribution and system configuration.
4.1.3 About Oracle Linux and the Unbreakable Enterprise Kernel
Oracle’s Unbreakable Enterprise Kernel delivers the latest innovations from upstream development to customers who run Oracle Linux in the data center. The Unbreakable Enterprise Kernel is included and enabled by default starting with Oracle Linux 5 Update 6.
The Unbreakable Enterprise Kernel is based on a recent stable mainline development Linux kernel, and also includes optimizations developed in collaboration with Oracle Database, Oracle middleware, and Oracle hardware engineering teams to ensure stability and optimal performance for the most demanding enterprise workloads.
Oracle highly recommends deploying the Unbreakable Enterprise Kernel in your Oracle Linux environment, especially if you are running enterprise applications. However, using Oracle Linux with the Unbreakable Enterprise Kernel is optional. If you require strict Red Hat Enterprise Linux kernel (RHEL) compatibility, then Oracle Linux also includes a kernel compatible with the RHEL Linux kernel, compiled directly from the RHEL source code.
You can obtain more information about the Unbreakable Enterprise Kernel for Oracle Linux at the following URL:
The Unbreakable Enterprise Kernel for Oracle Linux is the standard kernel used with Oracle products. The build and QA systems for Oracle Database and other Oracle products use the Unbreakable Enterprise Kernel for Oracle Linux exclusively. The Unbreakable Enterprise Kernel for Oracle Linux is also the kernel used in Oracle Exadata and Oracle Exalogic systems. Unbreakable Enterprise Kernel for Oracle Linux is used in all benchmark tests on Linux in which Oracle participates, as well as in the Oracle Preinstallation RPM program for x86-64.
Oracle Ksplice, which is part of Oracle Linux, updates the Linux operating system (OS) kernel, while it is running, without requiring restarts or any interruption. Ksplice is available only with Oracle Linux.
4.1.4 About the Oracle Preinstallation RPM
If your Linux distribution is Oracle Linux, or Red Hat Enterprise Linux, and you are an Oracle Linux customer, then you can complete most preinstallation configuration tasks by using the Oracle Preinstallation RPM, available from the Oracle Linux Network, or available on the Oracle Linux DVDs. Using the Oracle Preinstallation RPM is not required, but Oracle recommends you use it to save time in setting up your cluster servers.
When installed, the Oracle Preinstallation RPM does the following:
Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies
Creates an oracle user, and creates the oraInventory ( oinstall ) and OSDBA ( dba ) groups for that user
As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle Preinstallation RPM program
Sets hard and soft resource limits
Sets other recommended parameters, depending on your kernel version
To become an Oracle Linux Network customer, contact your sales representative, or purchase a license from the Oracle Linux store:
To register your server on the Unbreakable Linux Network, or to find out more information, see the following URL:
If you are using Oracle Linux 5.2 and higher, then the Oracle Preinstallation RPM is included on the install media.
The Oracle Preinstallation RPM designated for each Oracle Database release sets kernel parameters and resource limits only for the user account oracle . To use multiple software account owners, you must perform system configuration for other accounts manually.
4.1.5 Using Oracle Ksplice to Perform a Zero Downtime Update
Oracle Ksplice Uptrack updates provide Linux security and bug fix updates, repackaged in a form that allows these updates to be applied without restarting the kernel.
To use Ksplice Uptrack:
Obtain or verify your Oracle Linux premium support subscription from Unbreakable Linux Network:
Ensure that you have access to the Internet on the server where you want to use Ksplice. For example, if you are using a proxy server, then set the proxy server and port values in the shell with commands similar to the following:
Download the Ksplice Uptrack repository RPM package:
Run the following commands:
Open /etc/uptrack/uptrack.conf with a text editor, enter your premium support access key, and save the file. You must use the same access key for all of your systems.
Run the following command to carry out a zero downtime update of your kernel:
The Oracle Ksplice Uptrack website for more information:
Oracle Ksplice for Oracle Linux
4.2 Logging In to the System as root
During installation, you must perform tasks as root or as other users on remote terminals. Complete the following procedure for user accounts that you want to enable for remote display.
If you log in as another user (for example, grid ), then repeat this procedure for that user as well.
To log in as the root user and enable remote display, complete one of the following procedures:
If you are installing the software from an X Window System workstation or X terminal, then:
Start a new X terminal session ( xterm ).
If you are installing the software on another system and using the system as an X11 display, then enter a command using the following syntax to enable remote hosts to display X applications on the local X server:
where RemoteHost is the fully qualified remote host name. For example:
If you are not installing the software on the local system, then use the ssh , rlogin , or telnet command to connect to the system where you want to install the software:
If you are not logged in as the root user, then enter the following command to switch the user to root :
To install the software from a PC or other system with X server software:
If necessary, see the X server documentation, or contact your X server vendor or system administrator for more information about completing this procedure. Depending on the X server software that you are using, you may have to complete the tasks in a different order.
Start the X Window System software.
Configure the security settings of the X Window System software to permit remote hosts to display X applications on the local system.
Connect to the remote system where you want to install the software as the oracle software installation owner ( oracle ) and start an X terminal session ( xterm ) on that system.
Open another terminal on the remote system, and log in as the root user on the remote system, so you can run scripts as root when prompted.
4.3 Configuring Servers for Oracle Database
This section describes the following operating system tasks you must complete before you install Oracle Database:
4.3.1 Checking Server Hardware and Memory Configuration
Run the following commands to check your current system information:
To determine the physical RAM size, enter the following command:
If the size of the physical RAM installed in the system is less than the required size, then you must install more memory before continuing.
To determine the size of the configured swap space, enter the following command:
If necessary, see your operating system documentation for information about how to configure additional swap space.
To determine the amount of space available in the /tmp directory, enter the following command:
To determine the amount of free disk space on the system, enter the following command:
To determine the amount of free RAM and disk swap space on the system, enter the following command:
To determine if the system architecture can run the software, enter the following command:
Verify that the processor architecture matches the Oracle software release to install. For example, you should see the following for a x86-64 bit system:
If you do not see the expected output, then you cannot install the software on this system.
4.3.2 General Server Minimum Requirements
Ensure the following general minimum requirements on your system:
Ensure that the system is started with runlevel 3 or runlevel 5.
Ensure display cards provide at least 1024 x 768 display resolution, so that Oracle Universal Installer displays correctly while performing a system console-based installation
4.3.3 Server Storage M inimum Requirements
Ensure that your system meets the following minimum storage requirements, depending on your system architecture:
4.3.3.1 Disk Space Requirements for Linux x86-64
Ensure that your Linux x86-64 system meets the disk space requirements for software files as described in Table 4-1
Table 4-1 Disk Space Requirements on Linux x86-64
Installation Type | Disk Space for Software Files | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Installation Type | Disk Space for Software Files | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RAM | Swap Space | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Item | Requirements | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Programming Environments | Support Requirements | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Oracle C++ Oracle C++ Call Interface Pro*C/C++ Oracle XML Developer’s Kit (XDK) |
Programming Environments | Support Requirements | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Requirement | Free Disk Space |
---|---|
The Oracle base directory contains only software files. | Up to 4 GB |
The Oracle base directory contains both software and database files (not recommended for production databases). | Up to 6 GB |
To determine the free disk space on the file system where the Oracle base directory is located, enter the following command:
See the following sections for more information:
If an Oracle base directory exists and you want to use it, then see «Choosing a Storage Option for Oracle Database and Recovery Files» section.
When you configure the oracle user’s environment later in this chapter, set the ORACLE_BASE environment variable to specify the directory you chose.
If an Oracle base directory does not exist on the system or to create an Oracle base directory, see «Creating the Oracle Base and Oracle Inventory Directories».
4.17.2 Creating the Oracle Base and Oracle Inventory Directories
Before you create an Oracle base directory, you must identify an appropriate file system with sufficient free disk space.
To identify an appropriate file system, perform the following:
Determine the free disk space on each mounted file system, using the following command:
Identify a file system that has the appropriate amount of free space, from the display:
The file system that you identify can be a local file system, a cluster file system, or an NFS file system on a certified NAS device.
Note the name of the mount point directory for the file system that you identified.
To create the Oracle base directory and specify the correct owner, group, and permissions for it, perform the following:
Enter commands similar to the following to create the recommended subdirectories in the mount point directory that you identified and set the appropriate owner, group, and permissions on them:
When you configure the oracle user’s environment later in this chapter, set the ORACLE_BASE environment variable to specify the Oracle base directory that you created.
4.18 Setting Disk I/O Scheduler on Linux
Disk I/O schedulers reorder, delay, or merge requests for disk I/O to achieve better throughput and lower latency. Linux has multiple disk I/O schedulers available, including Deadline, Noop, Anticipatory, and Completely Fair Queuing (CFQ). For best performance for Oracle ASM, Oracle recommends that you use the Deadline I/O Scheduler.
Enter the following command to ensure that the Deadline disk I/O scheduler is configured for use:
4.19 Choosing a Storage Option for Oracle Database and Recovery Files
Oracle Database files include data files, control files, redo log files, the server parameter file, and the password file. For all installations, you must choose the storage option to use for Oracle Database files. During the database installation, you must choose the storage option to use for recovery files (the fast recovery area). You do not have to use the same storage option for each file type.
Database files and recovery files are supported on file systems and Oracle ASM.
Use the following guidelines when choosing the storage options for each file type:
Choose any combination of the supported storage options for each file type.
Determine whether you want to use Oracle ASM for Oracle Database files, recovery files, or both. See «Identifying Storage Requirements for Oracle Automatic Storage Management» for more information.
See «Database Storage Options» for more information about these storage options
For information on how to configure disk storage before you start the installation, see one of the following sections depending on your choice:
To use a file system for database or recovery file storage, see the «Creating Directories for Oracle Database or Recovery Files» section.
To use Oracle ASM for database or recovery file storage, see the «Configuring Storage for Oracle Automatic Storage Management» section.
To identify existing disk groups and determine the free disk space that they contain, see the «Using an Existing Oracle Automatic Storage Management Disk Group» section.
4.20 Creating Directories for Oracle Database or Recovery Files
This section contains the following topics:
4.20.1 Guidelines for Placing Oracle Database Files on a File System
If you choose to place the Oracle Database files on a file system, then use the following guidelines when deciding where to place them:
The default path suggested by Oracle Universal Installer for the database file directory is a subdirectory of the Oracle base directory.
You can choose either a single file system or more than one file system to store the database files:
If you want to use a single file system, then choose a file system on a physical device that is dedicated to the database.
For best performance and reliability, choose a RAID device or a logical volume on more than one physical device and implement the stripe-and-mirror-everything (SAME) methodology.
If you want to use more than one file system, then choose file systems on separate physical devices that are dedicated to the database.
This method enables you to distribute physical input-output operations and create separate control files on different devices for increased reliability. It also enables you to fully implement the OFA guidelines. You can choose the Advanced database creation option to implement this method.
If you intend to create a preconfigured database during the installation, then the file system (or file systems) that you choose must have at least 2 GB of free disk space.
For production databases, you must estimate the disk space requirement depending on the use of the database.
For optimum performance, the file systems that you choose must be on physical devices that are used only by the database.
The oracle user must have write permissions to create the files in the path that you specify.
4.20.2 Creating Required Directories
You must perform this procedure only to place the Oracle Database or recovery files on a separate file system from the Oracle base directory.
To create directories for the Oracle database or recovery files on separate file systems from the Oracle base directory:
Use the following command to determine the free disk space on each mounted file system:
Identify the file systems to use, from the display:
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 |
If you are using the same file system for many file types, then add the disk space requirements for each type to determine the total disk space requirement.
Note the names of the mount point directories for the file systems that you identified.
Enter commands similar to the following to create the recommended subdirectories in each of the mount point directories and set the appropriate owner, group, and permissions on them:
Database file directory:
The default location for the database file directory is $ORACLE_BASE/oradata .
Recovery file directory (fast recovery area):
The default fast recovery area is $ORACLE_BASE/fast_recovery_area . Oracle recommends that you keep the fast recovery area on a separate physical disk than that of the database file directory. This method enables you to use the fast recovery area to retrieve data if the disk containing oradata is unusable for any reason.
Adblockdetector