SharePlex实施文档以及常见故障 - 图文(3)
在有的场景下可能不希望源端的某些修改复制到目标端,比如源端清除历史数据而目标端需要保留等。
具体步骤如下:
源端,在数据库中以shareplex用户执行util目录下的create_ignore.sql,该脚本创建了SHAREPLEX_IGNORE_TRANS procedure;只需执行一次。
在执行大的事务前先执行这个procedure,即可忽略对该事务(从这个存储过程至下一个commit之间的所有DML操作)的复制,如:
SQL> conn test/test
SQL> exec splex.shareplex_ignore_trans; SQL> insert into tb1 values (100, 'aaa'); SQL>commit;
2.7修改SharePlex的数据库用户密码
SharePlex数据库用户的密码还存在于SharePlex参数文件中,不能简单的在数据库中更改,需要执行SharePlex提供的脚本进行,具体步骤如下。对每个环境都单独列出了详细步骤。
a. 源端stop capture进程,观察SharePlex队列中数据都已应用到目标端; b. shutdown源端和目标端的SharePlex;
c. 执行prod/bin目录下的ora_chpwd命令来自动改变存储在数据库中和
paramdb文件中的密码。
by你好我是李白
? 生产环境:
dcdb02:/oracle$ora_chpwd
This program allows you to change the password of the SharePlex user account needed to run Oracle replication.
In response to prompts, a carriage return will choose the
default given in brackets. If there is no default, a replymust be entered.
Please enter the SID where SharePlex is installed [dl2] : empty response--try again : splex
注意:在此处不要使用本地的实例名,要输入TNS别名,然后回车;
In order to change the password for the SharePlex user account, we must connect to the database as SYSTEM.
Enter password for the SYSTEM account, which will not echo [MANAGER] : empty response--try again :
注意:此处输入oracle数据库system帐户的口令,但应当在口令的后面加上@TNS_ALIAS, 然后回车;
connecting--This may take a few seconds. Enter the current username for SharePlex user : empty response--try again : splex
by你好我是李白
Enter new password for SharePlex user :
empty response--try again :
Re-enter password for SharePlex user : empty response--try again :
注意:此处输入SharePlex用户的口令,但应当在口令的后面加上@TNS_ALIAS, 然后回车。
Changing SharePlex parameter database . . . SharePlex password change completed successfully.
? 管理环境:
dcadm:/oracle$ora_chpwd
This program allows you to change the password of the SharePlex user account needed to run Oracle replication.
In response to prompts, a carriage return will choose the
default given in brackets. If there is no default, a replymust be entered.
Please enter the SID where SharePlex is installed [adm] :adm empty response--try again :
In order to change the password for the SharePlex user account,
…… 此处隐藏:157字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [基础教育]2016-2022年中国钢芯铝绞线市场现状调
- [基础教育]语文部编版初一语文下册练习题 句式变
- [基础教育]南京继续教育参考答案--深入学习贯彻习
- [基础教育]国旗下讲话稿——珍惜时间好读书
- [基础教育]北师大版六年级数学下册圆锥的体积教学
- [基础教育]人教版-音乐-四年级下册-四年级下册音
- [基础教育]乔布斯2019年斯坦福大学毕业典礼致辞.d
- [基础教育]2015年加油站安全知识竞赛试题及答案
- [基础教育]2020年教师年度考核个人工作总结
- [基础教育]2019年中考历史试题-2019年大庆市初中
- [基础教育]初三仁爱英语第一轮总复习教案
- [基础教育]SG-A094电气配管安装工程隐蔽验收记录
- [基础教育]冀教版小学数学三年级下册第六单元教材
- [基础教育]青岛版(五制)小学科学二年级下册16《制
- [基础教育]2018-2019年初中科学初一中考真卷测试
- [基础教育]幼儿园大班期末简短评语精选
- [基础教育]2018云南临沧公务员考试申论技巧:这样
- [基础教育]学校食堂经营管理方案
- [基础教育]新中国砥砺奋进的七十年原文
- [基础教育]真空泵的选型及常用计算公式
- 高职田径课程教学现状与对策
- 全髋关节置换术在老年股骨颈骨折患者中
- 青人社厅函〔2016〕576号(附件)工资
- cp101-07砂子检验作业指导书 - secret
- 微观经济学 第八章 博弈论 习题
- 2014高考真题(词语运用)汇编及答案
- 2018年人教版七年级语文下册《第三单元
- 苏教版数学四年级上册第一单元试题 - M
- 四川大学新闻与传播考研2000-2010年真
- 浙江万里学院英语专业四年制本科教学计
- 最新2018马年事业祝福语-范文word版(2
- 最全模具行业术语英文翻译
- 皮亚杰的发展心理学理论
- 64篇高考情景式默写 练习题及答案
- 仿写(学生稿)
- 《SQL Server数据库技术》试卷A
- 第七章作业答案
- 江苏省赣榆县海头高级中学高中语文必修
- 浙江省2001年10月自考正常人体解剖学答
- 2012英语重点短语




