Data Guard 部署物理备库的 8 大注意事项

原创
2016-06-07 16:46:45 686浏览

Data Guard 部署物理备库的 8 大注意事项,这8点主要是面向 10g R2 以后的 DG 部署。

Linux公社

首页 → 数据库技术

背景:

阅读新闻

Data Guard 部署物理备库的 8 大注意事项

[日期:2013-03-11] 来源:Linux社区 作者:linwaterbin [字体:]

Data Guard 部署物理备库的 8 大注意事项,这8点主要是面向 10g R2 以后的 DG 部署。

① 主库设置为force logging模式

idle> select force_logging from v$database;

idle> alter database force logging;

② 主库设置为归档模式

idle> archive log list;
idle> shutdown immediate;
idle> startup mount;
idle> alter database archivelog;
idle> archive log list;

③ 配置Standby Redo Log

配置 standby redo log

④ 创建密匙文件(如果不存在的话)

先看文档的解释:

You must have SYSDBA system privileges for the user accounts that you use to manage the primary and standby database instances
Furthermore, the SYS user must have the same password on all databases in the configuration.

那么如果password不一样会怎样?

案例如下:

Error 1031 received logging on to the standby
Errors in file /u01/app/Oracle/diag/rdbms/pri/orcl/trace/orcl_arcf_5769.trc:
ORA-01031: insufficient privileges
PING[ARCf]: Heartbeat failed to connect to standby 'std'. Error is 1031.

显然、抛出 ORA-01031: insufficient privileges

使用 DBCA 建库会在 $ORACLE_HOME/dbs 下自动创建密匙文件

如若没有、可使用 orapwd 命令行工具、其 file 和 password 为必填参数、

例如(假设当前目录是 $ORACLE_HOME/dbs ):

orapwd file=orapworcl password=oracle entries=30 (Linux/Unix 平台命名规则:orapw[sid])

linux

  • 0
  • Data Guard 环境配置的初始化参数设置列表

    Data Guard Standby_archive_dest 和 Log_archive_dest_n 的关系

    相关资讯 Data Guard

    图片资讯

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

    Oracle Data Guard_
  • 本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,,也不构成任何建议。


    Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。