
[root@jeames ~]# chown -R oracle:oinstall /u01/
[root@jeames ~]# chmod -R 775 /u01/app/oracle
5配置Oracle的环境变量
[oracle@jeames ~]$ vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1
export ORACLE_SID=PROD
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
source .bash_profile
6修改内核参数(root用户)
[root@jeames ~]# vi /etc/sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
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
[root@jeames ~]# sysctl --system 生效
7.安装所需 rpm 包
7.1 使用ISO镜像盘
a.放系统光盘到光驱
b.创建光盘挂载目录
mkdir -p /mnt/cdrom
c.挂载光驱到/mnt/cdrom目录(确保设备状态:已连接/启动时连接)
mount /dev/cdrom /mnt/cdrom
返回mount: /dev/sr0 写保护,将以只读方式挂载 表示成功
d.检测是否成功
df -h | tail -n 1
e.进入光盘目录查看光盘文件
cd /mnt/cdrom && ls
f.修改yum配置
备份你的原镜像文件,以免出错后可以恢复
mkdir /etc/yum.repos.d/backup && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/
g.添加一个新的yum源配置文件
vi /etc/yum.repos.d/dvd.repo
添加:
[RHEL]
name=RedHat
baseurl=file:///mnt/cdrom
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
h.清空并重载yum
yum clean all
yum makecache
相关文档
评论