码迷,mamicode.com
首页 > 其他好文 > 详细

OGG安装使用全纪录01

时间:2018-06-20 18:40:57      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:procedure   reserve   inter   tables   ide   form   dmi   har   lin   

OGG安装

参阅:http://www.cnblogs.com/sorliran/p/9199700.html

 

准备数据库

参阅:https://www.cnblogs.com/sorliran/p/9193021.html

 

创建OGG管理用户

OGG的管理用户只用于OGG的进程,独立于数据库业务。创建单独的表空间。

SQL> create tablespace ogg_tbs datafile /u01/app/oracle/oradata/orcl63/ogg_tbs.dbf size 200M;

Tablespace created.

SQL> create user ggadm identified by password default tablespace ogg_tbs;

User created.

SQL> exec dbms_goldengate_auth.grant_admin_privilege(ggadm,capture);

PL/SQL procedure successfully completed.

使用dbms_goldengate_auth.grant_admin_privilege包赋予权限,参阅:https://www.cnblogs.com/sorliran/p/9202498.html

 

创建凭证存储

[ogg@zml-rhel6 ~]$ cd $OGG_HOME
[ogg@zml-rhel6 ogg]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.3.0.1.2 OGGCORE_12.3.0.1.0_PLATFORMS_171208.0005_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Dec  8 2017 21:13:00
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.



GGSCI (zml-rhel6.4-1) 1> ADD CREDENTIALSTORE

Credential store created.

GGSCI (zml-rhel6.4-1) 2> ALTER CREDENTIALSTORE ADD USER ggadm password password ALIAS ggadm

Credential store altered.

GGSCI (zml-rhel6.4-1) 3> INFO CREDENTIALSTORE

Reading from credential store:

Default domain: OracleGoldenGate

  Alias: ggadm
  Userid: ggadm

 

 数据初始化

 

OGG安装使用全纪录01

标签:procedure   reserve   inter   tables   ide   form   dmi   har   lin   

原文地址:https://www.cnblogs.com/sorliran/p/9204374.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!