Security bug – DBMS_JAVA
Until Oracle ships a patch for recently reported bug related to some DBMS packages, I decided to follow recommendation on Miladin Modrakovic blog and revoked execute privileges from the public:
revoke execute on DBMS_JVM_EXP_PERMS from public; revoke execute on DBMS_JAVA from public; revoke execute on DBMS_JAVA_TEST from public;
Grants needed for export…
Make sure you explicitly grant execute on those packages to non-DBA user running exp/imp, otherwise you’ll receive error ORA-00904, such as:
It’s reasonable to allow DBA’s to run export: