In this Document

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:
1
2
3
4
5
6
7
8
ORA-12850: Could Not Allocate Slaves On All Specified Instance


AI写代码bash



* 1
  • 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’):
1
2
3
4
5
6
7
8
/*+ optimizer_features_enable('11.2.0.4') */


AI写代码bash



* 1