Oracle Error ORA-24505: cannot change character set id on the handle

Oracle Error Message

ORA-24505: cannot change character set id on the handle

Reason for the Error

Attempts to change character set id on non-environment handles

Solution

Only try to change character set id on environment handles