What is a lock? | Oracle DBA

Lock is a mechanism provided by Oracle to reserve a database object so that different sessions do not interfere in each other's work.
Locking helps in ensuring data consistency and maintaining database objects in usable state in multi-user environment. However, it can cause one session to block another.