Oracle Data Guard_ 备库以只读或读写方式打开访问

Opening a Standby Database for Read-Only or Read/Write Access

8.2以只读或者可读写方式打开备库来访问

When a standby database is open for read-only access, users can query the standby database but cannot update it. Thus, you can reduce the load on the primary database by using the standby database for reporting purposes. You can periodically open the standby database for read-only access and perform ad hoc queries to verify Redo Apply is updating the standby database correctly. (Note that for distributed queries, you must first issue theALTER DATABASE SET TRANSACTION READ ONLYstatement before you can issue a query on the read-only database.)

当备库是以只读方式打开时,用户只能在备库上查询而不能更新它。那么你可以为主库减轻负载而在备库上出报表,你可以定期的以只读方式打开备库,查询验证重做应用是否正确的更新到备库。针对分布式查询,你必须在只读数据库查询之前发出ALTER DATABASE SET TRANSACTION READ ONLY语句。

shows a standby database open for read-only access.

Figure 8-1 Standby Database Open for Read-Only Access

Description of "Figure 8-1 Standby Database Open for Read-Only Access"

See Also:

A physical standby database can be opened temporarily in read/write mode for development, reporting, or testing purposes, and then flashed back to a point in the past to be reverted back to a physical standby database. When the database is flashed back, Data Guard automatically synchronizes the standby database with the primary database, without the need to re-create the physical standby database from a backup copy of the primary database.

物理备库可以暂时打开以读/写模式用来开发,报告或测试的目的,然后闪回到

See Also:

for a scenario that describes activating a physical standby database as a read/write reporting database, and then resynchronizing the database with the primary database

第12.6节的场景,描述活动的物理备用数据库为读/写报告数据库,然后与主数据库重新同步数据库。

8.2.1Assessing Whether or Not to Open a Standby Database

8.2.1 评估是否要打开备库

As you decide whether or not to open a physical standby database for read-only or read/write access, consider the following:

决定是否要以只读方式或者读写方式打开物理备库,可以考虑如下:

Opening the physical standby database read-only may lengthen the time it takes to recover from a failure or outage, because the database must be restarted after a failover.

以只读方式打开物理备库可以延长失败或中断恢复的时间,因为数据库必须在故障切换后重新启动。

As long as the physical standby database has not been opened read-only since the last time it was started, a restart is unnecessary after failover, thus increasing system availability.

只要物理备库自从上次启动没有以只读方式打开,在故障切换后,,重启是必须的,那么就会增加系统的可用性。

While a standby database is open for read-only or read/write access, it does not apply redo data received from the primary database, thus it is not kept transactionally consistent with the primary database.

当备库是以只读方式打开或者读写方式打开,就不会应用来自主库的重做数据,那么就不能与主库保持一致性的事务。

When a physical standby database is open, redo data from the primary database is received by the standby database, but the log files are not applied. At some point, you need to resume Redo Apply on the standby database, and apply the archived redo log files to resynchronize the standby database with the primary database. Because of the additional time required to apply any accumulated archived redo log files, having a standby database open for read-only access can increase the time required to complete failovers or switchovers.

当物理备库是打开时,来自主库的重做数据被备库接收,但是不会被应用。在有点伤,你需要在备库上重新应用重做数据,应用归档日志来同步备库和主库之间的数据。因为应用任何所需的额外时间累积的归档重做日志文件,

You can use a physical standby database for reporting purposes or as a clone database while also maintaining the ability to complete a failover or switchover quickly if you configure more than one standby database on the standby system.

你可以使用一个物理备用数据库进行报表用途或克隆一个数据库,同时还保持了完整的故障切换或正常切换。

For example, based on your business requirements, you might:

例如,基于你的业务需求,你可以:

Configure two physical standby databases with one standby database always performing Redo Apply to be as current as possible with the primary database and the other standby database open in read-only mode during business hours for reporting purposes.

配置两个物理备库,其中一个备库尽可能经常用来执行重做应用主库的日志,另外一个则以只读方式打开在业务期间达到出报表的目的。

Configure a physical standby database to maintain a copy of the primary database for disaster recovery purposes and also configure a logical standby database to off-load reporting tasks that require access to the latest data from the primary database.

配置物理备库来维护主库的副本来达到灾难恢复的目的,配置逻辑备库来卸载报表任务,这需要访问到主库最新的数据。 本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:php中文网

oracle的可读可写可执行,OracleDataGuard_备库以只读或读写方式打开访问相关推荐

  1. Linux系统chmod命令读、写、执行

    一.chmod命令  u - 表示用户 (user)      g - 表示用户组 (group)       o - 表示其它 (others)        a - 表示所有 (all) 1.ch ...

  2. mac 修改文件权限为777可读可写可执行

    1,找到要修改的文件夹 2,sudo chmod -R 777 文件夹名. 3,输入管理员密码 chmod是更改文件的权限 chown是改改文件的属主与属组 chgrp只是更改文件的属组. 一.文件权 ...

  3. Linux小实验11|添加组group,添加用户aa、bb并加入group组 (2)新建文件/abc.txt (3)设置用户aa对文件拥有读、写和执行权限

    12.根据以下要求完成对文件/目录权限的设置 (1)添加组group,添加用户aa.bb并加入group组 (2)新建文件/abc.txt (3)设置用户aa对文件拥有读.写和执行权限 (4)设置组g ...

  4. linux 可读可写可执行权限 chmod

    面试题: 砖石王老五,聘请了一个码农为自己建个网站,约定七天干完,每天支付一两黄金,不可预付,不可拖欠农民工工资.目前王老五有三根不同的金条,一两的黄金.二两的黄金.四两的黄金.问王老五怎么支付比较合 ...

  5. java文件边读边写_[Java教程]node.js 利用流实现读写同步,边读边写

    [Java教程]node.js 利用流实现读写同步,边读边写 0 2017-09-10 13:00:14 //10个数 10个字节,每次读4b,写1blet fs=require("fs&q ...

  6. Linux赋予目录或文件任何人都可以读、写、执行的操作

    之前root用户导出的文件,现在要赋予任何人都可以写的权利: 示例 任何人可读.可写.可执行: chmod 777 文件 任何人可读.可写,不可执行: chmod 666 文件 详细解析 比如drwx ...

  7. Linux 文件权限 -rwxr-xr-- 可读 可写 可执行 什么意思 ?

    2.1.文件信息含义解释 文件信息:drwxr-xr-x. 2 root root 4096 Oct 29 16:43 Desktop drwxr-xr-x:文件类型和权限.第1位:文件类型,剩余9位 ...

  8. linux中可读可写可执行权限是什么意思,linux chmod 给目录或文件赋权限 可读可写可执行...

    前提: mode权限设定字串,格式:[ugoa...][[+-=][rwxX]...][,...] 其中u表示拥有者(user),g表示与拥有者属于同一个群体(group),o表示其他以外的人(oth ...

  9. Linux下有关可读可写可执行权限rwx:.sh:权限不够

    在某天之前,我运行Linux下的.sh文件,都是采用./xxx.sh的方式. 突然有一天,我发现这个方式运行不了了...提示我 然后,我才知道,原来文件夹还是有权限的... 所以,请教了一下公司大神, ...

最新文章

  1. 7.12 其他面向对象设计原则3: 依赖倒置原则DIP
  2. Scrapy爬取IT之家
  3. (已解决)(Jupyter notebook)中的tqdm进度条不是在一行更新并显示而是一直滚动往下输出
  4. 在MVVM实践中的Command与CommandParameter的使用
  5. CSDN博客图片居中问题解决方案
  6. css值变量吗,CSS变量初体验
  7. [机器学习]AutoML---谷歌开源AdaNet:基于TensorFlow的AutoML框架
  8. Win32ASM学习[10]:传送指令
  9. 连接MySql出现异常解决:java.sql.SQLException: The server time zone value is unrecognized or represents。
  10. Mysql varchar 字节长度
  11. 《大数据》2021年第6期目次摘要
  12. 两轴插补速度怎么给定_快速入门 | 篇十七:运动控制器多轴插补运动指令的使用...
  13. 阶段1 语言基础+高级_1-3-Java语言高级_09-基础加强_第2节 反射_7_反射_Class对象功能概述...
  14. python中raise stoplteration_Python 中的异常处理
  15. 西门子定时器有几种_【图】西门子step7功能块中定时器的类型与参数
  16. 阿里巴巴安全响应中心成立了
  17. [详细过程] | 使用tokenizers训练wordpiece模型
  18. 起始方位角怎么确定_起始方位角.PPT
  19. KeyboardHolder: macOS系统的输入法切换辅助工具
  20. STOP!运营小程序,不知道这4种方法,是不可能实现小程序裂变的

热门文章

  1. 涨跌停计算器_涨跌停计算器手机版,新股涨停收益表
  2. Juniper SRX防火墙默认用户名和密码
  3. mysql同步的时候主挂掉了_聊聊关于mysql 主从 同步 问题
  4. mysql实战:左表数据全部展示,关联表有关联数据返回1,没有关联数据返回0
  5. 一方库、二方库、三方库说明
  6. Res-Net(Pytorch)
  7. buildroot 添加 loongarch 2k1000la uboot kernel 编译问题
  8. 每日文件类型--CR2
  9. js读取注册表的键值
  10. c语言move函数,C语言中move语句的用法?