如何记录 Oracle 数据库上的所有更改以将它们应用到其他数据库(使用 9i)?
我需要一些关于替换 2 个数据库(预生产和生产)之间的更改的建议,因此我需要记录在“预生产”基础上所做的所有更改,以便稍后在“生产”基础上应用它们,日志应该包含所有事务(cerations、插入、更新……)
感谢您的阅读。
i need some advice about replacating the changes between 2 DBs, (pre-prodution & prodution), so i need to log all changes made on "Pre-Production" base to apply them later on the "Production" base, the log should contain all stransactions (cerations, insertions, updates, .....)
thanks for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么要尝试将事务从预生产数据库应用到生产数据库?这似乎是一种糟糕的架构方法。如果您打算在升级过程中升级一组更改,那么应该在进入预生产环境之前就编写这些更改的脚本,并且您应该在两个环境中运行相同的脚本。
Why are you trying to apply transactions from a pre-production database to a production database? That seems like a poor architectural approach. If you are going to promote a set of changes as part of a promotion process, those changes should be scripted out long before you get to a pre-production environment and you should just run the same script in both environments.
您是否考虑过ORacle Streams? 9i 上的实现不如最近的版本那么好,但它可能符合要求。
Have you considered ORacle Streams? The implementation on 9i wasn't as good as more recent versions, but it might fit the bill.
您可以将数据库设置为ARCHIVE LOG模式,然后可以使用RMAN来同步数据库
You can set the database to ARCHIVE LOG mode and the you can use RMAN to synchronize the DB