zoukankan      html  css  js  c++  java
  • CentOS 7.2安装Oracle19C

    19C相关技术文档:

    https://docs.oracle.com/en/database/oracle/oracle-database/19/index.html

    19c的RPM包下载链接,https://docs.oracle.com/en/database/oracle/oracle-database/19/index.html

    使用手工方式,通过RPM安装19c数据库,只需要两步操作:

    步骤1:安装oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

    步骤2:安装oracle-database-ee-19c-1.0-1.x86_64.rpm

    步骤1:安装oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

    如果OEL平台,只需要执行

    yum -y install oracle-database-preinstall-19c 
    

    如果不是OEL平台,首先要下载对应平台的RPM,我用的是RedHat 7.4,下载链接地址,https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html 

    第一次执行,未必就可以成功,在我的测试环境,从错误的提示看,少了一些依赖库,

    yum install -y 缺少依赖包
    

    依赖包离线下载:http://www.rpmfind.net/linux/rpm2html/search.php?query=compat-libstdc%2B%2B-33(x86-64)

    // 安装
    
    [root@localhost ~]# rpm -ivh oracle-database-preinstall-19c-1.0-2.el7.x86_64.rpm
    warning: oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:oracle-database-preinstall-19c-1.################################# [100%]
    

    步骤2:安装oracle-database-ee-19c-1.0-1.x86_64.rpm

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

    创建数据库

    [root@localhost ~]# /etc/init.d/oracledb_ORCLCDB-19c configure
    

     

    编辑profile文件配置ORACLE环境变量

    export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
    export ORACLE_SID=ORCLCDB
    export PATH=$ORACLE_HOME/bin:$PATH
    
    source /etc/profile
    
    //创建软连接
    ln -s $ORACLE_HOME/bin/sqlplus /usr/bin 
    
    //切换到oracle 用户 
    su - oracle 
    sqlplus# username: system# password: helowin
    sqlplus / as sysdba 
    

      

  • 相关阅读:
    git remote: Support for password authentication was removed on August 13, 2021
    win10 安装vue 详解包括node.js、npm、webpack
    solr window 安装与启动
    solr 创建 core
    idea 创建 springboot 模块报错解决
    c# 设计模式篇
    javascript(DHTML)代码和客户端应用程序代码之间实现双向通信.
    委托,匿名方法,Lambda 表达式 的关系
    使用泛型实现单例模式提供者
    asp.net 文件编码问题
  • 原文地址:https://www.cnblogs.com/Alexr/p/12857130.html
Copyright © 2011-2022 走看看