Home Database Oracle centos oracle 11g installation

centos oracle 11g installation

May 14, 2023 am 09:31 AM

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"
Copy after login
  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
    Copy after login
  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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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 of this Website
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

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

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

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

What are the commonly used segments in oracle databases What are the commonly used segments in oracle databases Mar 04, 2025 pm 06:08 PM

This article examines Oracle database segment types (data, index, rollback, temporary), their performance implications, and management. It emphasizes choosing appropriate segment types based on workload and data characteristics for optimal efficienc

What are the performance testing tools for oracle databases What are the performance testing tools for oracle databases Mar 04, 2025 pm 06:11 PM

This article explores Oracle database performance testing tools. It discusses selecting the right tool based on budget, complexity, and features like monitoring, diagnostics, workload simulation, and reporting. The article also details effective bo

How to download oracle database How to download oracle database Mar 04, 2025 pm 06:07 PM

This article guides users through downloading Oracle Database. It details the process, emphasizing edition selection (Express, Standard, Enterprise), platform compatibility, and license agreement acceptance. System requirements and edition suitabil

What are the oracle database installation client tools? What are the oracle database installation client tools? Mar 04, 2025 pm 06:09 PM

This article explores Oracle Database client tools, essential for interacting with Oracle databases without a full server installation. It details commonly used tools like SQL*Plus, SQL Developer, Enterprise Manager, and RMAN, highlighting their fun

What default tablespaces does the oracle database provide? What default tablespaces does the oracle database provide? Mar 04, 2025 pm 06:10 PM

This article examines Oracle's default tablespaces (SYSTEM, SYSAUX, USERS), their characteristics, identification methods, and performance implications. It argues against relying on defaults, emphasizing the importance of creating separate tablespac

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

See all articles