linux-centos8 install oracle11

Direct installation is too much trouble. I recommend you to use a few docker commands to get it.

Loaded docker
bottom of this article there docker installed oracle11g article is not recommended to see, quite a mess. Unavoidable reference for the table thanks

Just look at this after installing docker -> docker install oracle11g and persist (docker volume)

Next is to install directly on centos8

This is really not recommended for head iron, you can try it, take 10 working days for the noon break for
reference

ready

  1. Download oracle (https://www.oracle.com/cn/database/enterprise-edition/downloads/oracle-db11g-linux.html)
    to download, this is the same compressed package
Insert picture description here

1. Modify the core parameters of the operating system

Perform the following steps under the Root user:

1) Modify the user's SHELL restrictions

Modify the /etc/security/limits.conffile
Enter the command:, vi /etc/security/limits.confpress the i key to enter the editing mode, and add the following content to the file.

# oracle config
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
default:
        fsize = -1
        data = -1
        stack = -1

Editor's note after the completion of Esckey, enter :wqto save and exit

2) Modify the /etc/pam.d/loginfile

Enter the command:, vi /etc/pam.d/loginpress the i key to enter the editing mode, and add the following content to the file.

# oracle config
session required /lib/security/pam_limits.so
session required pam_limits.so

Editor's note after the completion of Esckey, enter :wqto save and exit

3) Modify the linux kernel

To modify the /etc/sysctl.conffile, enter the command:, vi /etc/sysctl.confpress the i key to enter the editing mode, and add the following content to the file

# oracle config
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

Editor's note after the completion of Esckey, enter :wqto save and exit

4) To make the /etc/sysctl.confchanges take effect immediately

Execute the following commands. Input: sysctl -pdisplay as follows:

Insert picture description here

5) Edit /etc/profile

Enter the command:, vi /etc/profilepress the i key to enter the editing mode, and add the following content to the file.

# oracle config
if [ $USER = "oracle" ]; then
	if [ $SHELL = "/bin/ksh" ]; then
		ulimit -p 16384
		ulimit -n 65536
	else
		ulimit -u 16384 -n 65536
	fi
fi

Editor's note after the completion of Esckey, enter :wqto save and exit

Insert picture description here

As the owner of the software installation and support group.
Create an Oracle user and password, enter the command:

groupadd oinstall
groupadd dba
useradd -g oinstall -g dba -m oracle
passwd oracle

Then you will be asked to enter the password. Enter the password twice at will, but it must be consistent. Press Enter to confirm.
Password (oracle), easy to remember

7) Create database software directory and data file storage directory

The location of the directory is determined according to your own situation. Just pay attention to the disk space. Here I put it under the oracle user, for example:

mkdir /home/oracle/app
mkdir /home/oracle/app/oracle
mkdir /home/oracle/app/oradata
mkdir /home/oracle/app/oracle/product

8) Change the directory owner to be owned by the Oracle user

input the command:

chown -R oracle:oinstall /home/oracle/app

9) Configure the environment variables of the oracle user

First, switch to the newly created oracle user,
enter:, su – oracleand then directly enter: vi .bash_profile
press i to edit .bash_profile, enter the edit mode, and add the following:

# oracle config
export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/oracle/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:/usr/lib

Editor's note after the completion of Esckey, enter :wqto save and exit

10) Upload the oracle installation package and unzip

unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
Insert picture description here


Execute dnf install libnslall the way next

Second, the installation process

1) Re-login

When all the operations required by the above system are completed, log out of the system and log in as an Oracle user on the graphical interface.
Enter the directory database cd app/back/database/file directory:

Insert picture description here

2) Perform installation

input the command:LANG=en_US ./runInstaller

Report an error Could not create the Java virtual machine.

Insert picture description here

run dnf install libnsl

It has been ysuccessfully invoked graphical interface

Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here
Insert picture description here

Check the environment

Insert picture description here

Execute the following command

yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*i686 compat-libstdc++-33*.devel compat-libstdc++-33 compat-libstdc++-33*.devel gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio*.i686 libaio-devel libaio-devel*.devel libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.devel libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686
rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel
yum install -y automake autotools-dev binutils bzip2 elfutils expat gawk gcc gcc-multilib g++-multilib lib32ncurses5 lib32z1 ksh less lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 libelf-dev libltdl-dev libodbcinstq4-1 libodbcinstq4-1:i386 libpth-dev libpthread-stubs0-dev libstdc++5 make openssh-server rlwrap rpm sysstat unixodbc unixodbc-dev unzip x11-utils zlibc unzip cifs-utils libXext.x86_64  glibc.i686 
yum -y install xz wget gcc-c++ ncurses ncurses-devel cmake make perl openssl openssl-devel gcc* libxml2 libxml2-devel curl-devel libjpeg* libpng* freetype* make gcc-c++ cmake bison perl perl-devel  perl perl-devel glibc-devel.i686 glibc-devel libaio readline-devel zlib.x86_64 zlib-devel.x86_64 libcurl-* net-tool*  sysstat lrzsz dos2unix telnet.x86_64 iotop unzip ftp.x86_64 xfs* expect vim psmisc openssh-client* libaio bzip2  epel-release automake binutils bzip2 elfutils expat gawk gcc  ksh less make openssh-server rpm sysstat unzip unzip cifs-utils libXext.x86_64  glibc.i686 binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel expat gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel libnsl 

There are still some packages that can't be found, ignore them first, they can't be installed

Insert picture description here


Insert picture description here

Unpack

Insert picture description here

Report an error

Ignore these errors first and continue

Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here

success

Insert picture description here

Installation log

Insert picture description here


2.5MB of txt is not very useful for ordinary people

Insert picture description here

Run script

Switch usersu – root

cd /home/oracle/app/oracle/product/11.2.0/dbhome_1
sh root.sh

Enter /user/binto create a soft link

Insert picture description here


Insert picture description here
cd /home/oracle/oraInventory
sh orainstRoot.sh
Insert picture description here

Three, configure the database

1) Open a new terminal

Still in the oracle user's graphical interface oracle user, a new terminal is opened, and the LANG=en_US dbcafollowing interface will pop up by directly inputting the command . We use a custom database here.

Insert picture description here

Create database

Insert picture description here

Custom database

Insert picture description here

New instance

Insert picture description here

Configuration manager

Insert picture description here


Insert picture description here

set password

passwordsysadmin

Insert picture description here

Designated location

Default

Insert picture description here


Insert picture description here

Setup backup

Insert picture description here

Install components

Insert picture description here

Set up memory

Insert picture description here


Insert picture description here

carry out

Insert picture description here


Insert picture description here