Database Error Messages

Release
toggle
  • 23ai
  • 21c
Updated
Jun 24, 2024

OCI-03809

invalid database context for CURRENT_SHARD_KEY or CURRENT_PSET_KEY function

Cause

An attempt was made to call either the CURRENT_SHARD_KEY or CURRENT_PSET_KEY function in a non-sharded environment.


Action

Use the CURRENT_SHARD_KEY or CURRENT_PSET_KEY function only on shard databases.