设置主机名

  1. [root@localhost ~]# cat /etc/hosts
  2. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  3. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  4. 10.0.0.11 study1.localdomain study1
  5. [root@localhost ~]# cat /etc/hostname
  6. study1.localdomain

安装环境准备工具

其实直接rpm安装即可,它会自动解决依赖问题包括环境准备工具,但是这样oracle用户没有home目录,所以单独先安装环境准备工具

  1. [root@study1 /]# yum -y install oracle-database-preinstall-19c
  2. Loaded plugins: langpacks, ulninfo
  3. ol7_UEKR5 | 2.5 kB 00:00:00
  4. ol7_latest | 2.7 kB 00:00:00
  5. (1/4): ol7_UEKR5/x86_64/updateinfo | 49 kB 00:00:01
  6. (2/4): ol7_latest/x86_64/updateinfo | 1.1 MB 00:00:05
  7. (3/4): ol7_UEKR5/x86_64/primary_db | 5.7 MB 00:00:27
  8. (4/4): ol7_latest/x86_64/primary_db | 19 MB 00:01:21
  9. Resolving Dependencies
  10.  
  11. (many more lines supressed)
  12.  
  13. Installed:
  14. oracle-database-preinstall-19c.x86_64 0:1.0-1.el7
  15.  
  16. Dependency Installed:
  17. compat-libcap1.x86_64 0:1.10-7.el7 compat-libstdc++-33.x86_64 0:3.2.3-72.el7 glibc-devel.x86_64 0:2.17-292.0.1.el7 glibc-headers.x86_64 0:2.17-292.0.1.el7 kernel-headers.x86_64 0:3.10.0-1062.el7
  18. ksh.x86_64 0:20120801-139.0.1.el7 libaio-devel.x86_64 0:0.3.109-13.el7 libstdc++-devel.x86_64 0:4.8.5-39.0.1.el7
  19.  
  20. Dependency Updated:
  21. glibc.x86_64 0:2.17-292.0.1.el7 glibc-common.x86_64 0:2.17-292.0.1.el7 libstdc++.x86_64 0:4.8.5-39.0.1.el7
  22.  
  23. Complete!
  24. [root@study1 /]#

如果是rhel或者centos,就要手工先下载preinstall的rmp包,然后本地安装(或者添加oracle linux的yum源来yum安装)

  1. [root@study1 /]# curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 18204 100 18204 0 0 18037 0 0:00:01 0:00:01 --:--:-- 18059
  5. [root@study1 /]# yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

安装oracle软件

  1. [root@study1 db]# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
  2. Loaded plugins: langpacks, ulninfo
  3. Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
  4. Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
  5. Resolving Dependencies
  6. --> Running transaction check
  7. ---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed
  8. --> Finished Dependency Resolution
  9.  
  10. Dependencies Resolved
  11.  
  12. ========================================================================================================================================================================================================================
  13. Package Arch Version Repository Size
  14. ========================================================================================================================================================================================================================
  15. Installing:
  16. oracle-database-ee-19c x86_64 1.0-1 /oracle-database-ee-19c-1.0-1.x86_64 6.9 G
  17.  
  18. Transaction Summary
  19. ========================================================================================================================================================================================================================
  20. Install 1 Package
  21.  
  22. Total size: 6.9 G
  23. Installed size: 6.9 G
  24. Downloading packages:
  25. Running transaction check
  26. Running transaction test
  27. Transaction test succeeded
  28. Running transaction
  29. Installing : oracle-database-ee-19c-1.0-1.x86_64 1/1
  30. [INFO] Executing post installation scripts...
  31. [INFO] Oracle home installed successfully and ready to be configured.
  32. To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
  33. Verifying : oracle-database-ee-19c-1.0-1.x86_64 1/1
  34.  
  35. Installed:
  36. oracle-database-ee-19c.x86_64 0:1.0-1
  37.  
  38. Complete!
  39. [root@study1 db]#

oracle_home目录是/opt/oracle/product/19c/dbhome_1

创建数据库

  1. [root@study1 dbhome_1]# /etc/init.d/oracledb_ORCLCDB-19c configure
  2. Configuring Oracle Database ORCLCDB.
  3. Prepare for db operation
  4. 8% complete
  5. Copying database files
  6. 31% complete
  7. Creating and starting Oracle instance
  8. 32% complete
  9. 36% complete
  10. 40% complete
  11. 43% complete
  12. 46% complete
  13. Completing Database Creation
  14. 51% complete
  15. 54% complete
  16. Creating Pluggable Databases
  17. 58% complete
  18. 77% complete
  19. Executing Post Configuration Actions
  20. 100% complete
  21. Database creation complete. For details check the logfiles at:
  22. /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
  23. Database Information:
  24. Global Database Name:ORCLCDB
  25. System Identifier(SID):ORCLCDB
  26. Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
  27.  
  28. Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
  29. [root@study1 dbhome_1]#

这默认创建了名为ORCLCDB且pdb名ORCLPDB1的数据库,当然可以不用这么创建,用传统的dbca方式

优缺点

实际上这个方式并没有什么用,比起来静默安装也并没有显得更容易,只能安装数据库软件,并不能升级数据库,而且不能用于rac,只能用于安装单实例数据库,整个部署没有给予定制空间比如oracle_home目录如果和你公司的磁盘规划不一致呢,不过新手可能认为这样更简单,这个方式仅试试而已体会一下,实际生产中几乎是不能用的

OL7.6上RPM方式安装Oracle 19c的更多相关文章

  1. Linux上rpm方式安装JDK1.7

    说明: 1.Linux版本 CentOS6.5_x86 2.Java版本 JDK1.7 32位的rpm包,所以是以rpm方式安装的java 3.可以使用yum install java从yum源中安装 ...

  2. windows上mysql解压缩版本、centos上rpm方式的安装、初始化等

    一.windows版本: https://dev.mysql.com/doc/refman/5.7/en/windows-install-archive.html 启动或者暂停mysql服务: htt ...

  3. Centos7上以RPM包方式安装Oracle 18c XE

    Centos7上以RPM包方式安装Oracle 18c XE 安装阿里云 YUM 源 https://opsx.alibaba.com/mirror?lang=zh-CN 一.安装oracle数据库 ...

  4. CentOS7 上以 RPM 包方式安装 Oracle 18c 单实例

    安装阿里云 YUM 源 https://opsx.alibaba.com/mirror?lang=zh-CN 一.安装Oracle数据库 1.安装 Oracle 预安装 RPM yum -y loca ...

  5. RPM方式安装MySQL5.6和windows下安装mysql解压版

    下载地址: http://cdn.MySQL.com/archives/mysql-5.6/MySQL-server-5.6.13-1.el6.x86_64.rpmhttp://cdn.mysql.c ...

  6. RHEL6 64位ASM方式安装oracle 11gR2(一)

    本文转载自 http://vnimos.blog.51cto.com/2014866/1221361 一.安装前的准备 1.1 确定操作系统环境 1 2 3 4 5 6 7 8 9 10 11 12 ...

  7. CentOS 6 下RPM方式安装MySQL5.6

    CentOS 6 下RPM方式安装MySQL5.6 1. 下载Linux对应的RPM包,如:CentOS6.7_64对应的RPM包,如下:[root@mysql ~]# ll总用量 113808-rw ...

  8. CentOS7下通过rpm方式安装MySQL及插入中文问题解决 [原创]

    一 CentOS下通过rpm方式安装MySQL CentOS版本:CentOS-7 MySQL版本:MySQL-5.6.22 在网上搜了一下,Linux下安装MYSQL有三种方式: 1) 通过yum命 ...

  9. centos7和centos6.5环境rpm方式安装mysql5.7和mysql5.6详解

    centos环境安装mysql5.7 其实不建议安装mysql5.7 语法和配置可能和以前的版本区别较大,多坑,慎入 1.yum方式安装(不推荐) a.安装mysql5.7 yum源 centos6: ...

随机推荐

  1. 【oracle】11g服务器安装详细步骤

    以下是百度经验:https://jingyan.baidu.com/article/363872eccfb9266e4aa16f5d.html 1.同时解压 2.setup 3.

  2. Excel引用和数学函数

    1.indirect函数--引用函数 indirect 英 [ˌɪndəˈrekt] 美 [ˌɪndəˈrekt] adj. 间接的;附带的;闪烁其词的;拐弯抹角的;迂回的;弯曲的 indirect函 ...

  3. Codeforces Round #551 (Div. 2) D 树形dp

    https://codeforces.com/contest/1153/problem/D 题意 一颗有n个点的数,每个点a[i]为0代表取子节点的最小,1代表取最大,然后假设树上存在k个叶子,问你如 ...

  4. [灯火阑珊] 关于cmd命令里的findstr匹配多个关键词

    no raining now go to school and play with code 你. findstr "\<go  code\>" 这样就能匹配输出包含g ...

  5. GreenPlum 大数据平台--基础使用(二)

    连接参数 连接参数 描述 环境变量 应用名称 连接到数据库的应用名称,保存在application_name连接参数中.默认值是psql. $PGAPPNAME 数据库名 用户想要连接的数据库名称.对 ...

  6. 【2019-08-29】让自己着眼当下,真TM不容易

    07:50 天是蓝色的,路面是灰色的,树是绿色的,那个奶茶店的招牌是白色的.我的表情是木讷的,老婆的表情是嫌弃的,那个路人的表情是无解的,地铁工作人员的表情是无奈的刚才回到公司看到那个通宵了的同事的表 ...

  7. [BAT脚本] 1、BAT脚本FOR循环操作文件和命令返回实例

    Wednesday, 31. October 2018 08:18PM - beautifulzzzz 一.需求 需要在windows上实现一个bat脚本解析json,将json转换为自己想要的key ...

  8. XC7K325TFFG900 Device 内部结构图

  9. Python文件读写机制

    Python提供了必要的函数和方法进行默认情况下的文件基本操作 文件打开方式: open(name[,mode[buf]]) name:文件路径 mode:打开方式 buf:缓冲buffering大小 ...

  10. Django-查询优化

    表数据: from django.db import models class Province(models.Model): name = models.CharField(max_length=1 ...