Precompilers and OCI (MOSC)

MOSC Banner

After updating instant client getting "ORA-24490: error while getting shard instances"

I am writing a client in C which connects to a Oracle Sharded DB, after updating the instant client libraries to version 21.3 the app can't manage to connect to the DB, the error I'm getting is:

"ORA-24490: error while getting shard instances"

The way I'm setting the sharding key is as follows:


static void get_session(const void *key, unsigned long keysize, struct db_context_t *ctx)
{
    sword error;

    if (ctx->session != NULL)
    {
        uint64_t t_session = current_time_us();
        stats_tick(&global->stats.db_session_released_in_get_session, t_session);
        release_session(ctx);
    }

    OCIERROR(ctx->hp, OCIShardingKeyReset((void *)ctx->shardKey, ctx->hp, OCI_DEFAULT));
    OCIERROR(ctx->hp, OCIShardingKeyColumnAdd(ctx->shardKey, ctx->hp,
                           

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center