search
HomeDatabaseOraclecentos oracle 11g installation

CentOS 7 is one of the most widely used Linux operating systems today. For many businesses, Oracle Database is one of the most common enterprise-level databases. This article will provide you with the steps required to set up an Oracle 11g database and install it using CentOS 7.

Installing Oracle 11g

Before you start installing Oracle 11g, make sure you have obtained the correct version of Oracle installation media, such as oracle-11.2.0.4-1.x86_64.rpm. The downloaded installation media should be in a directory on your hard drive.

Before you start installing Oracle 11g, make sure you have an X server installed on your CentOS 7 system. If your Linux server does not have an X server, please use the following command to install the system, but some additional software packages and components still need to be installed for use by the Oracle database.

The following are the software packages and commands that require additional installation:

Install grep, ksh, mkisofs, sysstat

sudo yum groupinstall "GNOME Desktop"
  1. Set kernel parameters and user account
    Before starting the Oracle database, several operating system kernel parameters need to be set. Edit the /etc/sysctl.conf file and add the following parameters:
  1. sudo yum install -y grep ksh mkisofs sysstat
  2. Save and close this file. Execute the following command to reset the kernel parameters:
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2

Set up user account

In order to install and run Oracle database normally, you need to create a user account named "oracle". Before installing the oracle account, make sure the required packages are enabled on your system.

Enter the following command to create the oracle account and assign groups and permissions to it:

sudo sysctl -p

Create the installation directory

You need to create an oracle directory in which to install Oracle Database software. This directory must be created by the oracle user and must have the correct permissions. Let’s create a directory called /u01/app/oracle and assign it to the oracle user:

sudo useradd -m -d /home/oracle -s /bin/bash oracle
sudo passwd oracle
sudo groupadd oinstall
sudo groupadd dba
sudo usermod -aG oinstall oracle
sudo usermod -aG dba oracle

Before installing Oracle 11g, there are some environment variables that need to be set. Please edit the oracle user's .bash_profile file and add the following entries:

sudo mkdir -p /u01/app/oracle
sudo chown -R oracle:oinstall /u01
sudo chmod -R 775 /u01

Execute the following command to override the environment variable changes on your .bash_profile file:

# Oracle Settings
export TMP=/tmp
export ORACLE_HOSTNAME=localhost.localdomain
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Install Oracle 11g

The final step is to install the Oracle database software. First log in to the system as the root user, then switch to the oracle user and start the Oracle installer using the following command:

source ~/.bash_profile

At this point, please wait for the Oracle installer to automatically perform its initial tasks, which may take a while. Once all tasks of the installer are completed, you should be able to start and connect to the Oracle database.

Summary

In this article, we introduced how to install and configure Oracle 11g database using CentOS 7 operating system. We describe the packages and components that must be installed and explain some of the steps you must take to prepare your system. By following the steps provided in this article, you will be able to successfully install Oracle database on CentOS 7.

The above is the detailed content of centos oracle 11g installation. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How do I use cursors in PL/SQL to process multiple rows of data?How do I use cursors in PL/SQL to process multiple rows of data?Mar 13, 2025 pm 01:16 PM

This article explains PL/SQL cursors for row-by-row data processing. It details cursor declaration, opening, fetching, and closing, comparing implicit, explicit, and ref cursors. Techniques for efficient large dataset handling and using FOR loops

How do I create users and roles in Oracle?How do I create users and roles in Oracle?Mar 17, 2025 pm 06:41 PM

The article explains how to create users and roles in Oracle using SQL commands, and discusses best practices for managing user permissions, including using roles, following the principle of least privilege, and regular audits.

How do I use Oracle Data Masking and Subsetting to protect sensitive data?How do I use Oracle Data Masking and Subsetting to protect sensitive data?Mar 13, 2025 pm 01:19 PM

This article details Oracle Data Masking and Subsetting (DMS), a solution for protecting sensitive data. It covers identifying sensitive data, defining masking rules (shuffling, substitution, randomization), setting up jobs, monitoring, and deployme

How do I configure encryption in Oracle using Transparent Data Encryption (TDE)?How do I configure encryption in Oracle using Transparent Data Encryption (TDE)?Mar 17, 2025 pm 06:43 PM

The article outlines steps to configure Transparent Data Encryption (TDE) in Oracle, detailing wallet creation, enabling TDE, and data encryption at various levels. It also discusses TDE's benefits like data protection and compliance, and how to veri

How do I perform online backups in Oracle with minimal downtime?How do I perform online backups in Oracle with minimal downtime?Mar 17, 2025 pm 06:39 PM

The article discusses methods for performing online backups in Oracle with minimal downtime using RMAN, best practices for reducing downtime, ensuring data consistency, and monitoring backup progress.

How do I use Automatic Workload Repository (AWR) and Automatic Database Diagnostic Monitor (ADDM) in Oracle?How do I use Automatic Workload Repository (AWR) and Automatic Database Diagnostic Monitor (ADDM) in Oracle?Mar 17, 2025 pm 06:44 PM

The article explains how to use Oracle's AWR and ADDM for database performance optimization. It details generating and analyzing AWR reports, and using ADDM to identify and resolve performance bottlenecks.

How do I use flashback technology to recover from logical data corruption?How do I use flashback technology to recover from logical data corruption?Mar 14, 2025 pm 05:43 PM

Article discusses using Oracle's flashback technology to recover from logical data corruption, detailing steps for implementation and ensuring data integrity post-recovery.

How do I implement security policies in Oracle Database using Virtual Private Database (VPD)?How do I implement security policies in Oracle Database using Virtual Private Database (VPD)?Mar 13, 2025 pm 01:18 PM

This article details implementing Oracle database security policies using Virtual Private Databases (VPD). It explains creating and managing VPD policies via functions that filter data based on user context, highlighting best practices like least p

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.