Oracle Error ORA-01956: invalid command when OS_ROLES are being used

Oracle Error Message

ORA-01956: invalid command when OS_ROLES are being used

Reason for the Error

This command cannot be used when the INIT.ORA parameter OS_ROLES is TRUE.

Solution

Grant the role to the user in the operating system.