Oracle Data Guard 重要配置参数
Oracle Data Guard主要是通过为生产数据库提供一个或多个备用数据库(是产生数据库的一个副本),以保证在主库不可用或异常时数据不
Oracle Data Guard主要是通过为生产数据库提供一个或多个备用数据库(是产生数据库的一个副本),以保证在主库不可用或异常时数据不丢失并通过备用数据库继续提供服务。对于Oracle DG的配置,我们可以通过Grid Control来完成,也可以通过Data Guard Broker以及SQL*Plus来完成。对于前两者方式可以在图形界面上完成,操作简单。而对于使用SQL*Plus命令行方式,我们需要进行大量的配置,尤其是这其中的一些参数。本文主要描述配置Oracle Data Guard 的重要参数。下面关于Data Guard简称为DG。
相关阅读:
探索Oracle之11g DataGuard
Oracle Data Guard (RAC+DG) 归档删除策略及脚本
Oracle Data Guard 的角色转换
Oracle Data Guard的日志FAL gap问题
Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 处理方法
1、DG的几类参数
配置DG时,有几种不同类型的参数,通常分为与角色无关的参数,主库角色参数,备库角色参数。
对于这些不同类型参数都应当给予正确的设置,否则DG无法正常运行或者无法正常实现角色转换。
注,对于主备库参数分类并不意味着这些参数只能在主库或备库设置,如有些参数发生切换的话,主备库都应当设置。
2、 与角色无关的参数
a、COMPATIBLE = release_number
这个用于设置版本兼容性参数,必须指定相同的值,否则,切换异常以及redo传输服务失败。
b、DB_NAME = database name
这个参数比较常见,任意一个数据库都必须有的数据库的名字。注,同一个DG中,所有角色的DB_NAME相同。
如 *.db_name='oradb'
c、DB_UNIQUE_NAME = Unique name for the database
数据库的唯一名称,,与DB_NAME相对应,此是一个逻辑名称,对应于数据库的实例名,缺省情况下等于DB_NAME。
如果配置LOG_ARCHIVE_CONFIG,建议设置为一个唯一的值,在主备角色发生变化的情况下,该参数不会改变。
主库:*.db_unique_name='oradb'
备库: *.db_unique_name='oradbdg'
d、LOG_ARCHIVE_CONFIG = 'DG_CONFIG ( db_unique_name, db_unique_name, ... )'
该参数用于定义DG中所有有效的DB_UNIQUE_NAME名字的列表,以逗号分割,为DG提供安全性检查。建议始终配置该参数。
主库与备库端采用相同设置。
主库:*.log_archive_config='DG_CONFIG=(oradb,oradbdg)'
备库: *.log_archive_config='DG_CONFIG=(oradb,oradbdg)'
e、CONTROL_FILES = 'control_file_name', 'control_file_name', '...'
该参数用于定义控制文件所在的位置,根据主库与备库所在的路径作相应修改。可以参考: Oracle 控制文件(CONTROLFILE)
f、 LOG_ARCHIVE_MAX_PROCESSES =integer
该参数用于定义归档所使用的进程数。
在主库上,归档进程用于处理联机重做日志文件的归档以及处理到备库重做日志流的间隔。
在备库上,归档进程负责归档Standby Redo log,并将归档日志转发到级联备库。
建议该参数最小设置为4,其最大值为30
g、LOG_ARCHIVE_FORMAT=log%d_%t_%s_%r.arc
这个参数用于定义归档日志的格式
h、REMOTE_LOGIN_PASSWORDFILE = {EXCLUSIVE|SHARED}
该参数用于设置认证方式,建议设置参数值为EXCLUSIVE 或者SHARED,注意保证相同Data Guard配置中所有db 服务器sys密码相同。
关于这个参数,可参考:Oracle 密码文件
主库:*.REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
备库: *.REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

SPDIFOUT connection line sequence on the motherboard. Recently, I encountered a problem regarding the wiring sequence of the wires. I checked online. Some information says that 1, 2, and 4 correspond to out, +5V, and ground; while other information says that 1, 2, and 4 correspond to out, ground, and +5V. The best way is to check your motherboard manual. If you can't find the manual, you can use a multimeter to measure it. Find the ground first, then you can determine the order of the rest of the wiring. How to connect motherboard VDG wiring When connecting the VDG wiring of the motherboard, you need to plug one end of the VGA cable into the VGA interface of the monitor and the other end into the VGA interface of the computer's graphics card. Please be careful not to plug it into the motherboard's VGA port. Once connected, you can

This article will provide a detailed introduction to how to install and register a Bitcoin trading application. The Bitcoin trading app allows users to manage and trade cryptocurrencies such as Bitcoin. The article guides users through the installation and registration process step by step, including downloading applications, creating accounts, performing identity verification, and first deposit. The goal of the article is to provide beginners with clear and easy-to-understand guidelines to help them easily enter the world of Bitcoin trading.

This article recommends the top ten digital currency trading apps in the world, including Binance, OKX, Huobi Global, Coinbase, Kraken, Gate.io, KuCoin, Bitfinex, Gemini and Bitstamp. These platforms have their own characteristics in terms of transaction pair quantity, transaction speed, security, compliance, user experience, etc. For example, Binance is known for its high transaction speed and extensive services, while Coinbase is more suitable for novices. Choosing a platform that suits you requires comprehensive consideration of your own needs and risk tolerance. Learn about the world's mainstream digital currency trading platforms to help you conduct digital asset trading safely and efficiently.

Ouyi, also known as OKX, is a world-leading cryptocurrency trading platform. The article provides a download portal for Ouyi's official installation package, which facilitates users to install Ouyi client on different devices. This installation package supports Windows, Mac, Android and iOS systems. Users can choose the corresponding version to download according to their device type. After the installation is completed, users can register or log in to the Ouyi account, start trading cryptocurrencies and enjoy other services provided by the platform.

There is no single "best" digital currency trading app, and the choice depends on personal needs. 1. OKX has powerful functions and rich currency types; 2. Binance has high liquidity and diverse transaction types; 3. Gate.io provides unique functions such as staking mining; 4. Huobi Global has a friendly interface and multi-language support; 5. Kraken focuses on security; 6. Coinbase is suitable for beginners and focuses on user education. When choosing, you need to consider security, liquidity, handling fees, functions, user experience and other factors.

This article introduces 10 mainstream cryptocurrency exchanges, covering basic information such as their establishment time, service scope, security, liquidity, transaction fees, etc. These exchanges include: OKX, Binance, Gate.io, Bitget, Coinbase, Huobi, KuCoin, Crypto.com, Gemini and Kraken.

Based on global information, this article compiles the rankings of the world's leading virtual digital currency trading platforms, including Binance, OKX, Gate.io, Huobi, Coinbase, Kraken, Crypto.com, bitget, KuCoin and Bitstamp. These platforms have their own characteristics in terms of user count, transaction volume, transaction types, security, compliance, etc. For example, Binance is known for its large user base and extensive trading options, while Coinbase is known for its leadership and ease of use in the US market. Choosing a suitable trading platform requires weighing factors such as security, fees, and trading products based on your own needs.

Ouyi Exchange, formerly known as Binance, is one of the world's leading cryptocurrency trading platforms. It was founded in 2017 by Zhao Changpeng and is headquartered in Hong Kong, China. Ouyi Exchange provides users with a wide range of cryptocurrency trading services, including spot trading, futures trading, over-the-counter trading and crypto asset management.
