search
HomeDatabaseOracleHow to install Oracle11g on CentOS 7 system (steps)

Oracle11g is a powerful relational database management system that can manage and store large amounts of data. Installing Oracle11g on the server can improve the server's data management and processing capabilities, and also facilitate remote management and data sharing.

The following are the steps to install Oracle11g on the CentOS 7 operating system:

Step 1: Download the Oracle11g installation file

First, you need to download Oracle11g for the server from the Oracle official website Installation files. It should be noted that you need to download the installation file of the Linux version suitable for the server, usually in zip or tar format.

Step 2: Install service packs and dependent libraries

Before downloading the Oracle11g installation file, you need to install some necessary service packs and dependent libraries to ensure that Oracle11g can be installed and run smoothly.

In the CentOS 7 operating system, you can use the following command to install the service pack and dependent libraries:

yum install -y binutils
yum install -y compat-libstdc++-33
yum install -y compat-libstdc++-33.i686
yum install -y gcc
yum install -y gcc-c++
yum install -y glibc
yum install -y glibc.i686
yum install -y glibc-devel
yum install -y glibc-devel.i686
yum install -y ksh
yum install -y libgcc
yum install -y libgcc.i686
yum install -y libstdc++
yum install -y libstdc++.i686
yum install -y libstdc++-devel
yum install -y libstdc++-devel.i686
yum install -y libaio
yum install -y libaio.i686
yum install -y libaio-devel
yum install -y libaio-devel.i686
yum install -y libXext
yum install -y libXext.i686
yum install -y libXtst
yum install -y libXtst.i686
yum install -y libX11
yum install -y libX11.i686
yum install -y libXau
yum install -y libXau.i686
yum install -y libxcb
yum install -y libxcb.i686
yum install -y libXi
yum install -y libXi.i686
yum install -y make
yum install -y sysstat

Step 3: Create a new user

Before installing Oracle11g, you need to create A new user to install and run Oracle11g.

You can use the following command to create a new user:

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle

Step 4: Set system parameters

In order to ensure that Oracle11g can be installed and run normally, some system parameters need to be modified.

System parameters can be set using the following command:

vi /etc/sysctl.conf

Add the following lines to the open file:

fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
fs.aio-max-nr = 1048576

Save and exit the file.

Then use the following command to make the modified system parameters take effect immediately:

sysctl -p

Step 5: Create directories

Before installing Oracle11g, you need to create some directories for storing Oracle11g configuration files, data files and log files.

You can use the following command to create a directory:

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

Step 6: Edit environment variables

You need to edit the environment variables of the oracle user and add the path to Oracle11g.

Environment variables can be edited using the following command:

vi /home/oracle/.bash_profile

Add the following lines to the opened file:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin

Save and exit the file.

Then use the following command to make the modified environment variables take effect immediately:

source /home/oracle/.bash_profile

Step 7: Decompress the Oracle11g installation file

Extract the downloaded Oracle11g installation file to /u01/app /oracle directory.

You can use the following command to decompress the installation file:

unzip linux.x64_11gR2_database.zip -d /u01/app/oracle/

Step 8: Run the installation program

Log in as the oracle user and enter the /u01/app/oracle/database directory.

Then run the ./runInstaller command to start the Oracle11g installation program.

The installation program will sequentially perform client check, installation type selection, Oracle11g unique identifier (SID) setting, Oracle11g storage type setting, Oracle11g installation option setting and final installation.

When executing the ./runInstaller command, you need to pay attention to the following points:

  • You must use the root user to execute the ./runInstaller command, otherwise a Permission denied error will be prompted.
  • When selecting the installation type, select Typical to install using the default options.
  • In the storage type settings of Oracle11g, select File System to use the file system for storage.
  • In the installation option settings, select "Install and configure Oracle Database" and "Create Database".

The installation process may take some time, please wait patiently.

Step 9: Create Oracle11g database

After the Oracle11g installation is completed, you need to create a new Oracle11g database.

You can use the following command to create a database:

dbca

In the opened Oracle11g Database Configuration Assistant, follow the wizard and specify the database name, database storage location, administrator account and password and other information.

When creating a database, you need to pay attention to the following points:

  • Use File System as the storage type.
  • In the Administrator tab, specify the administrator account and password.
  • In the Character Sets tab, use the AL32UTF8 character set.
  • In the Storage tab, set the Database File Size of the Sizing tab to 1024MB.

Step 10: Verify Oracle11g installation

After the Oracle11g database is created, you can verify whether the installation and configuration of Oracle11g are correct.

You can use the following command to log in to the Oracle11g database:

sqlplus / as sysdba

After successfully logging in, you can execute some simple SQL statements to verify the installation and configuration of Oracle11g.

For example, you can use the following SQL statement to view the currently connected Oracle11g database version:

SELECT * FROM v$version;

If the returned result contains the version number of Oracle11g, it means that Oracle11g is installed and configured successfully.

Summary

Oracle11g is a very powerful and commonly used database management tool that can be used for server data management and processing. To install Oracle11g on the CentOS 7 operating system, you need to set some system parameters and install dependent libraries. Then you can use the Oracle11g installer for installation and configuration. After the installation is complete, you need to create a new Oracle11g database, and verify whether Oracle11g is installed and configured correctly.

The above is the detailed content of How to install Oracle11g on CentOS 7 system (steps). 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
The Role of Oracle Software: Streamlining Business ProcessesThe Role of Oracle Software: Streamlining Business ProcessesMay 10, 2025 am 12:19 AM

Oracle software simplifies business processes through database management, ERP, CRM and data analysis capabilities. 1) OracleERPCloud automates financial, human resources and other processes; 2) OracleCXCloud manages customer interactions and provides personalized services; 3) OracleAnalyticsCloud supports data analysis and decision-making.

Oracle's Software Suite: Products and Services ExplainedOracle's Software Suite: Products and Services ExplainedMay 09, 2025 am 12:12 AM

Oracle's software suite includes database management, ERP, CRM, etc., helps enterprises optimize operations, improve efficiency, and reduce costs. 1. OracleDatabase manages data, 2. OracleERPCloud handles finance, human resources and supply chain, 3. Use OracleSCMCloud to optimize supply chain management, 4. Ensure data flow and consistency through APIs and integration tools.

MySQL vs. Oracle: Licensing, Features, and BenefitsMySQL vs. Oracle: Licensing, Features, and BenefitsMay 08, 2025 am 12:05 AM

The main difference between MySQL and Oracle is licenses, features, and advantages. 1. License: MySQL provides a GPL license for free use, and Oracle adopts a proprietary license, which is expensive. 2. Function: MySQL has simple functions and is suitable for web applications and small and medium-sized enterprises. Oracle has powerful functions and is suitable for large-scale data and complex businesses. 3. Advantages: MySQL is open source free, suitable for startups, and Oracle is reliable in performance, suitable for large enterprises.

MySQL vs. Oracle: Selecting the Right Database SystemMySQL vs. Oracle: Selecting the Right Database SystemMay 07, 2025 am 12:09 AM

MySQL and Oracle have significant differences in performance, cost and usage scenarios. 1) Performance: Oracle performs better in complex queries and high concurrency environments. 2) Cost: MySQL is open source, low cost, suitable for small and medium-sized projects; Oracle is commercialized, high cost, suitable for large enterprises. 3) Usage scenarios: MySQL is suitable for web applications and small and medium-sized enterprises, and Oracle is suitable for complex enterprise-level applications. When choosing, you need to weigh the specific needs.

Oracle Software: Maximizing Efficiency and PerformanceOracle Software: Maximizing Efficiency and PerformanceMay 06, 2025 am 12:07 AM

Oracle software can improve performance in a variety of ways. 1) Optimize SQL queries and reduce data transmission; 2) Appropriately manage indexes to balance query speed and maintenance costs; 3) Reasonably configure memory, optimize SGA and PGA; 4) Reduce I/O operations and use appropriate storage devices.

Oracle: Enterprise Software and Cloud ComputingOracle: Enterprise Software and Cloud ComputingMay 05, 2025 am 12:01 AM

Oracle is so important in the enterprise software and cloud computing sectors because of its comprehensive solutions and strong technical support. 1) Oracle provides a wide range of product lines from database management to ERP, 2) its cloud computing services such as OracleCloudPlatform and Infrastructure help enterprises achieve digital transformation, 3) Oracle database stability and performance and seamless integration of cloud services improve enterprise efficiency.

MySQL vs. Oracle: A Comparative Analysis of Database SystemsMySQL vs. Oracle: A Comparative Analysis of Database SystemsMay 04, 2025 am 12:13 AM

MySQL and Oracle have their own advantages and disadvantages, and comprehensive considerations should be taken into account when choosing: 1. MySQL is suitable for lightweight and easy-to-use needs, suitable for web applications and small and medium-sized enterprises; 2. Oracle is suitable for powerful functions and high reliability needs, suitable for large enterprises and complex business systems.

MySQL vs. Oracle: Understanding Licensing and CostMySQL vs. Oracle: Understanding Licensing and CostMay 03, 2025 am 12:19 AM

MySQL uses GPL and commercial licenses for small and open source projects; Oracle uses commercial licenses for enterprises that require high performance. MySQL's GPL license is free, and commercial licenses require payment; Oracle license fees are calculated based on processors or users, and the cost is relatively high.

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

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

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool