Vagrant创建Oracle RAC环境示例

news2024/11/27 4:36:49

利用Vagrant安装Oracle RAC(默认为non-CDB模式),生成2台虚机,耗时约1小时

    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:25:54: Make create database command
    node1: -----------------------------------------------------------------
    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:25:54: Create database
    node1: -----------------------------------------------------------------
    node1: [WARNING] [DBT-06801] Specified Fast Recovery Area size (2,048 MB) is less than the recommended value.
    node1:    CAUSE: Fast Recovery Area size should at least be three times the database size (692 MB).
    node1:    ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
    node1: [WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
    node1:    CAUSE:
    node1: a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
    node1: b.The password entered is a keyword that Oracle does not recommend to be used as password
    node1:    ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
    node1: [WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
    node1:    CAUSE:
    node1: a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
    node1: b.The password entered is a keyword that Oracle does not recommend to be used as password
    node1:    ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
    node1: [WARNING] [DBT-06801] Specified Fast Recovery Area size (2,048 MB) is less than the recommended value.
    node1:    CAUSE: Fast Recovery Area size should at least be three times the database size (2,377 MB).
    node1:    ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
    node1: Prepare for db operation
    node1: 8% complete
    node1: Copying database files
    node1: 33% complete
    node1: Creating and starting Oracle instance
    node1: 34% complete
    node1: 35% complete
    node1: 39% complete
    node1: 42% complete
    node1: 45% complete
    node1: 50% complete
    node1: Creating cluster database views
    node1: 52% complete
    node1: 67% complete
    node1: Completing Database Creation
    node1: 71% complete
    node1: 73% complete
    node1: 75% complete
    node1: Executing Post Configuration Actions
    node1: 100% complete
    node1: Database creation complete. For details check the logfiles at:
    node1:  /u01/app/oracle/cfgtoollogs/dbca/DB193H1.
    node1: Database Information:
    node1: Global Database Name:DB193H1
    node1: System Identifier(SID) Prefix:DB193H1
    node1: Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/DB193H1/DB193H1.log" for further details.
    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:40:27: Check database
    node1: -----------------------------------------------------------------
    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:40:27: Config database
    node1: -----------------------------------------------------------------
    node1: Database unique name: DB193H1
    node1: Database name: DB193H1
    node1: Oracle home: /u01/app/oracle/product/19.3.0.0/dbhome_1
    node1: Oracle user: oracle
    node1: Spfile: +DATA/DB193H1/PARAMETERFILE/spfile.270.1157999845
    node1: Password file: +DATA/DB193H1/PASSWORD/pwddb193h1.258.1157999243
    node1: Domain:
    node1: Start options: open
    node1: Stop options: immediate
    node1: Database role: PRIMARY
    node1: Management policy: AUTOMATIC
    node1: Server pools:
    node1: Disk Groups: RECO,DATA
    node1: Mount point paths:
    node1: Services:
    node1: Type: RAC
    node1: Start concurrency:
    node1: Stop concurrency:
    node1: OSDBA group: dba
    node1: OSOPER group: oper
    node1: Database instances: DB193H11,DB193H12
    node1: Configured nodes: node1,node2
    node1: CSS critical: no
    node1: CPU count: 0
    node1: Memory target: 0
    node1: Maximum memory: 0
    node1: Default network number for database services:
    node1: Database is administrator managed
    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:40:32: Database Status
    node1: -----------------------------------------------------------------
    node1: Instance DB193H11 is running on node node1
    node1: Instance DB193H12 is running on node node2
    node1: -----------------------------------------------------------------------------------
    node1: SUCCESS: 2024-01-11 18:40:35: Oracle RAC on Vagrant has been created successfully!
    node1: -----------------------------------------------------------------------------------
    node1: -----------------------------------------------------------------
    node1: INFO: 2024-01-11 18:40:35: Running user-defined post-setup scripts
    node1: -----------------------------------------------------------------

real    60m10.215s
user    0m0.000s
sys     0m0.031s

可以看到vagrant生成了node1和node2两台虚机:

$ vagrant status

│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
 Oracle RAC (Real Application Cluster) Vagrant box for KVM/libVirt or VirtualBox
 Copyright (c) 1982-2020 Oracle and/or its affiliates
----------------------------------------------------------------------------------
 Author: Ruggero Citton <ruggero.citton@oracle.com>
         RAC Pack, Cloud Innovation and Solution Engineering Team
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│


--------------------
Detected virtualbox
--------------------
getting Proxy Configuration from Host...
Current machine states:

node2                     running (virtualbox)
node1                     running (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

两台虚机启动后,32G的电脑内存占用由29%升至69%,消耗内存约13G

空间方面,两台虚机刚生成时,新增空间占用为vagrant目录下的113G(共享存储)加虚机目录下的6.13G(各自的操作系统),总共约120G。
在这里插入图片描述
存储使用了ASM:

[grid@node1 ~]$ asmcmd
ASMCMD> lsdg
State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512             512   4096  4194304     65520    63012                0           63012              0             Y  DATA/
MOUNTED  NORMAL  N         512             512   4096  4194304     16368    15364             4092            5636              0             N  RECO/

如果要使用SQL Developer管理此两RAC示例,则需要连接此两主机的公共IP或SCAN IP,例如192.168.56.111和192.168.56.121。他们定义在文件vagrant.yml中:

$ pwd
.../vagrant-projects/OracleRAC/OL7/config

$ ls
setup.env  vagrant.yml

$ cat vagrant.yml
# -----------------------------------------------
# vagrant.yml for VirtualBox
# -----------------------------------------------
node1:
  vm_name: node1
  mem_size: 8192
  cpus: 2
  public_ip:  192.168.56.111
  vip_ip:     192.168.56.112
  private_ip: 192.168.200.111
  u01_disk: ./node1_u01.vdi

node2:
  vm_name: node2
  mem_size: 8192
  cpus: 2
  public_ip:  192.168.56.121
  vip_ip:     192.168.56.122
  private_ip: 192.168.200.122
  u01_disk: ./node2_u01.vdi

shared:
  prefix_name:   vgtol7-rac
  # ---------------------------------------------
  domain  : localdomain
  scan_ip1: 192.168.56.115
  scan_ip2: 192.168.56.116
  scan_ip3: 192.168.56.117
  # ---------------------------------------------
  non_rotational: 'on'
  asm_disk_path:
  asm_disk_num:   4
  asm_disk_size: 20
  p1_ratio:      80
  asm_lib_type: 'ASMLIB'
  # ---------------------------------------------

env:
  provider: virtualbox
  # ---------------------------------------------
  gi_software:     LINUX.X64_193000_grid_home.zip
  db_software:     LINUX.X64_193000_db_home.zip
  # ---------------------------------------------
  root_password:   welcome1
  grid_password:   welcome1
  oracle_password: welcome1
  sys_password:    welcome1
  pdb_password:    welcome1
  # ---------------------------------------------
  ora_languages:   en,en_GB
  # ---------------------------------------------
  nomgmtdb:        true
  orestart:        false
  # ---------------------------------------------
  db_name:         DB193H1
  pdb_name:        PDB1
  db_type:         RAC
  cdb:             false
  # ---------------------------------------------

...

有几个地方可以表明其为RAC。见下图,RAC #1表明其为集群中的节点1:
在这里插入图片描述
然后就是“数据库状态”中,可以看到有2个实例,即DB193H11和DB193H12:
在这里插入图片描述
以及“状态”中的“Oracle主机”标签页:
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1399704.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

多人在线聊天交友工具,匿名聊天室网站源码,附带搭建教程

源码介绍 匿名聊天室&#xff08;nodejs vue&#xff09; 多人在线聊天交友工具&#xff0c;无需注册即可畅所欲言&#xff01;你也可以放心讲述自己的故事&#xff0c;说出自己的秘密&#xff0c;因为谁也不知道对方是谁。 运行说明 安装依赖项&#xff1a;npm install 启动…

react学习笔记(复习)

React简介 react是什么&#xff1f; React用于构建用户界面的JS库。是一个将数据渲染为HTML视图的开源JS库。 为什么学&#xff1f; 1.原生JS操作DOM繁琐&#xff0c;效率低 2.使用JS直接操作DOM,浏览器会进行大量的重绘重排 3.原生JS没有组件化编码方案&#xff0c;代码…

Linux-ionde(软硬件链接)剖析

概述 文件是存储在硬盘上的&#xff0c;硬盘的最小存储单位叫做扇区sector&#xff0c;每个扇区存储512字节。操作系统读取硬盘的时候&#xff0c;不会一个个扇区地读取&#xff0c;这样效率太低&#xff0c;而是一次性连续读取多个扇区&#xff0c;即一次性读取一个块block。这…

OpenAI的DALL·e2生成的AI图像有时会带有偏见或NSFW

专家警告说&#xff0c;OpenAI的图像生成模型DALLe2可能玩起来很有趣&#xff0c;但它生成的图片可能会带有刻板印象和偏见&#xff0c;甚至是生成NSFW图片&#xff0c;因此在现实世界中部署会有风险。 OpenAI公司承认“如果没有足够的防护措施&#xff0c;像DALLe2这样的模型…

k8s节点RouteCreated为false

出现该情况后&#xff0c;一般是初始化节点失败。因此&#xff0c;需要把节点从集群中移除&#xff0c;再加入到集群中&#xff0c;即可解决。 通常出现这个状况后&#xff0c;该节点上是没有被分配pod ip的&#xff0c;可以通过命令查看&#xff1a; # 发现没有PodCIDR、PodC…

DHCP原理

目录 DHCP应用场景DHCP基本原理DHCP报文类型地址池DHCP工作原理DHCP租期更新DHCP重绑定IP地址释放 DHCP应用场景 在大型企业网络中&#xff0c;会有大量的主机或设备需要获取IP地址等网络参数。如果采用手工配置&#xff0c;工作量大且不好管理&#xff0c;如果有用户擅自修改网…

vue3前端开发,子组件向父组件传递数据练习

vue3前端开发,子组件向父组件传递数据练习&#xff01; <script setup> import Child from ./Child.vue const getMsg (msg)>{console.log(msg); } </script> <template><h3>Parent</h3><!--绑定事件--><Child get-Msg"getM…

回调地狱与解决方案

什么是回调地狱&#xff1f; 简单理解就是回调函数嵌套回调 示例&#xff1a; setTimeout(() > {console.log(1);setTimeout(() > {console.log(2);setTimeout(() > {console.log(3);}, 1000);}, 2000)}, 3000)如上代码所示&#xff0c;回调函数嵌套回调&#xff0c;就…

QoS简介

QoS产生的背景 网络的普及和业务的多样化使得互联网流量激增&#xff0c;从而产生网络拥塞&#xff0c;增加转发时延&#xff0c;严重时还会产生丢包&#xff0c;导致业务质量下降甚至不可用。所以&#xff0c;要在网络上开展这些实时性业务&#xff0c;就必须解决网络拥塞问题…

电商系统设计到开发02 单机性能压测

一、前言 接着上篇文章&#xff1a;电商系统设计到开发&#xff08;第一版&#xff09;-CSDN博客 已经开发的代码&#xff0c;今天我们对上面开发的代码进行压力测试&#xff0c;看看单机部署的情况下&#xff0c;性能表现如何。代码地址&#xff1a;风萧萧兮/concurrency-en…

Linux中关于head命令详解

head的作用 head用于查看文件的开头部分的内容。 head的参数 -q隐藏文件名-v 显示文件名-c<数目>显示的字节数-n<数目>显示的行数 head的案例 # 查看yum.log前五行内容 head -5 yum.log

对于随机生成图片接口浏览器走缓存的问题

前提场景 目前有一个api 他可以随机生成一张图片&#xff0c;我通过v-for循环一个Array渲染出来几个img 并且都调用了该接口&#xff0c;但是每个img都是一样的图片 具体代码如下 <div class"icon-group-box" v-for"item in groupList" :key"item…

Oracle篇—参数文件在11gRAC或12cRAC的启动位置介绍

☘️博主介绍☘️&#xff1a; ✨又是一天没白过&#xff0c;我是奈斯&#xff0c;DBA一名✨ ✌✌️擅长Oracle、MySQL、SQLserver、Linux&#xff0c;也在积极的扩展IT方向的其他知识面✌✌️ ❣️❣️❣️大佬们都喜欢静静的看文章&#xff0c;并且也会默默的点赞收藏加关注❣…

让Mac与Windows合二为一:Microsoft Remote Desktop for Mac的魅力

在数字时代&#xff0c;远程连接已成为工作、学习和生活的必备工具。而Microsoft Remote Desktop for Mac正是这样一款能够让你随时随地&#xff0c;轻松连接到Windows系统的强大工具。 Microsoft Remote Desktop for Mac不仅提供了高效、稳定的远程访问体验&#xff0c;更凭借…

黑马程序员-瑞吉外卖-day4

实现账号的启动禁止 EmployeeController PutMappingpublic R<String> update(RequestBody Employee employee){employeeService.updateById(employee);return R.success("员工信息修改成功");} 出错 解决 common目录下 引入JacksonObjectMapper package com…

Sentinel 降级、限流、熔断

前言 在现代分布式系统中&#xff0c;如何有效地保护系统免受突发流量和故障的影响&#xff0c;是每个开发人员和架构师都需要思考的重要问题。在这样的背景下&#xff0c;Sentinel作为一个强大的系统保护和控制组件&#xff0c;为我们提供了降级、限流、熔断等多种策略&#…

宝塔 ftp 服务器发回了不可路由的地址/读取目录列表失败

ftp连接不上&#xff1a; 1.注意内网IP和外网IP 2.检查ftp服务是否启动 &#xff08;面板首页即可看到&#xff09; 3.检查防火墙20端口 ftp 21端口及被动端口39000 - 40000是否放行 &#xff08;如是腾讯云/阿里云等还需检查安全组&#xff09; 4.是否主动/被动模式都不能连接…

Java学习笔记(七)——操作数组工具类Arrays

文章目录 ArraysArrays.toString()Arrays.binarySearch()Arrays.copyOf()Arrays.copyOfRange()Arrays.fill()Arrays.sort()升序排序降序排序 Arrays 操作数组的工具类。 Arrays.toString() import java.util.Arrays;public class test40 {public static void main(String[] a…

SAP S/4HANA 2023 Fully-Activated Appliance 虚拟机版介绍

注&#xff1a;市面上所有在售虚拟机均为拷贝本人所作的虚拟机&#xff0c;存在各种技术问题&#xff0c;请知悉。 SAP S4HANA 2023 FAA版本内置了四个Client&#xff1a; 1、000&#xff1a;SAP初始Client&#xff0c;原则上不能动&#xff1b; 2、100&#xff1a;只激活了US…

自己是如何使用单元测试

前言 自己是如何使用单元测试 进行单元测试能够让我们在编写方法的具体实现代码后&#xff0c;能清晰地看到其是否能实现预期的功能&#xff0c;有助于我们及时修正自己方法中存在的bug&#xff0c;以免在后续使用到某方法时出现意想不到的错误。 一、引入单元测试所使用的依赖…