mssql

推荐列表 站点导航

当前位置:首页 > 数据库 > mssql >

mgrport 7809rmttrail D:oggdirdataPASSTHRUTABLE scott.emp;GGS

来源:网络  作者:网友投稿  发布时间:2021-01-17 04:04
一、源端(Oracle)设置1 筹备要同步的表,ogg发起同步的表必需有主键。本例中同步scott的用户下的emp。2 添加defgen参数文...

取名为scott,start之后会继承同步) GGSCI (oracle) 10 edit param ./globalscheckpointtable dbo.ckpGGSCI (oracle) 8 dblogin sourcedb scott userid sa password xxxGGSCI (oracle) 9 add checkpointtable dbo.ckp 3.添加复制rep历程 GGSCI (oracle) 11 edit param rep_empreplicat rep_empsourcedefs D:oggdirdefscott.deftargetdb scott userid sa。

按提示执行grant ggs_ggsuser_role to ogg; @ddl_enable.sql 切记:需将数据库的enable_goldengate_replication参数配置为true,写多行,要写为scott.emp..., ,之后可以启动mgr和ext历程,这里不能写scott.*,ogg发起同步的表必需有主键,这里不能写scott.*,添加系统DNS,参考MOS,begin now,不然会呈现OGG-00918错误) 2. 方针端设置load历程(如有多个表。

password xxxreperror default,个中一个文档的办理步伐如下:(文档 ID 1671873.1)--即将所有要同步的表别离设置历程。

resource to ogg;SQLgrant select any dictionary to ogg;SQLgrant select any table to ogg;SQLgrant flashback any table to ogg;SQLgrant select any transaction to ogg;SQLgrant insert any table to ogg;SQLgrant update any table to ogg;SQLgrant delete any table to ogg;SQLgrant create any table to ogg;SQLgrant drop any table to ogg;SQLgrant alter any table to ogg;SQLexec dbms_goldengate_auth.grant_admin_privilege(OGG); 6. 添加表级附加日志 SQL select supplemental_log_data_min from v$database;SQL alter database add supplemental log data;SQL alter system switch logfile;GGSCI (oracle) 7 dblogin userid ogg,begin nowGGSCI (oracle) 6 add rmttrail D:oggdirdata,extract ext_emp 8. 添加数据泵历程 GGSCI (oracle) 6 edit params dp_empextract dp_empuserid ogg,password oracletable scott.emp; 这里利用system用户,是因为利用scott用户会报如下错误: 表或试图不存在, 之后: 源端: ./extract paramfile /ogg/dirprm/init.prm reportfile /ogg/dirrpt/init.rpt 方针端: D:oggreplicat paramfile dirprmload.prm reportfile dirrptload.rpt 在这里呈现的一个错误: OGG-00918 Key Column Column Name is Missing from Map 呈现错误的原因是因为方针库的表忘了配置主键,select values$ from sys.props$ where name = NLS_CHARACTERSET;无法执行,tranlog。

oracle到sqlserver的OGG最重要的一点在于源端零停机的及时同步,不然会呈现OGG-00918错误) 3. 举办数据同步 首先需要在方针端的sqlserver数据库中建设表布局。

exttrailsource /ogg/dirdat/ra,discarddiscardfile D:oggdirrptpl.dsc appendgettruncateshandlecollisionsMAP scott.emp,留意择驱动措施范例为SQL Server Native Client 11.0 2.添加checkpointtable(发起添加, 5. 添加ogg用户 SQLcreate tablespace ogg datafile XXX size 200M;(必需为OGG建设独立的表空间)SQLcreate user ogg identified by ogg default tablespace ogg;SQLgrant alter session to ogg;SQLgrant create session to ogg;SQLgrant connect,修改后执行, 二、方针端(sql server)设置 1.设置ODBC数据源 节制面板-打点东西-数据源(ODBC),(因此同步的表有主键很重要。

将oracle的建表语句复制到sqlserver端,且源表随时更新的环境) 1. 源端设置init历程(如有多个表,需用到defgen东西生成界说文件) GGSCI (oracle) 4 edit params defgendefsfile /ogg/dirdef/scott.defuserid system,stop rep后会发生一个查抄点,需要转换字段范例,password oggGGSCI (oracle) 8 add trandata scott.* 7. 添加mgr及抽取历程 GGSCI (oracle) 5 edit params mgrport 7809GGSCI (oracle) 6 edit params extempextract ext_empuserid ogg, TARGET dbo.emp;GGSCI (oracle) 12 add replicat rep_emp, 一、源端(Oracle)设置 1. 筹备要同步的表, 3. 运行defgen东西生成界说文件 进入ogg安装目次 ./defgen paramfile /ogg/dirprm/defgen.prm 会在dirdef目次下生成一个scott.def的界说文件 4. 将scott.def拷贝到sql server ogg下的dirdef目次下,mgrport 7809rmttrail D:oggdirdataPASSTHRUTABLE scott.emp;GGSCI (oracle) 5 add extract dp_emp,exttrail D:oggdirdata,begin nowGGSCI (oracle) 2 add exttrail /ogg/dirdat/ra,extract dp_emp 9)执行4个剧本 cd /home/oracle/ogg/ sqlplus / as sysdba @marker_setup.sql @ddl_setup.sql @role_setup.sql 此剧本执行完毕后,password oggexttrail /ogg/dirdat/ext_empDYNAMICRESOLUTIONGETTRUNCATESTABLE scott.emp;GGSCI (oracle) 1 add extract ext_emp,password oggrmthost 192.168.140.208, 加载完毕后呈现如下图的提示, 2. 添加defgen参数文件(由于是异构数据库之间的传输,添加handlecollisions参数可以办理,写多行, 本例中同步scott的用户下的emp,要写为scott.emp...,但大概呈现数据纷歧致的问题,否则会多出很多事情量) 若已经添加了主键则大概与异构数据库之间OGG同步的BUG有关,checkpointtable dbo.ckp 三、数据初始化同步(不断机,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/sql/mssql/12747.shtml

相关文章
Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

mgrport 7809rmttrail D:oggdirdataPASSTHRUTABLE scott.emp;GGS

2021-01-17 编辑:网友投稿

取名为scott,start之后会继承同步) GGSCI (oracle) 10 edit param ./globalscheckpointtable dbo.ckpGGSCI (oracle) 8 dblogin sourcedb scott userid sa password xxxGGSCI (oracle) 9 add checkpointtable dbo.ckp 3.添加复制rep历程 GGSCI (oracle) 11 edit param rep_empreplicat rep_empsourcedefs D:oggdirdefscott.deftargetdb scott userid sa。

按提示执行grant ggs_ggsuser_role to ogg; @ddl_enable.sql 切记:需将数据库的enable_goldengate_replication参数配置为true,写多行,要写为scott.emp..., ,之后可以启动mgr和ext历程,这里不能写scott.*,ogg发起同步的表必需有主键,这里不能写scott.*,添加系统DNS,参考MOS,begin now,不然会呈现OGG-00918错误) 2. 方针端设置load历程(如有多个表。

password xxxreperror default,个中一个文档的办理步伐如下:(文档 ID 1671873.1)--即将所有要同步的表别离设置历程。

resource to ogg;SQLgrant select any dictionary to ogg;SQLgrant select any table to ogg;SQLgrant flashback any table to ogg;SQLgrant select any transaction to ogg;SQLgrant insert any table to ogg;SQLgrant update any table to ogg;SQLgrant delete any table to ogg;SQLgrant create any table to ogg;SQLgrant drop any table to ogg;SQLgrant alter any table to ogg;SQLexec dbms_goldengate_auth.grant_admin_privilege(OGG); 6. 添加表级附加日志 SQL select supplemental_log_data_min from v$database;SQL alter database add supplemental log data;SQL alter system switch logfile;GGSCI (oracle) 7 dblogin userid ogg,begin nowGGSCI (oracle) 6 add rmttrail D:oggdirdata,extract ext_emp 8. 添加数据泵历程 GGSCI (oracle) 6 edit params dp_empextract dp_empuserid ogg,password oracletable scott.emp; 这里利用system用户,是因为利用scott用户会报如下错误: 表或试图不存在, 之后: 源端: ./extract paramfile /ogg/dirprm/init.prm reportfile /ogg/dirrpt/init.rpt 方针端: D:oggreplicat paramfile dirprmload.prm reportfile dirrptload.rpt 在这里呈现的一个错误: OGG-00918 Key Column Column Name is Missing from Map 呈现错误的原因是因为方针库的表忘了配置主键,select values$ from sys.props$ where name = NLS_CHARACTERSET;无法执行,tranlog。

oracle到sqlserver的OGG最重要的一点在于源端零停机的及时同步,不然会呈现OGG-00918错误) 3. 举办数据同步 首先需要在方针端的sqlserver数据库中建设表布局。

exttrailsource /ogg/dirdat/ra,discarddiscardfile D:oggdirrptpl.dsc appendgettruncateshandlecollisionsMAP scott.emp,留意择驱动措施范例为SQL Server Native Client 11.0 2.添加checkpointtable(发起添加, 5. 添加ogg用户 SQLcreate tablespace ogg datafile XXX size 200M;(必需为OGG建设独立的表空间)SQLcreate user ogg identified by ogg default tablespace ogg;SQLgrant alter session to ogg;SQLgrant create session to ogg;SQLgrant connect,修改后执行, 二、方针端(sql server)设置 1.设置ODBC数据源 节制面板-打点东西-数据源(ODBC),(因此同步的表有主键很重要。

将oracle的建表语句复制到sqlserver端,且源表随时更新的环境) 1. 源端设置init历程(如有多个表,需用到defgen东西生成界说文件) GGSCI (oracle) 4 edit params defgendefsfile /ogg/dirdef/scott.defuserid system,stop rep后会发生一个查抄点,需要转换字段范例,password oggGGSCI (oracle) 8 add trandata scott.* 7. 添加mgr及抽取历程 GGSCI (oracle) 5 edit params mgrport 7809GGSCI (oracle) 6 edit params extempextract ext_empuserid ogg, TARGET dbo.emp;GGSCI (oracle) 12 add replicat rep_emp, 一、源端(Oracle)设置 1. 筹备要同步的表, 3. 运行defgen东西生成界说文件 进入ogg安装目次 ./defgen paramfile /ogg/dirprm/defgen.prm 会在dirdef目次下生成一个scott.def的界说文件 4. 将scott.def拷贝到sql server ogg下的dirdef目次下,mgrport 7809rmttrail D:oggdirdataPASSTHRUTABLE scott.emp;GGSCI (oracle) 5 add extract dp_emp,exttrail D:oggdirdata,begin nowGGSCI (oracle) 2 add exttrail /ogg/dirdat/ra,extract dp_emp 9)执行4个剧本 cd /home/oracle/ogg/ sqlplus / as sysdba @marker_setup.sql @ddl_setup.sql @role_setup.sql 此剧本执行完毕后,password oggexttrail /ogg/dirdat/ext_empDYNAMICRESOLUTIONGETTRUNCATESTABLE scott.emp;GGSCI (oracle) 1 add extract ext_emp,password oggrmthost 192.168.140.208, 加载完毕后呈现如下图的提示, 2. 添加defgen参数文件(由于是异构数据库之间的传输,添加handlecollisions参数可以办理,写多行, 本例中同步scott的用户下的emp,要写为scott.emp...,但大概呈现数据纷歧致的问题,否则会多出很多事情量) 若已经添加了主键则大概与异构数据库之间OGG同步的BUG有关,checkpointtable dbo.ckp 三、数据初始化同步(不断机,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/sql/mssql/12747.shtml

相关文章

风云图片

推荐阅读

返回mssql频道首页