ORA-04030 means your shared_pool is too fragmented.

As a workaround you can try to flush shared_pool but that's not a solution - just a bandaid.

You may want to incease shared_pool size - which will only delay the next occurence of the issue.

You may want to check for queries not using bind variables.

Check Metalink for details. Lots of information about ORA-04030 and no magic bullet; all depends on your system.