Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to generate oracle goldengate replication configuration file with python

Shulou Source: shulou.com Published: 2022-05-31 23:28:39 10月03日 Update

Editor to share with you how to use python to generate oracle goldengate replication configuration files, I hope you will learn something after reading this article, let's discuss it together!

When doing ORACLE goldengate configuration, when configuring parameter files, if there are a lot of tables, it takes time to edit parameter files. Write a script with python, which saves a lot of time.

Generate goldengate replication configuration file

Import os

For line in open ('ogg.txt'):

F=line.strip ()

File = open ('ogg_2.txt', 'a')

File.write ('map owner.'+f+', target' + favored investors +'\ n')

After reading this article, I believe you have a certain understanding of "how to use python to generate oracle goldengate replication configuration files". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Files configuration generation parameters articles done time time more knowledge scripts industry information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Redmi MySQL Xiaomi