Home >Database >Oracle >Linux system oracle installation

Linux system oracle installation

王林
王林Original
2023-05-07 22:10:072309browse

In enterprise-level application systems, Oracle database is a very popular relational database management system. However, it is more difficult to install the Oracle database in the Linux operating system, and the packages and configurations that need to be installed are also more complex. This article will share the Oracle installation process under Linux system.

1. Download the Oracle installation package

Oracle’s official website provides the Oracle database installation package under the Linux system. We can download the corresponding version of the Oracle database installation package from the official website.

2. Configure the system environment

In the Linux system, you need to configure the system environment necessary for Oracle installation. Generally common environment variables mainly include:

1. For Oracle's user-based system limits, the hard nofile and soft nofile in /etc/security/limits.conf need to be set to 1024 or higher.

[root@localhost ~]# vim /etc/security/limits.conf
//Add the following two lines of environment variables at the end of the file
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

2. Configure the path to run the link library file

[root@localhost ~]# vim /etc/profile
//Add the following line of environment variables at the end of the file
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib

3. Change the operating system kernel parameters

[root@localhost ~]# vim /etc/sysctl.conf
//Add the following environment variables at the end of the 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=1048576
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=9000 65500
//Load the kernel configuration file
[root@localhost ~]# sysctl -p

3. Install the database

After completing the environment configuration in the first two steps, you can install the Oracle database.

1. Create oracle user and group

[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle

2. Create the Oracle installation directory

[root@localhost ~]# mkdir -p /u01/app/oracle/product/11.2.0/db_1
[root@localhost ~]# chown -hR oracle:oinstall /u01/app/
[root@localhost ~]# chmod -R 755 /u01/

3. Unzip and run the installation Program

[root@localhost ~]# unzip linux_11gR2_database_1of2.zip
[root@localhost ~]# unzip linux_11gR2_database_2of2.zip
[root@localhost ~]# chmod -R 777 database/
[root@localhost ~]# su - oracle
[oracle@localhost ~]$./runInstaller

4. Database installation process

a. In the installation interface, select "Install Database Software", and then select the language, time zone and directory required for the database software:

b. On this page, you can select the database options that need to be installed:

c. On this page, we You can configure the config of the database:

d. In this page, you can check the installation preparation. If there are any errors, you need to modify them:

e. In this page, we can start installing the database. :

f. In this step, we can configure:

g. In this page, install and configure:

h. Click Complete on the last page .

Summary

The above is the Oracle installation process under Linux system. The factory transfer operation is relatively complex and requires many packages and configurations to be installed. But once the installation is successful, we can enjoy the stability and reliability brought by the Oracle database in enterprise-level application software. In practice, the operation needs to be carried out according to the specific version, but the basic operation steps are the same. I hope this article can provide some help to everyone.

The above is the detailed content of Linux system oracle 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
Previous article:oracle sql usageNext article:oracle sql usage