Home > Database > Oracle > body text

centos 7 install oracle

WBOY
Release: 2023-05-12 10:38:37
Original
1451 people have browsed it

CentOS 7 Detailed steps for installing Oracle database

With the continuous growth of data and the continuous improvement of application requirements, enterprise-level database management systems have become one of the necessary conditions for modern enterprises. Among many data management systems, Oracle database, as one of the industry standards, provides comprehensive data management and security and is widely used in enterprise data management. This article will introduce the detailed steps to install Oracle database on CentOS 7.

  1. Download the Oracle Database installation package

First, we need to download the Oracle Database installation package from the Oracle official website. Oracle Database supports multiple versions of installation packages, and we can choose the corresponding version according to our needs. However, it should be noted that Oracle Database requires at least 2 GB of memory space to run properly. Installing Oracle Database on CentOS 7 requires the following items:

Oracle Database installation package
Java Development Kit installation package
libaio package

  1. Installation Java Development Kit

Oracle Database installation requires the support of Java Development Kit (JDK). If JDK is not installed in your system, you need to install JDK first.

Download the JDK installation package:

$ wget -O jdk-13.0.2_linux-x64_bin.rpm https://download.oracle.com/otn/java/jdk/13.0.2 8 /d4173c853231432d94f001e99d882ca7/jdk-13.0.2_linux-x64_bin.rpm?AuthParam=1588944359_669fd2dd917a8fe60c7edb604a724ef4

Install JDK:

$ sudo rpm -ivh jdk-13.0.2_linux-x64_bin.rpm

Installation is successful, we need to set environment variables, add the Java application to the PATH environment variable, and set the available JDK version:

export JAVA_HOME=/usr/java/latest
export PATH=$ JAVA_HOME/bin:$PATH

  1. Install the libaio package

Running Oracle Database in Linux requires the installation of the libaio package. If it is not installed, the core components will not start and report libaio.so.1 missing error.

Install libaio package:

$ sudo yum install libaio

  1. Download Oracle Database installation package

Download Oracle Database 19c installation package And unzip the installation package:

$ mkdir /install
$ cd /install
$ wget -O oracle-database-19c-1.0-1.x86_64.rpm https://download.oracle. com/otn/linux/oracle19c/190000/oracle-database-19c-1.0-1.x86_64.rpm
$ rpm -i oracle-database-19c-1.0-1.x86_64.rpm

  1. Install Oracle Database

Installing Oracle Database requires operating as the root user.

Pre-installation check:

$ /usr/sbin/useradd oracle
$ echo "oracle" | passwd --stdin oracle
$ /usr/sbin/groupadd dba
$ /usr/sbin/groupadd oinstall
$ /usr/sbin/usermod -g oinstall -G dba oracle
$ /usr/sbin/semanage fcontext -a -t bin_t /usr/lib/oracle/ 19.3
$ /usr/sbin/restorecon -vR /usr/lib/oracle
$ sysctl -p

Install Oracle Database:

$ su - oracle
$ /etc/init.d/oracle-xe-18c configure

  1. Configure Oracle Database environment

We need to configure the Oracle Database environment so that our system can use it. We can set our environment variables by editing the .bashrc file.

vi .bashrc

export ORACLE_HOME=/usr/lib/oracle/19.3
export ORACLE_SID=XE
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

  1. Connecting to Oracle Database

By making a remote connection, we can connect to the Oracle Database on the client. On the client, we need to set the Oracle client and environment variables.

Force applications written using the Oracle JDBC driver to use TLS 1.2 or higher. To make the Oracle JDBC Driver use TLS 1.2, you need to ensure that your JVM is running at least 1.7.0_131 or higher. . For more information about enabling TLS 1.2 on Oracle Database, see the documentation.

jdbc:oracle:thin:@//:1521/XE

Summary

Installing Oracle Database on CentOS 7 can allow your enterprise to provide comprehensive data management and security. In this article we explain how to download and install Oracle Database. When installing, you need to make sure you have enough memory and hard drive space on your system.

Next, you need to know how to configure and connect to the Oracle Database instance.

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

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template