zoukankan      html  css  js  c++  java
  • 安装部署GoldenGate

    1、上传安装包

    2、解压安装包

    3、检查是否开启归档(开启归档)

    sourcedb-> sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.4.0 Production on Mon Apr 13 00:58:03 2015
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> archive log list;
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            /u01/app/oracle/product/11.2.0/db_1/dbs/arch
    Oldest online log sequence     10
    Current log sequence           12
    SQL> 
    View Code

     4、打开附加日志

    SQL> select supplemental_log_data_min from v$database;
    
    SUPPLEME
    --------
    NO
    
    SQL> 
    View Code

     结果为NO,表示没有打开附加日志。使用以下命令将数据库附加日志打开:

    SQL> alter database add supplemental log data;
    
    Database altered.
    View Code

     切换日志以使附加日志生效.如果没有开启归档日志,需要事先开启.

    SQL> alter system archive log current;
    alter system archive log current
    *
    ERROR at line 1:
    ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
    
    
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area 1486495744 bytes
    Fixed Size                  2253384 bytes
    Variable Size            1358958008 bytes
    Database Buffers          117440512 bytes
    Redo Buffers                7843840 bytes
    Database mounted.
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> 
    View Code
    SQL> alter system archive log current;
    
    System altered.
    View Code

    5、创建一个goldengate用户

    SQL> show user
    USER is "SYS"
    SQL> create user goldengate identified by goldengate default tablespace users;
    
    User created.
    
    SQL> grant dba to goldengate;
    
    Grant succeeded.
    
    SQL> 
    View Code

    6、创建目标库goldengate用户

    C:UsersDataCenter>sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.4.0 Production on 星期日 4月 12 17:16:10 2015
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    连接到:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> create user goldengate identified by goldengate default tablespace users;
    
    用户已创建。
    
    SQL> grant dba to goldengate;
    
    授权成功。
    
    SQL>
    View Code
  • 相关阅读:
    MySQL Backup mysqldump 常用选项与主要用法--转发
    openssl 之RSA加密
    Windows 之Dll/lib导出
    缓存雪崩、击穿、穿透
    时间复杂度
    分布式事务
    mysql主从复制与读写分离
    什么是消息队列?
    微服务架构演化
    高并发问题常规思路
  • 原文地址:https://www.cnblogs.com/arcer/p/4419902.html
Copyright © 2011-2022 走看看