Oracle Error ORA-24506: invalid attempt to change character set id on env handle

Oracle Error Message

ORA-24506: invalid attempt to change character set id on env handle

Reason for the Error

Attempts to change character set id after other handles have been allocated from the env handle

Solution

Change character set id after creating environment handle but before allocating any handles from it.