PROBLEM:

Granting tablespace quota to a user is failing with ORA-30041.

SOLUTION:

We can’t grant quota on a UNDO or TEMPORARY tablespace. Quota can be granted only to PERMANENT tablespace.

Now grant quota from a PERMANENT tablespacce