首页 > 其他分享 >19c 安装步骤

19c 安装步骤

时间:2022-11-16 22:38:10浏览次数:45  
标签:soft henry01 步骤 install oracle root 安装 i686yum 19c

1.修改hosts
vim /etc/hosts

2.添加用户和组
[root@henry01 ~]# groupadd -g 54321 oinstall
[root@henry01 ~]# groupadd -g 54322 dba
[root@henry01 ~]# groupadd -g 54323 oper
[root@henry01 ~]# useradd -u 60001 -g oinstall -G dba,oper -m oracle

passwd oracle 修改密码

[root@henry01 ~]# mkdir /oracle
[root@henry01 ~]# mkdir -p /oracle/app/oracle/product/19.3.0/dbhome_1
[root@henry01 ~]# mkdir -p /oracle/app/oraInventory
[root@henry01 ~]# chown -R oracle:oinstall /oracle
[root@henry01 ~]# chmod -R 775 /oracle

3.配置yum安装rpm包
[root@henry01 ~]# mount /dev/cdrom /mnt/
mount: /dev/sr0 is write-protected, mounting read-only
[root@henry01 ~]# ls /mnt/
addons  images    RELEASE-NOTES-U7-en       RPM-GPG-KEY-oracle
EFI     isolinux  RELEASE-NOTES-U7-en.html  TRANS.TBL
EULA    LiveOS    repodata
GPL     Packages  RPM-GPG-KEY

cd /etc/yum.repos.d/
rm -rf *

[root@henry01 ~]# vim /etc/yum.repos.d/henry.repo
[root@henry01 ~]# cat /etc/yum.repos.d/henry.repo
[henry]
name=henry_repo
baseurl=file:///mnt/
gpgcheck=0
enabled=1

yum clean all
yum repolist all

yum -y install autoconf
yum -y install automake
yum -y install binutils
yum -y install binutils-devel
yum -y install bison
yum -y install cpp
yum -y install dos2unix
yum -y install ftp
yum -y install gcc
yum -y install gcc-c++
yum -y install lrzsz
yum -y install python-devel
yum -y install compat-libcap1
yum -y install compat-libstdc++-33
yum -y install compat-libstdc++-33.i686
yum -y install glibc-*
yum -y install glibc-*.i686
yum -y install libXpm-*.i686
yum -y install libXext
yum -y install libXext.i686
yum -y install libXtst
yum -y install libXtst.i686
yum -y install libX11
yum -y install libX11.i686
yum -y install libXau
yum -y install libXau.i686
yum -y install libxcb
yum -y install libxcb.i686
yum -y install libXi
yum -y install libXi.i686
yum -y install libstdc++.i686
yum -y install libstdc++-devel
yum -y install libstdc++-devel.i686
yum -y install libaio
yum -y install libaio.i686
yum -y install libaio-devel
yum -y install libaio-devel.i686
yum -y install ksh
yum -y install libXp
yum -y install libaio-devel
yum -y install numactl
yum -y install numactl-devel
yum -y install make -y
yum -y install sysstat -y
yum -y install unixODBC
yum -y install unixODBC-devel
yum -y install elfutils-libelf-devel
yum -y install redhat-lsb-core
yum -y install unzip
yum install -y libXrender
yum install -y libXrender-devel
yum install -y nfs-utils
yum install -y smartmontools

4.limits.conf
[root@henry01 ~]# vim /etc/security/limits.conf

oracle soft nproc 16384
oracle hard nproc 16384
oracle soft nofile 16384
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768

5.内核参数
[root@henry01 ~]# vim /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmax = 1932735283
kernel.shmall = 471859
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 = 1048586
kernel.panic_on_oops = 1

sysctl -p

6.防火墙
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service

7.环境变量
su - oracle
编辑 .bash_profile

vim .bash_profile


PS1="[`whoami`@`hostname`:"'$PWD]$'
export PS1
export TMP=/tmp
export LANG=en_US
export TMPDIR=$TMP
export ORACLE_UNQNAME=cdb19c
ORACLE_SID=cdb19c; export ORACLE_SID
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"; export NLS_DATE_FORMAT
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG
PATH=.:$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin; export PATH
THREADS_FLAG=native; export THREADS_FLAG
umask=022
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi

8.授权解压文件
[root@henry01 soft]# chown -R oracle:oinstall /soft/
[root@henry01 soft]# chmod -R 775 /soft/
[root@henry01 soft]# su - oracle
Last login: Sat Jul 24 22:16:51 CST 2021 on pts/0
[oracle@henry01:/home/oracle]$cd $ORACLE_HOME
[oracle@henry01:/oracle/app/oracle/product/19.3.0/dbhome_1]$pwd
/oracle/app/oracle/product/19.3.0/dbhome_1
[oracle@henry01:/oracle/app/oracle/product/19.3.0/dbhome_1]$unzip -q /soft/LINUX.X64_193000_db_home.zip

9.重启oracle登陆
./runInstaller
netca
dbca

 

标签:soft,henry01,步骤,install,oracle,root,安装,i686yum,19c
From: https://www.cnblogs.com/zzg520/p/16897792.html

相关文章

  • 数据指标体系搭建步骤
    数据指标体系的搭建作为数据分析师的一项必备技能,也是最基础的能够帮助业务方的一项工作。好的数据指标体系能够监控业务变化。当业务出现问题时,数据分析师可以通过数据指标......
  • 安装软件和驱动程序需要微软数字签名无法安装?数字签名和数字证书区别
    1.安装软件和驱动程序需要微软数字签名无法安装方法一:1、以Win10为例,Win7同样适用,首先我们在键盘上同时按下“Windows键”+“R键”,调出运行,在运行中输入“gpedit.msc......
  • Linux安装redis出现的一点问题
    gcc版本不够高安装的时候出现了:release.c:37:21:致命错误:release.h:没有那个文件或目录#include"release.h"然后发现是安装redis6.0需要gcc的版本为5.0以上,......
  • linux系列---【yum下载软件安装包及其依赖】
    yum下载软件安装包及其依赖1.场景生产中一般都是离线环境,需要安装一些软件的时候非常不方便,有时候下载好了软件,但是由于依赖的环境没安装而导致失败,为了解决这个问题......
  • GitLab部署安装
    GitLab官方:GitLab官方部署文档:1、安装依赖&&关闭防火墙yum-yinstallcurlpolicycoreutils-pythonopenssh-serverperlsystemctlenablesshdsystemctlstart......
  • 时刻追逐常新前沿技术 VWmare ESXI 8里安装centos stream 9
    时刻追逐常新前沿技术VWmareESXI8里安装centosstream9在2022年底、大家都还在使用VWmareESXI6.5、centos7时,我就想大胆的尝试一下VWmareESXI8再到最新的ESXI......
  • Arch Linux 的安装
    ArchLinux的安装作者:Grey原文地址:博客园:ArchLinux的安装CSDN:ArchLinux的安装版本ArchLinux:2022.07.01VMwareworkstation:16.2安装步骤下载ArchLinux并......
  • Docker-compose 安装 Nginx PHP MySQL
    1、创建mkdir-p/docker/wwwmkdir-p/docker/nginx/conf.d/2、配置vimnginx/conf.d/default.confserver{listen80;server_namelocalhost;location/{......
  • Centos 7 安装 docker-compose
    1、下载curl-Lhttps://github.com/docker/compose/releases\/download/1.21.2/docker-compose-`uname-s`-`uname-m`-o/usr/local/bin/docker-compose可能上面的下载比......
  • CentOS 7 安装 Ansible
    ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。......