You may also need to specify a DDL lock timeout—the number of seconds a DDL command waits for its required locks before failing using DDL_LOCK_TIMEOUT parameter at the system level, or at the session level. Catch and treat the resource busy error message in the application.
ORA-00054: resource busy