Vagrant安装Oracle Data Guard环境示例

2024-01-21 13:44

本文主要是介绍Vagrant安装Oracle Data Guard环境示例,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在Windows 11下,通过Vagrant安装标准的Data Guard环境(默认为non-CDB模式),耗时约26分钟,共生成2台虚机。以下为安装日志:

...host2: Welcome to DGMGRL, type "help" for information.host2: Connected to "DB193H1"host2: Connected as SYSDBA.host2: DGMGRL> Database "db193h1_stdby" addedhost2: DGMGRL> DGMGRL for Linux: Release 19.0.0.0.0 - Production on Fri Jan 12 11:39:44 2024host2: Version 19.3.0.0.0host2:host2: Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.host2:host2: Welcome to DGMGRL, type "help" for information.host2: Connected to "DB193H1"host2: Connected as SYSDBA.host2: DGMGRL> Enabled.host2: DGMGRL> -----------------------------------------------------------------host2: INFO: 2024-01-12 11:40:05: Setup standby envhost2: -----------------------------------------------------------------host2:host2: SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jan 12 11:40:05 2024host2: Version 19.3.0.0.0host2:host2: Copyright (c) 1982, 2019, Oracle.  All rights reserved.host2:host2:host2: Connected to:host2: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Productionhost2: Version 19.3.0.0.0host2:host2: SQL> ORACLE instance started.host2:host2: Total System Global Area 3305108784 byteshost2: Fixed Size               8901936 byteshost2: Variable Size                  654311424 byteshost2: Database Buffers      2634022912 byteshost2: Redo Buffers             7872512 byteshost2: Database mounted.host2: SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Productionhost2: Version 19.3.0.0.0host2: DGMGRL for Linux: Release 19.0.0.0.0 - Production on Fri Jan 12 11:41:18 2024host2: Version 19.3.0.0.0host2:host2: Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.host2:host2: Welcome to DGMGRL, type "help" for information.host2: Connected to "DB193H1"host2: Connected as SYSDBA.host2: DGMGRL>host2: Configuration - db_broker_confighost2:host2:   Protection Mode: MaxPerformancehost2:   Members:host2:   db193h1       - Primary databasehost2:     db193h1_stdby - Physical standby databasehost2:       Warning: ORA-16854: apply lag could not be determinedhost2:host2: Fast-Start Failover:  Disabledhost2:host2: Configuration Status:host2: WARNING   (status updated 79 seconds ago)host2:host2: DGMGRL>host2: Database - db193h1host2:host2:   Role:               PRIMARYhost2:   Intended State:     TRANSPORT-ONhost2:   Instance(s):host2:     DB193H1host2:host2: Database Status:host2: SUCCESShost2:host2: DGMGRL>host2: Database - db193h1_stdbyhost2:host2:   Role:               PHYSICAL STANDBYhost2:   Intended State:     APPLY-ONhost2:   Transport Lag:      0 seconds (computed 1 second ago)host2:   Apply Lag:          0 seconds (computed 1 second ago)host2:   Average Apply Rate: 0 Byte/shost2:   Real Time Query:    OFFhost2:   Instance(s):host2:     DB193H1host2:host2: Database Status:host2: SUCCESShost2:host2: DGMGRL> -----------------------------------------------------------------host2: INFO: 2024-01-12 11:41:20: Setup DB autostarthost2: -----------------------------------------------------------------host2: Created symlink from /etc/systemd/system/multi-user.target.wants/dbora.service to /usr/lib/systemd/system/dbora.service.host2: -----------------------------------------------------------------host2: INFO: 2024-01-12 11:41:20: Running user-defined post-setup scriptshost2: -----------------------------------------------------------------real    25m50.651s
user    0m0.015s
sys     0m0.031s

查看主备机的状态:

$ vagrant status│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│Oracle DG (Database Dataguard) Vagrant box for KVM/libVirt or VirtualBoxCopyright (c) 1982-2021 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:host1                     running (virtualbox)
host2                     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`.

使用ssh登录host1,即Primary host:

PS C:\Users\****\Desktop\WORKSPACE\vagrant-projects\OracleDG\OL7> vagrant ssh host1│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│Oracle DG (Database Dataguard) Vagrant box for KVM/libVirt or VirtualBoxCopyright (c) 1982-2021 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...Welcome to Oracle Linux Server release 7.9 (GNU/Linux 5.4.17-2136.325.5.el7uek.x86_64)The Oracle Linux End-User License Agreement can be viewed here:* /usr/share/eula/eula.en_USFor additional packages, updates, documentation and community help, see:* https://yum.oracle.com/[vagrant@primary ~]$

占用空间25.2GB,其实包含了ORCL_software目录下5.54GB的软件,即Oracle DB和GI软件(GI软件实际并没有用到,我只是放在那里而已)。
在这里插入图片描述
虚机启动时的情况,两个虚机实际占用内存约10G:
在这里插入图片描述
使用SQL Developer连接时,请注意需要再端口转发中新增tcp1521条目。例如primary的1521端口映射为15211,而standby的1521端口映射为15212:
在这里插入图片描述

SQL Developer中的管理界面:
在这里插入图片描述

这篇关于Vagrant安装Oracle Data Guard环境示例的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/629737

相关文章

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

浅谈配置MMCV环境,解决报错,版本不匹配问题

《浅谈配置MMCV环境,解决报错,版本不匹配问题》:本文主要介绍浅谈配置MMCV环境,解决报错,版本不匹配问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录配置MMCV环境,解决报错,版本不匹配错误示例正确示例总结配置MMCV环境,解决报错,版本不匹配在col

Python 安装和配置flask, flask_cors的图文教程

《Python安装和配置flask,flask_cors的图文教程》:本文主要介绍Python安装和配置flask,flask_cors的图文教程,本文通过图文并茂的形式给大家介绍的非常详细,... 目录一.python安装:二,配置环境变量,三:检查Python安装和环境变量,四:安装flask和flas

CSS will-change 属性示例详解

《CSSwill-change属性示例详解》will-change是一个CSS属性,用于告诉浏览器某个元素在未来可能会发生哪些变化,本文给大家介绍CSSwill-change属性详解,感... will-change 是一个 css 属性,用于告诉浏览器某个元素在未来可能会发生哪些变化。这可以帮助浏览器优化

Oracle数据库常见字段类型大全以及超详细解析

《Oracle数据库常见字段类型大全以及超详细解析》在Oracle数据库中查询特定表的字段个数通常需要使用SQL语句来完成,:本文主要介绍Oracle数据库常见字段类型大全以及超详细解析,文中通过... 目录前言一、字符类型(Character)1、CHAR:定长字符数据类型2、VARCHAR2:变长字符数

Win11安装PostgreSQL数据库的两种方式详细步骤

《Win11安装PostgreSQL数据库的两种方式详细步骤》PostgreSQL是备受业界青睐的关系型数据库,尤其是在地理空间和移动领域,:本文主要介绍Win11安装PostgreSQL数据库的... 目录一、exe文件安装 (推荐)下载安装包1. 选择操作系统2. 跳转到EDB(PostgreSQL 的

C++中std::distance使用方法示例

《C++中std::distance使用方法示例》std::distance是C++标准库中的一个函数,用于计算两个迭代器之间的距离,本文主要介绍了C++中std::distance使用方法示例,具... 目录语法使用方式解释示例输出:其他说明:总结std::distance&n编程bsp;是 C++ 标准

前端高级CSS用法示例详解

《前端高级CSS用法示例详解》在前端开发中,CSS(层叠样式表)不仅是用来控制网页的外观和布局,更是实现复杂交互和动态效果的关键技术之一,随着前端技术的不断发展,CSS的用法也日益丰富和高级,本文将深... 前端高级css用法在前端开发中,CSS(层叠样式表)不仅是用来控制网页的外观和布局,更是实现复杂交

Linux系统中卸载与安装JDK的详细教程

《Linux系统中卸载与安装JDK的详细教程》本文详细介绍了如何在Linux系统中通过Xshell和Xftp工具连接与传输文件,然后进行JDK的安装与卸载,安装步骤包括连接Linux、传输JDK安装包... 目录1、卸载1.1 linux删除自带的JDK1.2 Linux上卸载自己安装的JDK2、安装2.1

C#使用SQLite进行大数据量高效处理的代码示例

《C#使用SQLite进行大数据量高效处理的代码示例》在软件开发中,高效处理大数据量是一个常见且具有挑战性的任务,SQLite因其零配置、嵌入式、跨平台的特性,成为许多开发者的首选数据库,本文将深入探... 目录前言准备工作数据实体核心技术批量插入:从乌龟到猎豹的蜕变分页查询:加载百万数据异步处理:拒绝界面