Oracle Error ORA-01955: DEFAULT ROLE ‘string’ not granted to user

Oracle Error Message

ORA-01955: DEFAULT ROLE ‘string’ not granted to user

Reason for the Error

The user being altered does not have the specified role granted directly to the user. Note, sub-roles cannot be used in the default role clause.

Solution

Grant the role to the user.