Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of silent installation of Oracle Linux7.1 stand-alone machine

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what is the method of silent installation of Oracle Linux7.1 stand-alone". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of silent installation of Oracle Linux7.1 stand-alone".

An operating environment

Operating system Oracle Linux 7.1

Database version Oracle Database 19.3

Hostname ora19c

IP:10.10.10.140

Installation directory / u01/app/oracle/product/19.3/db1

Database name cs

2. Preparation of operating environment

2.1 turn off the firewall

[root@ora19c ~] # systemctl stop firewalld [root@ora19c ~] # systemctl disable firewalld rm'/ etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' rm'/ etc/systemd/system/basic.target.wants/firewalld.service'

2.2 disable the NetworkManager service

[root@ora19c ~] # systemctl stop NetworkManager [root@ora19c ~] # systemctl disable NetworkManager rm'/ etc/systemd/system/multi-user.target.wants/NetworkManager.service' rm'/ etc/systemd/system/dbus-org.freedesktop.NetworkManager.service' rm'/ etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'

2.3 disable SELINUX

[root@ora19c ~] # setenforce 0 [root@ora19c ~] # sed-I "/ ^ SELINUX=/s#enforcing#disabled#" / etc/selinux/config [root@ora19c ~] # cat / etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted-Targeted processes are protected, # minimum-Modification of targeted policy. Only selected processes are protected. # mls-Multi Level Security protection. SELINUXTYPE=targeted

2.4 configure hosts parsing

[root@ora19c ~] # echo "> 10.138.130.140 ora19c" > / etc/hosts [root@ora19c ~] # cat / etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.138.130.140 ora19c

2.6 create groups and users

[root@ora19c ~] # groupadd-g 54327 asmdba [root@ora19c ~] # groupadd-g 54328 asmoper [root@ora19c ~] # groupadd-g 54322 dba [root@ora19c ~] # groupadd-g 54323 oper [root@ora19c ~] # groupadd-g 54324 backupdba [root@ora19c ~] # groupadd-g 54325 dgdba [root@ora19c ~] # groupadd-g 54326 kmdba [root@ora19c ~] # groupadd-g 54329 oinstall [root@ora19c ~] # groupadd-g 54330 racdba [root@ora19c ~] # useradd-u 54321-g oinstall-G dba,asmdba,backupdba,dgdba Kmdba,racdba oracle [root@ora19c] # passwd oracle Changing password for user oracle. New password: Retype new password: passwd: all authentication tokens updated successfully.

2.7 create an installation directory

[root@ora19c ~] # mkdir-p / u01/app/oraInventory [root@ora19c ~] # mkdir-p / u01/app/oracle/product/19.3/db1 [root@ora19c ~] # mkdir-p / u01/temp [root@ora19c ~] # chown-R oracle:oinstall / U01 [root@ora19c ~] # chmod-R 775 / U01

2.8 configure user environment variables

[oracle@ora19c] $cat .bash _ profile # .bash _ profile # Get the aliases and functions if [- f ~ / .bashrc]; then. ~ / .bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH TEMP=/u01/temp TMPDIR=/u01/temp export TEMP TMPDIR export LD_ASSUME_KERNEL=3.8.13 export ORACLE_BASE=/u01/app/oracle DB_HOME=/u01/app/oracle/product/19.3/db1 export ORACLE_HOME=$DB_HOME export ORACLE_SID=ora19c export ORACLE_UNQNAME=ora19c export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/ Lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH export PATH=$PATH:$ORACLE_HOME/bin CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib export CLASSPATH umask=022 export PATH=$PATH:$ORACLE_HOME/rdbms/lib

2.9 configure system environment variables

[root@ora19c ~] # cat > > / etc/profile

< if [ \$USER = "oracle" ]; then >

If [\ $SHELL = "/ bin/ksh"]; then > ulimit-p 16384 > ulimit-n 65536 > else > ulimit-u 16384-n 65536 > fi > fi > EOF

2.10 modify system kernel parameters

[root@ora19c ~] # cat > > / etc/sysctl.conf

< fs.aio-max-nr = 1048576 >

Fs.file-max = 6815744 > kernel.shmall = 2097152 > kernel.shmmax = 42949672950 > kernel.shmmni = 4096 > kernel.sem = 25032000 100 128 > net.ipv4.ip_local_port_range = 900065500 > net.core.rmem_default = 262144 > net.core.rmem_max = 4194304 > net.core.wmem_default = 262144 > net.core.wmem_max = 1048576 > EOF [root@ora19c] # sysctl-p fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 42949672950 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576

2.11 configure LIMITS restrictions

[root@ora19c ~] # cat > > / etc/security/limits.conf

< oracle soft nproc 16384 >

Oracle hard nproc 16384 > oracle soft nofile 65536 > oracle hard nofile 65536 > oracle soft memlock 3145728 > oracle hard memlock 3145728 > EOF

2.12 configure PAM

[root@ora19c ~] # cat > > / etc/pam.d/login

< session required /lib64/security/pam_limits.so >

EOF

2.13 install dependency packages

Configure YUM Feed

[root@ora19c] # df-h Filesystem Size Used Avail Use% Mounted on / dev/mapper/ol-root 72G 11G 61G 16% / devtmpfs 3.8G 03.8G 0% / devtmpfs 3.8G 84K 3.8G 1% / dev/shm tmpfs 3.8G 8.9m 3.8G 1% / run tmpfs 3. 8G 0 3.8G 0% / sys/fs/cgroup / dev/sda1 497M 152M 346M 31% / boot / dev/sr0 4.0G 4.0G 0% / run/media/root/OL-7.1 Server.x86_64 [root@ora19c ~] # mount / dev/sr0 / mnt/ mount: / dev/sr0 is write-protected Mounting read-only [root@ora19c ~] # cd / etc/yum.repos.d/ [root@ora19c yum.repos.d] # ls-lrt total 4-rw-r--r--. 1 root root 2323 Feb 16 2015 public-yum-ol7.repo [root@ora19c yum.repos.d] # cat > > / etc/yum.repos.d/local.repo

< [base] >

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report