你好,游客 登录 注册 搜索
背景:
阅读新闻

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
相关资讯       Data Guard 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款