Home Database Mysql Tutorial Oracle Database 12c 部署Data Guard(ADG、LDG)并实现Switch

Oracle Database 12c 部署Data Guard(ADG、LDG)并实现Switch

Jun 07, 2016 pm 04:35 PM
data database oracle deploy

目录 1.序4 2.准备实验环境4 2.1查看OS与DB版本信息4 2.2Primary和Standby的hosts里添加主备库信息4 2.3Primary和Standby的环境变量4 2.4在Primary构造测试数据5 3.搭建Active Data Guard7 3.1Primary开启FORCE LOGGING7 3.2添加standby logfile7 3.3令Prima

目录
1. 序 4
2. 准备实验环境 4
2.1 查看OS与DB版本信息 4
2.2 Primary和Standby的hosts里添加主备库信息 4
2.3 Primary和Standby的环境变量 4
2.4 在Primary构造测试数据 5
3. 搭建Active Data Guard 7
3.1 Primary开启FORCE LOGGING 7
3.2 添加standby logfile 7
3.3 令Primary运行于归档模式 8
3.4 Primary网络配置 8
3.5 配置Standby 10
3.5.1 创建初始化参数和口令文件 10
3.5.2 创建必要的目录 10
3.5.3 配置Standby网络 10
3.5.4 启动监听 11
3.5.5 Standby实例启动到NOMOUNT状态 11
3.5.6 在Primary进行连接测试 12
3.6 编写脚本并执行 12
3.6.1 编写rman duplicate命令脚本 12
3.6.2 解锁sysbackup用户 12
3.6.3 口令文件重新复制到Standby 14
3.6.4 执行脚本 14
3.7 Primary修改参数 23
3.8 查看主备库状态信息 23
4. 配置Broker 24
4.1 启用Broker功能并使用 24
4.1.1 启用Broker功能 24
4.1.2 Standby库启动到Read Only 24
4.1.3 主备库打开PDB库 24
4.1.4 使用Broker创建主备库 24
4.1.5 查看主备库详细信息 25
4.1.6 ADG实时应用测试 28
4.2 Data Guard保护模式 29
4.3 SWITCHOVER 30
4.3.1 进行switchover 30
4.3.2 Switchover之后进行确认 30
4.3.3 测试 31
4.4 Failover 32
4.4.1 配置并启动FSFO(FastStartFailover) 32
4.4.2 开启flashback db功能 33
4.4.3 启用FSFO 33
4.4.4 进行故障转移 35
5. 逻辑备用数据库 37
5.1 搭建逻辑备用数据库 37
5.1.1 确认不支持对象 37
5.1.2 停止备用数据库的日志应用 37
5.1.3 构建LogMiner字典 37
5.1.4 通知MRP应用重做日志 37
5.1.5 备用数据库重启,RESETLOGS打开 38
5.1.6 启动SQL Apply 38
5.1.7 数据测试 38
5.2 重新配置Broker 39
5.2.1 切换到最高性能模式并删除备库信息 39
5.2.2 重新以逻辑方式添加备库 39
5.2.3 激活配置 40
5.3 测试Switchover 40

文档下载:点击这里

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Leak reveals key specs of Intel Arrow Lake-U, -H, -HX and -S Leak reveals key specs of Intel Arrow Lake-U, -H, -HX and -S Jun 15, 2024 pm 09:49 PM

IntelArrowLakeisexpectedtobebasedonthesameprocessorarchitectureasLunarLake,meaningthatIntel'sbrandnewLionCoveperformancecoreswillbecombinedwiththeeconomicalSkymontefficiencycores.WhileLunarLakeisonlyavailableasava

How long will Oracle database logs be kept? How long will Oracle database logs be kept? May 10, 2024 am 03:27 AM

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

The order of the oracle database startup steps is The order of the oracle database startup steps is May 10, 2024 am 01:48 AM

The Oracle database startup sequence is: 1. Check the preconditions; 2. Start the listener; 3. Start the database instance; 4. Wait for the database to open; 5. Connect to the database; 6. Verify the database status; 7. Enable the service (if necessary ); 8. Test the connection.

How much memory does oracle require? How much memory does oracle require? May 10, 2024 am 04:12 AM

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

How to use interval in oracle How to use interval in oracle May 08, 2024 pm 07:54 PM

The INTERVAL data type in Oracle is used to represent time intervals. The syntax is INTERVAL <precision> <unit>. You can use addition, subtraction, multiplication and division operations to operate INTERVAL, which is suitable for scenarios such as storing time data and calculating date differences.

Yolov10: Detailed explanation, deployment and application all in one place! Yolov10: Detailed explanation, deployment and application all in one place! Jun 07, 2024 pm 12:05 PM

1. Introduction Over the past few years, YOLOs have become the dominant paradigm in the field of real-time object detection due to its effective balance between computational cost and detection performance. Researchers have explored YOLO's architectural design, optimization goals, data expansion strategies, etc., and have made significant progress. At the same time, relying on non-maximum suppression (NMS) for post-processing hinders end-to-end deployment of YOLO and adversely affects inference latency. In YOLOs, the design of various components lacks comprehensive and thorough inspection, resulting in significant computational redundancy and limiting the capabilities of the model. It offers suboptimal efficiency, and relatively large potential for performance improvement. In this work, the goal is to further improve the performance efficiency boundary of YOLO from both post-processing and model architecture. to this end

How to see the number of occurrences of a certain character in Oracle How to see the number of occurrences of a certain character in Oracle May 09, 2024 pm 09:33 PM

To find the number of occurrences of a character in Oracle, perform the following steps: Get the total length of a string; Get the length of the substring in which a character occurs; Count the number of occurrences of a character by subtracting the substring length from the total length.

Oracle database server hardware configuration requirements Oracle database server hardware configuration requirements May 10, 2024 am 04:00 AM

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.

See all articles