Search notes:

ORA-01955: Role "" not granted to the user.

create user tq84_user;

create role tq84_role_direct;
create role tq84_role_indirect;

grant create session     to tq84_role_indirect;
grant tq84_role_indirect to tq84_role_direct;
grant tq84_role_direct   to tq84_user;
The following alter user statement runs without problem:
alter user tq84_user default role all except tq84_role_direct;
This statement throws ORA-01955: Role "TQ84_ROLE_INDIRECT" not granted to the user.
alter user tq84_user default role all except tq84_role_indirect;
Cleaning up:
drop user tq84_user;
drop role tq84_role_direct;
drop role tq84_role_indirect;

See also

Other Oracle error messages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759474108, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-01955_Role_not-granted-to-the-user(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78