Oracle Error ORA-30514: system trigger cannot modify tablespace being made read only

Oracle Error Message

ORA-30514: system trigger cannot modify tablespace being made read only

Reason for the Error

A beofre trigger tries to modify a tablespace which is being made READ ONLY as the part of DDL oepration

Solution

Modify the trigger to avoid modifications to the objects in the same tablespace as the one which is being made read only, or use autonomous transactions to commit modifications