前提条件:

            1.下载两个rpm包  全过程用root安装

            https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html               oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
            https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html  oracle-database-ee-19c-1.0-1.x86_64.rpm

安装步骤

       1.安装依赖包

  yum install compat-libcap1
  yum install compat-libstdc++-33
  yum install glibc-devel
  yum install ksh
  yum install libaio-devel
  yum install libstdc++-devel
  yum install nfs-utils
  yum install xorg-x11-utils
  yum install xorg-x11-xauth

     2.安装  oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

     rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

     3.安装 oracle-database-ee-19c-1.0-1.x86_64.rpm

     yum install -y oracle-database-ee-19c-1.0-1.x86_64.rpm

   4.配置环境变量

    su - oracle
   vim .bashrc
  export ORACLE_BASE=/opt/oracle
  export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
  export ORACLE_SID=ORCLCDB
  export PATH=$ORACLE_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin

   5.登入 sqlplus / as sysdba

参考:https://blog.csdn.net/bisal/article/details/100909708

   

 

    

 

 

           

          

posted on 2022-06-25 22:43  杨杨yang  阅读(141)  评论(0编辑  收藏  举报