Query Errors ‘ORA-12850: Could Not Allocate Slaves On All Specified Instances‘ (Doc ID 2388821.1)

Posted Lucifer三思而后行

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Query Errors ‘ORA-12850: Could Not Allocate Slaves On All Specified Instances‘ (Doc ID 2388821.1)相关的知识,希望对你有一定的参考价值。

APPLIES TO:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

SYMPTOMS

  • Query hangs with following error:
ORA-12850: Could Not Allocate Slaves On All Specified Instance
  • Query works with optimizer_features_enable string 11.2.0.4

CAUSE

Internal bug was filed but closed as duplicate to another bug:

Bug 26680874 SQL MONITORING QUERY RAISES ORA-12850 >>>>>>> Unpublished bug closed as duplicate to following
Bug 19768896 : ALWAYS ALLOW INDEX WHEN COMPARING TIMESTAMP TO DATE COLUMN

SOLUTION

  • 1.Bug is fixed in 12.2.0.1
  • 2.Apply Patch 19768896
  • 3.Workaround is to use optimizer_features_enable(‘11.2.0.4’):
/*+ optimizer_features_enable('11.2.0.4') */

以上是关于Query Errors ‘ORA-12850: Could Not Allocate Slaves On All Specified Instances‘ (Doc ID 2388821.1)的主要内容,如果未能解决你的问题,请参考以下文章

Function mysql_db_query() is deprecated 错误解决

Warning: Function created with compilation errors.

php mysqli_query() 错误

sqlsrv_query 不返回行,长查询没有错误

从函数中获取经度和纬度值

jest + graphql 集成测试显示错误