[quote=Hilarion]I agree that this lock could be more intelligent and do not block the compilation if the execution is done on different DB but determining if it is a different DB is not trivial (as you can have many TNS names for the very same DB). [/quote]

And don't forget distributed transactions.