1.oracle 用户环境:主库:[oracle@hzmtx admin]$ cat ~/.bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi
umask 022
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/19c
export ORACLE_UNQNAME=mtxdb
export ORACLE_SID=mtxdb
export NLS_LANG=AMERICAN_AMERICA.UTF8
export CV_ASSUME_DISTID=RHEL7.6;export CV_ASSUME_DISTID
export TNS_ADMIN=$...
主备库的切换主要在两种情况下切换,Switchover和Failover,这两种切换都需要手工执行完成。
一是Switchover(计划中的切换,不会丢失数据)二是Failover(当主库出现故障的时候需要主备库切换角色)1,Switchover的切换方法主库端:select switchover_status from v$database;如果是to standby表可以正常切换.直接执行alter database commit to switchover to physical standby;否则执行:alter database commit to switchover to ...
// 12c-- To start the MRP in non real time apply issue,alter database recover managed standby database using archived logfile disconnect ; -- start managed recovery with real time apply.alter database recover managed standby database using current logfile disconnect ; -- < END > -- 原文:https://www.cnblogs.com/fengaix6/p/10850123.html
1、DATAGUARD原理DATAGUARD是通过建立一个PRIMARY和STANDBY组来确立其参照关系。 STANDBY一旦创建,DATAGUARD就会通过将主数据库(PRIMARY)的REDO传递给STANDBY数据库,然后在STANDBY中应用REDO实现数据库的同步。 有两种类型的STANDBY:物理STANDBY和逻辑STANDBY物理STANDBY提供与主数据库完全一样的拷贝(块到块),数据库SCHEMA,包括索引都是一样的。它是直接应用REDO实现同步的。逻辑STANDBY则不是这样,在逻辑STANDBY中,逻辑...
转自:https://www.jb51.net/article/52269.htm 这篇文章主要介绍了Oracle 11g Dataguard参数详解,包含了独立参数、主库参数、备库参数的详细说明,需要的朋友可以参考下。 注:本文译自《Oracle Data Guard 11g Handbook》 Page 78 – Page 88 就Data Guard(后面都写成DG)来说,我们只关注如下三种参数:1.独立于数据库角色的参数2.数据库角色为primary时的参数3.数据库角色为standby时的参数虽然DG有着非常多的配置参数,我们实...
今天是2014-04-14,很久没有写东西,今天拿出 时间来随笔写点东西,如下是整理自2013年8月,学习笔记!。后续将完成DG的相关内容简述整理工作。 那么对于oracle dataguard(简称DG)有两种传输模式:async(异步)和sync(同步),在介绍这两种传输模式前,说一下dg的重做传输进程架构。在主库使用LNS进程从sga中的重做缓冲区中获得相应redo数据,然后通过网络服务传送到备库,那么在备库通过RFS进程接收redo数据存在standby log f...
管理部分如果没有启用database force logging,则备库对/*+ append */操作,nologging操作,会报坏块;建议表空间force logging或者database force logging;--force logging /nologging 测试alter database force logging;
select force_logging from dba_tablespaces;
select force_logging from v$database;
alter tablespace test force logging;
select logging,table_name,tablespace_name from user_tables where table_name...
alter database recover managed standby database disconnect from session; 开启同步重做日志,(使用归档日志进行同步)管理模式
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION; 开启同步重做日志,使用在线日志进行同步)管理模式alter database recover managed standby database cancel; 管理模式到只读模式select process,status from v$managed_standby; 查看日志应...
搭建完了ORACLE 11G dataguard后,也做了角色切换的实验,有switchover已经failover,感觉受益颇多,而后继续研究了下dataguard的一些高级管理功能,所谓冰山一角,ORACLE果然博大精深,总结记录如下:1,ORACLE 11G dataguard的高级管理1.1、READ ONLY/WRITE模式打开物理STANDBY一般standby都是可以设置为mount状态的,于物理standby 可以有效分担primary 数据库压力,提升资源利用,实际上说的就是这个。以read only 或read writ...
1 , dataguard 搭建好后,归档日志传输不过去 去查看master库上面的日志 tail –f /data/oracle/diag/rdbms/test_m1/powerdes/trace/alert_powerdes.log,显示信息如下: Sun May 08 00:34:17 2016 Error 1034 received logging on to the standby PING[ARC 1,dataguard搭建好后,归档日志传输不过去去查看master库上面的日志tail –f /data/oracle/diag/rdbms/test_m1/powerdes/trace/alert_powerdes.log,显示信息如下:Sun Ma...
,dataguard搭建好后,归档日志传输不过去去查看master库上面的日志tail –f /data/oracle/diag/rdbms/test_m1/powerdes/trace/alert_powerdes.log,显示信息如下:Sun May 08 00:34:17 2016Error 1034 received logging on to the standbyPING[ARC2]: Heartbeat failed to connect to standby ‘test_m2‘. Error is1034. 2,tnsping earch_m2是通的 [oracle@azure_test_dbm1_3_111 admin]$ tnsping test_m3 TNS Ping Uti...
1. 查看主库的参数设置:
SQL> show parameter log_archive_dest_2NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_2 string SERVICE=STANDBY LGWR SYNC AFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY2. 在主库设置延时5分钟:
SQL> alter system set log_archive...
list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 8
Next log sequence to archive 10
Current log sequence 10
SQL> SQL> select sequence#,applied from v$archived_log order by sequence# asc;
......
---------- ---------7527 YES7527 YES7528 YES7528 YES7529 YES7530 YES7531 YES75...
mos 提供的用于通过dataguard 滚动升级数据库的脚本
步骤不列举了,主要谈一下重要的地方:开始前,需要确认主备库能够正常Switchover,主备同步正常。备库是先升级的,可以在安装11.2.0.4时选择“升级existing database”,在提示监听器时可选择Typical配置,然后DBUA。轮到主库升级时,与备库有所不同。主库的新ORACLE_HOME选择“仅安装RDBMS”,然后准备好监听器、本地服务名、spifle、密码文件、/etc/oratab,用新的ORACLE_H...
2014-09-09 Created By BaoXinjian
一、摘要
二、
Thanks and Regards
http://blog.csdn.net/giianhui/article/details/7199682
http://blog.csdn.net/l106439814/article/details/8560119
http://blog.csdn.net/l106439814/article/details/8560119
DG_Oracle Dataguard Primary/Standby主备节点安装实践(案例)标签:本文系统来源:http://www.cnblogs.com/eastsea/p/4226821.html