IP修改后重启网卡
[root@ol8 network-scripts]#
systemctl restart NetworkManager
[root@ol8 network-scripts]# nmcli c
reload ifcfg-ens33
如果不行,可尝试以下命令
#
重载所有ifcfg或route到connection(不会立即生效)
nmcli c
reload ifcfg-xxx
#
重载指定ifcfg或route到connection(不会立即生效)
nmcli c
load /etc/sysconfig/network-scripts/ifcfg-ethX
nmcli c
load /etc/sysconfig/network-scripts/route-ethX
#
立即生效connection,有3种方法
nmcli c up
ethX
nmcli d
reapply ethX
nmcli d
connect ethX
建立用户组
[root@ol8 /]# /usr/sbin/groupadd -g 10001 oinstall
[root@ol8 /]# /usr/sbin/groupadd -g 10002 dba
[root@ol8 /]# /usr/sbin/groupadd -g 10003 oper
[root@ol8 /]# /usr/sbin/useradd -u 10001 -g oinstall -G
dba,oper oracle
[root@ol8 /]# passwd oracle
关闭防火墙还有selinux
[root@ol8 /]# systemctl stop firewalld.service
[root@ol8 /]# systemctl disable firewalld.service
Removed
/etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed
/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@ol8 /]# cat /etc/selinux/config
# 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=enforcing
SELINUXTYPE=targeted
关闭selinux
查看selinux状态:getenforce 或者sestatus -v
临时关闭:setenforce 0
永久关闭:vim /etc/selinux/config
设置SELINUX=disabled
创建工作的目录,然后赋予相应的权限
[root@ol8 /]# mkdir -p
/u01/app/oracle/product/19.2.0/db_1
[root@ol8 /]# chown -R oracle:oinstall /u01/
[root@ol8 /]# chmod -R 775 /u01/
oracle环境变量
[root@ol8 u01]# su - oracle
[oracle@ol8 ~]$ vi .bash_profile
ORACLE_SID=ora19c;export ORACLE_SID
ORACLE_UNQNAME=ora19c;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE