Error
Error Code:
ORA-28704
Oracle Error ORA-28704: Role Granting
Description
The ORA-28704 error occurs when attempting to attach roles to program units owned by a user, but those roles were not directly granted to that user. This means the role was granted to another role, and the owner of the program unit has that other role.
Error Message
ORA-28704: Role string is not directly granted to the owner of the program units.
Known Causes
2 known causesIndirect Role Grant
The role being attached was granted to another role, not directly to the program unit owner. 🔒
Missing Direct Grant
The required role has not been directly granted to the user owning the program unit. ⚠
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service