Confira este link:
Como alternar o Oracle no modo de sessão única do usuário múltiplo
During a migration it may be important, that nobody can connect to the database. You may have two possibilities to achieve this
On Table Level using LOCK TABLE
On Database Level using RESTRICTED SESSION