If you want to install Oracle 11g on a Linux operating system, this article will provide you with a detailed tutorial. This tutorial is divided into three parts: preparing the environment, downloading the Oracle installation files, and installing Oracle 11g.
Preparing the environment
Before installing Oracle 11g, you need to ensure that your Linux operating system meets the requirements of Oracle 11g. Oracle 11g supports the following Linux distributions:
- Oracle Linux 4 Update 7 or later (32-bit or 64-bit)
- Red Hat Enterprise Linux 4 Update 7 or later Higher version (32-bit or 64-bit)
- SUSE Linux Enterprise Server 10 SP2 or higher version (32-bit or 64-bit)
Also, you need to make sure The following software packages have been installed on your operating system:
- binutils
- compat-libstdc -33
- compat-libstdc -33.i686
- elfutils-libelf
- elfutils-libelf-devel
- gcc
- gcc-c
- glibc
- glibc-common
- glibc-devel
- glibc-headers
- ksh
- libaio
- libaio.i686
- libaio-devel
- libgcc
- libstdc
- libstdc .i686
- libstdc -devel
- make
- numactl-devel
- sysstat
First, open a terminal window and enter the following command to check whether your system has all the required packages installed:
yum list binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio.i686 libaio-devel libgcc libstdc++ libstdc++.i686 libstdc++-devel make numactl-devel sysstat
If it is already installed on your system For all packages, you will see the following output:
Installed Packages binutils.x86_64 2.17.50.0.6-14.el5 installed compat-libstdc++-33.x86_64 3.2.3-69.el5 installed compat-libstdc++-33.i686 3.2.3-69.el5 installed elfutils-libelf.x86_64 0.137-3.el5 installed elfutils-libelf-devel.x86_64 0.137-3.el5 installed gcc.x86_64 4.1.2-55.el5 installed gcc-c++.x86_64 4.1.2-55.el5 installed glibc.x86_64 2.5-118.el5_10.3 installed glibc-common.x86_64 2.5-118.el5_10.3 installed glibc-devel.x86_64 2.5-118.el5_10.3 installed glibc-headers.x86_64 2.5-118.el5_10.3 installed ksh.x86_64 20120801-56.el5 installed libaio.x86_64 0.3.106-5.el5 installed libaio.i686 0.3.106-5.el5 installed libaio-devel.x86_64 0.3.106-5.el5 installed libgcc.x86_64 4.1.2-55.el5 installed libstdc++.x86_64 4.1.2-55.el5 installed libstdc++.i686 4.1.2-55.el5 installed libstdc++-devel.x86_64 4.1.2-55.el5 installed make.x86_64 1:3.81-23.el5_10.1 installed numactl-devel.x86_64 2.0.9-2.el5 installed sysstat.x86_64 7.0.2-5.el5 installed
If you find that there are uninstalled packages on your system, you can install them using the following command:
yum install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio.i686 libaio-devel libgcc libstdc++ libstdc++.i686 libstdc++-devel make numactl-devel sysstat
Download Oracle Installation file
Next, you need to download the installation file of Oracle 11g from the Oracle official website. First, go to the Oracle website to download the installation file of the Linux x86_64 version. The downloaded files are named linux.x64_11gR2_database_1of2.zip
and linux.x64_11gR2_database_2of2.zip
. Once downloaded, unzip both zip files into the same directory.
Installing Oracle 11g
Before installing Oracle 11g, please make sure you have logged in to the system as the root user.
- Create the installation directory
First, create a directory to store Oracle 11g. Enter the following command in the terminal:
mkdir /u01/app/oracle/product/11.2.0/dbhome_1 mkdir /u01/app/oracle/admin/orcl mkdir /u01/app/oracle/oradata/orcl
The above command creates three directories, namely the installation directory of Oracle 11g, the admin directory of the Oracle database instance, and the data directory of the database instance. Of course, you can set these directories according to your needs.
- Copy the installation files to the temporary directory
Before starting the installation, we need to copy the Oracle installation files from the unzipped directory to the /tmp directory. Enter the following command in the terminal:
cp /home/user/Downloads/linux.x64_11gR2_database_1of2.zip /tmp/ cp /home/user/Downloads/linux.x64_11gR2_database_2of2.zip /tmp/
Note: Change the /home/user/Downloads/
path to the path where you decompressed it.
- Set environment variables for Oracle users
We need to set the LD_LIBRARY_PATH and PATH environment variables for Oracle users. Enter the following command in the terminal:
su - oracle
This command allows us to temporarily log in to the system as the oracle user. Next, enter the following command:
vi ~/.bash_profile
Add the following two lines at the bottom of the file and save the file.
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export PATH=$ORACLE_HOME/bin:$PATH
- Execute the installation program
Return to the root user and enter the following command to start the installation.
cd /tmp unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip cd database ./runInstaller
This command will start the Oracle 11g installation interface. In the interface, select the "Install database software only" option, and then follow the prompts to complete the installation.
After completing the installation, you need to perform some configuration work. Execute the following command as the root user in the terminal:
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
This command will execute the Oracle 11g configuration wizard. Just execute it according to the prompts.
At this point, you have successfully installed the Oracle 11g database. If you want to create a new database instance, you can do it using Oracle's DBCA tool.
The above is the detailed content of Detailed explanation of linux oracle11g installation tutorial. For more information, please follow other related articles on the PHP Chinese website!

In addition to database management, Oracle software is also used in JavaEE applications, data grids and high-performance computing. 1. OracleWebLogicServer is used to deploy and manage JavaEE applications. 2. OracleCoherence provides high-performance data storage and caching services. 3. OracleExadata is used for high performance computing. These tools allow Oracle to play a more diversified role in the enterprise IT architecture.

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

Oracle software applications in the real world include e-commerce platforms and manufacturing. 1) On e-commerce platforms, OracleDatabase is used to store and query user information. 2) In manufacturing, OracleE-BusinessSuite is used to optimize inventory and production planning.

The reason why Oracle software shines in multiple fields is its powerful application and customized solutions. 1) Oracle provides comprehensive solutions from database management to ERP, CRM, SCM, 2) its solutions can be customized according to industry characteristics such as finance, medical care, manufacturing, etc. 3) Successful cases include Citibank, Mayo Clinic and Toyota, 4) The advantages lie in comprehensiveness, customization and scalability, but challenges include complexity, cost and integration issues.

Choosing MySQL or Oracle depends on project requirements: 1. MySQL is suitable for small and medium-sized applications and Internet projects because of its open source, free and ease of use; 2. Oracle is suitable for core business systems of large enterprises because of its powerful, stable and advanced functions, but at a high cost.

Oracle's product ecosystem includes databases, middleware and cloud services. 1. OracleDatabase is its core product, supporting efficient data storage and management. 2. Middleware such as OracleWebLogicServer connects to different systems. 3. OracleCloud provides a complete set of cloud computing solutions.

MySQL and Oracle each have advantages in performance, scalability, and security. 1) Performance: MySQL is suitable for read operations and high concurrency, and Oracle is good at complex queries and big data processing. 2) Scalability: MySQL extends through master-slave replication and sharding, and Oracle uses RAC to provide high availability and load balancing. 3) Security: MySQL provides fine-grained permission control, while Oracle has more comprehensive security functions and automation tools.

Oracle is called the "Powerhouse" of database management because of its high performance, reliability and security. 1. Oracle is a relational database management system that supports multiple operating systems. 2. It provides a powerful data management platform with scalability, security and high availability. 3. Oracle's working principles include data storage, query processing and transaction management, and supports performance optimization technologies such as indexing, partitioning and caching. 4. Examples of usage include creating tables, inserting data, and writing stored procedures. 5. Performance optimization strategies include index optimization, partition table, cache management and query optimization.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version
God-level code editing software (SublimeText3)

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.