推荐按照三思的文档去做,当然首先要了解dataguard的原理
也是在同一台机器上两个DATABASE之间的dataguard
遇到了几个问题:
1.三思在关了primary之后就没有起来了,其实可以在复制完datafiles和修改完pfile之后马上
CREATE spfile FROM pfile;
startup;
2.配置完成后,在primary查询
select status,target,archiver,error,process from v$archive_dest;
可以看到各dest的状态
3.如果遇到ORA-01031: insufficient privileges
很可能是standby的密码文件没有创立或者sys密码和primary的sys不一样
正常情况下:
select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
4.检查两边同步情况:
两边对比
select max(sequence#) from v$archived_log;
5.检查switchover状态
select switchover_status from v$database;
状态解释:
引用
NOT ALLOWED - Either this is a standby database and the primary database has
not been switched first, or this is a primary database and there are no standby databases.
SESSIONS ACTIVE - Indicates that there are active SQL sessions attached to
the primary or standby database that need to be disconnected before the
switchover operation is permitted.
SWITCHOVER PENDING - This is a standby database and the primary database
switchover request has been received but not processed.
SWITCHOVER LATENT - The switchover was in pending mode, but did not complete
and went back to the primary database.
TO PRIMARY - This is a standby database, with no active sessions, that is
allowed to switch over to a primary database.
TO STANDBY - This is a primary database, with no active sessions, that is
allowed to switch over to a standby database.
RECOVERY NEEDED - This is a standby database that has not received the
switchover request.
During normal operations it is acceptable to see the following values for
SWITCHOVER_STATUS on the primary to be SESSIONS ACTIVE or TO STANDBY.
During normal operations on the standby it is acceptable to see the values
of NOT ALLOWED or SESSIONS ACTIVE.
4. ORA-16053
检查DG_CONFIG
show parameter log_archive_config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_config string DG_CONFIG=(thadgdb5,thadgdb6)
推荐:
1.
盖老师9i的笔记
2.
关于switchover的参考
分享到:
相关推荐
dataguard笔记dataguard笔记dataguard笔记
[三思笔记]一步一步学DataGuard.pdf
DataGuard系统学习好资料,详细介绍了Dataguard的安装与配置
DataGuard简明笔记 1 文档控制 1 一、 基础知识 3 (一) REDO 传输 3 相关进程: 3 传送REDO log的两种方式: 3 应用redo log 的两种时间: 3 应用redo log 的两种方式: 3 (二) 发送什么、发给谁 3 发送什么: 4 ...
三思笔记\[三思笔记]Oracle RAC数据库配置DataGuard.pdf 三思笔记
三思笔记一步一步学DataGuard 。
三思笔记]一步一步学DataGuard. 本系列是一个一般初学者学习过程的记录,其中的概念可能解释的略显初级,其中的操作可能表现的略显繁琐,但,它记录了一种方法,一番热忱,一段历程,
[三思笔记]Oracle+RAC数据库配置DataGuard.pdf [三思笔记]oracle著名及非著名函数介绍.doc [三思笔记]RHEL AS4下安装32位oracle10g.pdf [三思笔记]RHEL AS4下升级oracle10g到10.2.0.3.pdf [三思笔记]RMAN高级应用之...
非常准确的资料,希望给同行一点帮助。虽然是在官方培训之前做的,但是经验证是正确的。
思笔记\[三思笔记]Linux平台Oracle10gR2 RAC数据库安装补丁集.思笔记
本系列是一个一般初学者学习过程的记录,其中的概念可能解释的略显初级,其中的过程可能演示的略显 生疏,其中的操作可能表现的略显繁琐,但,它记录了一种...帮助你走的更平坦:[三思笔记]之一步一步学DataGuard~~~~
[三思笔记]一步一步学RMAN.pdf,完整版,详见内容。
三思oracle笔记包 包含: Linux5版本安装Oracle11gR2 ORACLE 10gR2 RAC环境增加及删除节点 Oracle+RAC数据库配置DataGuard RMAN管理ORACLE_RAC数据库的备份与恢复 全面学习MySQL+Proxy特性 全面学习分区表及分区索引...
详细描述Oracle10g Data Guard的安装配置步骤
会有两次破坏操作datawarehouse和 dataguard最开始: 第一次是datawarehouse时在被破坏的实例prod4中创建dblink,删除全部controlfile(prod4),需要找一下控制文件的自动备份集并恢复 第二次是dataguard搭建之前...