https://pan.gaojs.com.cn/个人工作工具/数据库/oracle19
cat /etc/hosts
192.168.120.205 oracle
执行 hostname oracle 即可,然后再去执行hostname即可看到修改成功
systemctl stop firewalld
vi /etc/selinux/config
vi /etc/yum.repos.d/local.repo
[local]
name=local
enable=1
baseurl=file:///root/base
gpgchech=0
rpm -ivh --nodeps oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
rpm -ivh -- nodeps oracle-database-ee-19c-1.0-1.x86_64.rpm
执行 /etc/init.d/oracledb_ORCLCDB-19c configure
执行su oracle
cd
vi .bashrc
将内容加入:
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export PATH=$PATH:/opt/oracle/product/19c/dbhome_1/bin
export ORACLE_SID=ORCLCDB
执行source .bashrc
执行 sqlplus / as sysdba
执行lsnrctl status