简体   繁体   English

Oracle 12c CDB / PDB设置中的连续查询通知的替代方法

[英]Alternatives for Continuous Query Notifications in Oracle 12c CDB/PDB setup

Long time trawler and massive fan of the site (you guys effectively taught me to code so big props to you all :D). 长期拖网渔船和网站的大粉丝(你们有效地教我编写这么大的道具给你们所有人:D)。

So as for my first question: 至于我的第一个问题:

My company is currently developing an application that is back ended by an Oracle database, now in production this is going to be deployed in a 12c multi-tenant architecture. 我的公司目前正在开发一个由Oracle数据库支持的应用程序,现在正在生产中,它将部署在12c多租户架构中。 However the issue is our offshore development house had been developing and testing on 11g and incorrect infrastructure, something I have pushed to and mostly fixed since joining the compnay some months ago. 然而问题是我们的离岸开发公司一直在开发和测试11g和不正确的基础设施,这是我在几个月前加入公司以来已经推动并且大部分已经修复的问题。

We have now hit a stumbling block, it has become apparent that our development house have no actual Oracle expertise and are SQL Server developers playing at Oracle, as such they are stuck on how to implement the functionality of Continuous Query Notification (CQN) in Oracle 12c given that this is deprecated in multi-tenant architecture. 我们现在遇到了绊脚石,显而易见的是,我们的开发人员没有实际的Oracle专业知识,并且是SQL Server开发人员在Oracle上工作,因此他们坚持如何在Oracle中实现连续查询通知(CQN)的功能12c,因为在多租户架构中不推荐使用它。

I want to ask if anyone here has any suggestions for way to achieve the same functionality of a CQN in Oracle 12c? 我想问一下这里是否有人建议如何在Oracle 12c中实现CQN的相同功能?

The use of external scripts or solutions is doable, basically no limit on suggestions as we are at a stage where could potentially factor in any possible resolution. 外部脚本或解决方案的使用是可行的,基本上没有对建议的限制,因为我们处于可能潜在地考虑任何可能的解决方案的阶段。

Any help greatly appreciated. 任何帮助非常感谢。

how to implement the functionality of Continuous Query Notification (CQN) in Oracle 12c given that this is deprecated in multi-tenant architecture. 如何在Oracle 12c中实现连续查询通知(CQN)的功能,因为这在多租户架构中已被弃用。

From the Readme Information for Oracle Database 12c Release 1 (12.1.0.2), Section 2.2, " Features Not Available or Restricted in This Release of Oracle Database 12.1.0.2 ": 从Oracle Database 12c第1版(12.1.0.2)的自述文件信息,第2.2节“ Oracle Database 12.1.0.2的此版本中不可用或受限制的功能 ”:

Continuous Query Notification (CQN) is not available or is restricted for a multitenant container database (CDB) 连续查询通知(CQN)不可用或受限于多租户容器数据库(CDB)

It is not the only feature unavailable/restricted, but one of the many features mentioned in that list. 它不是唯一不可用/受限制的功能,而是该列表中提到的众多功能之一。

I want to ask if anyone here has any suggestions for way to achieve the same functionality of a CQN in Oracle 12c? 我想问一下这里是否有人建议如何在Oracle 12c中实现CQN的相同功能?

I don't think you could create an alternative at database level, you might just need to wait for further announcement from Oracle. 我不认为您可以在数据库级别创建替代方案,您可能只需要等待Oracle的进一步通知。 If something could be done external to the database, you could do it at your own stake. 如果可以在数据库外部完成某些操作,您可以自行处理。

our development house have no actual Oracle expertise and are SQL Server developers playing at Oracle 我们的开发人员没有实际的Oracle专业知识,也是SQL Server开发人员在Oracle上工作

That seems to be a bigger problem. 这似乎是一个更大的问题。

You have not provided much in way of details with how you are using CQN. 您没有提供有关如何使用CQN的详细信息。 If, as an example, the front end app wants a notification if inserts or updates are made in a table then there a few things you could do. 例如,如果前端应用程序想要在表格中进行插入或更新时需要通知,那么您可以执行一些操作。

  • set up auditing on the table with "audit insert on your_table;" 使用“your_table上的审计插入”在表上设置审计;
  • create a custom view showing the actions on the table 创建一个自定义视图,显示表上的操作
  • run a job which picks up on the new actions and notifies the app by whatever method 运行一个工作,接受新的操作并通过任何方法通知应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM