ALTER SESSION returns ORA-02421 missing or invalid schema authorization identifier.
Last updated on AUGUST 30, 2017
Applies to:Precompilers - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
*** Checked for relevance on 30-Aug-2017 ***
Attempting to execute the ALTER SESSION command with a bind variable is failing.
ALTER SESSION SET CURRENT_SCHEMA = :SCHEMA1
The error being reported is:
Using the same host variable within an INSERT works.
INSERT INTO TESTTABLE VALUES (':SCHEMA1')
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms