Home Database Mysql Tutorial AIX上的RAC归档日志管理

AIX上的RAC归档日志管理

Jun 07, 2016 pm 05:11 PM

无论数据库是单节点方式还是集群方式,其承载事物的方式是严格按照时间戳顺序执行的。这就决定了在数据库进行恢复时,要严格按照

RAC归档日志共享概述

无论数据库是单节点方式还是集群方式,其承载事物的方式是严格按照时间戳顺序执行的。这就决定了在数据库进行恢复时,要严格按照时间顺序读取日志记录,以恢复数据库文件。因此,在集群数据库恢复时,要有完整的日志序列。
当数据库运行在归档模式下时,日志在实例上是“局部”管理的,因此其归档操作也是“局部”的。由于恢复时需要“全局”的日志文件,因此,在数据库归档操作中,如何把归档日志集合在共同路径下是管理员的一个工作目标。
AIX可以设定共享磁盘上存储文件的四种可能:GPFS(HACMP)、NFS、ASM或HACMP RAW设备。
HACMP RAW设备不能作为归档目的地,因此归档需要文件系统。所以,要放置在共享的区域,可以有如下三种
选择:
GPFS:将归档文件放置到GPFS方式。
ASM:将归档文件放置到ASM磁盘组的方式。
NFS:将归档文件放置到NFS的方式。

使用GPFS进行归档处理,好处是归档无需设置过程,简单的制定归档路径为GPFS即可,通过在各节点指定相同的LOG_ARCHIVE_DESTn参数即可。由于集群中的实例都会将归档日志写入这一目录,因此实现了归档文件的汇总。当然,如果还能为节点上的数据库再指定另一个归档目标,例如指向本地存储,则归档发生错误的可能性会得以降低。
使用ASM磁盘组作为归档存储(如使用一个ASM磁盘组作为闪回恢复区)也是Oracle的建议方法,通过集群各实例将归档日志写到其DB_RECOVERY_FILE_DEST参数指向的ASM磁盘组,则这个磁盘组就存储了共有的归档日志数据。
如果使用NFS方式,则集群各节点挂载同样一个NFS即可。同样的,为提高安全性,可以设置多个归档目标,例如第一个归档目标是本地目录,第二个归档目标位NFS。
这是很多用户目前选择的归档存储结构。如果归档按照这个方式构造,则需要注意指向NFS归档目标的归档应该设置为非强调归档方式。因为当NFS上的归档操作具有强制性时,如果发生网络故障,则NFS安装点不再可用,归档操作失败,这会导致数据库系统的挂起。

NFS配置

1、修改AIX的/etc/hosts文件,,添加

192.1.1.203 rac1

2、修改或者添加/etc/exports文件,如下内容:
/u01 -sec=sys:krb5p:krb5i:krb5:dh:none,-rw,root=rac1,access=rac1

5、客户端修改/etc/hosts文件:
182.1.21.176 djfk

6、挂载nfs:

mount djfk:/u01 /mnt

linux

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 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks 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)

Reduce the use of MySQL memory in Docker Reduce the use of MySQL memory in Docker Mar 04, 2025 pm 03:52 PM

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

How to solve the problem of mysql cannot open shared library How to solve the problem of mysql cannot open shared library Mar 04, 2025 pm 04:01 PM

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Run MySQl in Linux (with/without podman container with phpmyadmin) Run MySQl in Linux (with/without podman container with phpmyadmin) Mar 04, 2025 pm 03:54 PM

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

What is SQLite? Comprehensive overview What is SQLite? Comprehensive overview Mar 04, 2025 pm 03:55 PM

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

Running multiple MySQL versions on MacOS: A step-by-step guide Running multiple MySQL versions on MacOS: A step-by-step guide Mar 04, 2025 pm 03:49 PM

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

See all articles