How to fix the Oracle error ORA-01931: cannot grant string to a role?

In this post, you’ll learn more about the Oracle ErrorORA-01931: cannot grant string to a role with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-01931: cannot grant string to a role

Reason for the Error ORA-01931: cannot grant string to a role

UNLIMITED TABLESPACE, REFERENCES, INDEX, SYSDBA, SYSOPER or SYSASM privilege could not be granted to a role.

How to fix the Error ORA-01931: cannot grant string to a role ?

You can fix this error in Oracle by following the below steps

Grant privilege directly to the user.