教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 基础教育 >

SharePlex实施文档以及常见故障 - 图文(3)

来源:网络收集 时间:2026-07-16
导读: 在有的场景下可能不希望源端的某些修改复制到目标端,比如源端清除历史数据而目标端需要保留等。 具体步骤如下: 源端,在数据库中以shareplex用户执行util目录下的create_ignore.sql,该脚本创建了SHAREPLEX_IGNOR

在有的场景下可能不希望源端的某些修改复制到目标端,比如源端清除历史数据而目标端需要保留等。

具体步骤如下:

源端,在数据库中以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字,全部文档内容请下载后查看。喜欢就下载吧 ……
SharePlex实施文档以及常见故障 - 图文(3).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/564479.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)