• Oracle 19C 静默安装 GoldenGate


    首先在Linux系统上安装好Oracle 19c

    打开Oracle 下载网站

    https://edelivery.oracle.com/osdc/faces/SoftwareDelivery

    搜索Oracle GoldenGate,并下载V983658-01.zip 软件包

    Oracle 19c 静默安装 Oracle GoldenGate 19.1.0.0,解压下载的软件包并修改相关的配置

    1. [oracle@19coggm
    2. software]$ cp V983658-01.zip software/
    3. [oracle@19coggm
    4. software]$ unzip V983658-01.zip
    5. [oracle@19coggm
    6. software]$ cd fbo_ggs_Linux_x64_shiphome/
    7. [oracle@19coggm
    8. fbo_ggs_Linux_x64_shiphome]$ ls
    9. Disk1
    10. [oracle@19coggm
    11. fbo_ggs_Linux_x64_shiphome]$ pwd
    12. /tmp/software/fbo_ggs_Linux_x64_shiphome
    13. [oracle@19coggm
    14. fbo_ggs_Linux_x64_shiphome]$ cd Disk1/
    15. [oracle@19coggm
    16. Disk1]$ cd response/
    17. [oracle@19coggm
    18. response]$ ls
    19. oggcore.rsp
    20. [oracle@19coggm response]$ vim oggcore.rsp
    21. ####################################################################
    22. ## Copyright(c)
    23. Oracle Corporation 2019. All rights reserved. ##
    24. ## ##
    25. ## Specify values
    26. for the variables listed below to customize ##
    27. ## your
    28. installation. ##
    29. ## ##
    30. ## Each variable is
    31. associated with a comment. The comment ##
    32. ## can help to
    33. populate the variables with the appropriate ##
    34. ## values. ##
    35. ## ##
    36. ## IMPORTANT NOTE:
    37. This file should be secured to have read ##
    38. ## permission only
    39. by the oracle user or an administrator who ##
    40. ## own this
    41. installation to protect any sensitive input values. ##
    42. ## ##
    43. ####################################################################
    44. #-------------------------------------------------------------------------------
    45. # Do not change the
    46. following system generated value.
    47. #-------------------------------------------------------------------------------
    48. oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v19_1_0
    49. ################################################################################
    50. ## ##
    51. ## Oracle GoldenGate
    52. installation option and details ##
    53. ## ##
    54. ################################################################################
    55. #-------------------------------------------------------------------------------
    56. # Specify the
    57. installation option.
    58. # Specify ORA19c for
    59. installing Oracle GoldenGate for Oracle Database 19c or
    60. # ORA18c for installing Oracle
    61. GoldenGate for Oracle Database 18c or
    62. # ORA12c for installing Oracle
    63. GoldenGate for Oracle Database 12c or
    64. # ORA11g for installing Oracle
    65. GoldenGate for Oracle Database 11g
    66. #-------------------------------------------------------------------------------
    67. INSTALL_OPTION=ORA19c
    68. #-------------------------------------------------------------------------------
    69. # Specify a location
    70. to install Oracle GoldenGate
    71. #-------------------------------------------------------------------------------
    72. SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4
    73. #-------------------------------------------------------------------------------
    74. # Specify true to
    75. start the manager after installation.
    76. #-------------------------------------------------------------------------------
    77. START_MANAGER=
    78. #-------------------------------------------------------------------------------
    79. # Specify a free
    80. port within the valid range for the manager process.
    81. # Required only if
    82. START_MANAGER is true.
    83. #-------------------------------------------------------------------------------
    84. MANAGER_PORT=
    85. #-------------------------------------------------------------------------------
    86. # Specify the
    87. location of the Oracle Database.
    88. # Required only if
    89. START_MANAGER is true.
    90. #-------------------------------------------------------------------------------
    91. DATABASE_LOCATION=/opt/oracle/product/19c/dbhome_1

    说明:

    代表安装路径事先创建好

    SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4
    

    输入相应的安装版本,这里是19c所以输入ORA19c

    INSTALL_OPTION=ORA19c
    

    输入安装19c的 $ORACLE_HOME路径

    DATABASE_LOCATION=/opt/oracle/product/19c/dbhome_1
    

    根据配置文件开始安装软件

    1. [oracle@19coggm Disk1]$ ./runInstaller -silent -nowait -responseFile /tmp/software/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp
    2. 正在启动 Oracle Universal Installer...
    3. 检查临时空间: 必须大于 120 MB。实际为35572 MB 通过
    4. 检查交换空间: 必须大于 150 MB。实际为3046 MB 通过
    5. 准备从以下地址启动 Oracle Universal Installer
    6. /tmp/OraInstall2021-07-05_04-50-54PM. 请稍候...[oracle@19coggm Disk1]$ 可以在以下位置找到本次安装会话的日志:
    7. /opt/oracle/oraInventory/logs/installActions2021-07-05_04-50-54PM.log
    8. Successfully Setup Software.
    9. Oracle GoldenGate Core的安装已成功。
    10. 请查看'/opt/oracle/oraInventory/logs/silentInstall2021-07-05_04-50-54PM.log' 以获取详细资料

    安装完成后,切换到$OGG_HOME目录清理里面所有文件及文件夹

    1. [oracle@19oggm
    2. 19.1.0.0.4]{mathJaxContainer[0]}OGG_HOME
    3. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirrpt;
    4. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirchk;
    5. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirpcs;
    6. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirsql;
    7. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdef;
    8. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdat;
    9. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirtmp;
    10. rm -rf /opt/oracle/ogg/19.1.0.0.4/dircrd;
    11. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirwlt;
    12. rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdmp;

    然后执行GGSCI命令创建create subdirs,不然启动start mgr会报错

    1. [oracle@19oggm 19.1.0.0.4]$ GGSCI
    2. GGSCI (19oggm as ogg@ORCLCDB/PDB1) 1> create subdirs
    3. Creating
    4. subdirectories under current directory /opt/oracle/ogg/19.1.0.0.4
    5. Parameter file /opt/oracle/ogg/19.1.0.0.4/dirprm: created.
    6. Report file /opt/oracle/ogg/19.1.0.0.4/dirrpt: created.
    7. Checkpoint file /opt/oracle/ogg/19.1.0.0.4/dirchk: created.
    8. Process status files /opt/oracle/ogg/19.1.0.0.4/dirpcs: created.
    9. SQL script files /opt/oracle/ogg/19.1.0.0.4/dirsql: created.
    10. Database definitions files /opt/oracle/ogg/19.1.0.0.4/dirdef: created.
    11. Extract data files /opt/oracle/ogg/19.1.0.0.4/dirdat: created.
    12. Temporary files /opt/oracle/ogg/19.1.0.0.4/dirtmp: created.
    13. Credential store files /opt/oracle/ogg/19.1.0.0.4/dircrd: created.
    14. Masterkey wallet files /opt/oracle/ogg/19.1.0.0.4/dirwlt: created.
    15. Dump files /opt/oracle/ogg/19.1.0.0.4/dirdmp: created.

    这样Oracle GoldenGate 19.1.0.0.4 for Oracle就安装好了,后面可以根据需要创建同步配置。

  • 相关阅读:
    【面试】谈谈你对jvm的认识
    JMeter--逻辑控制器--仅一次控制器
    Gcware Python 接口(9)
    Pygame实战(一):随机抽位置
    Python学习精粹008:使用Visual Studio Code开发Python
    STM32 CAN接收FIFO细节
    Java网络编程——粘包拆包出现的原因及解决方式
    贝叶斯优化核极限学习机KELM用于回归预测
    PHP 如何创建一个 composer 包 并在 项目中使用自己的 composer sdk 包
    mybatis快速入门-注解版
  • 原文地址:https://blog.csdn.net/yuanmx/article/details/132708803