title: Lock a table in oracle
body: <p>I want to Lock a table in oracle and then check if it is blocked,
  But i cant Lock a Table.
  I tried doing this to lock:</p>
  
  <pre><code>LOCK TABLE CLIENTS IN EXCLUSIVE MODE
  </code></pre>
  
  <p>this es the query to Lock , but i can still upadate in that table</p>
  
  <p>then check if its Blocked: </p>
  
  <pre><code>SELECT COUNT(*) total FROM V$LOCKED_OBJECT l 
  INNER JOIN DBA_OBJECTS d ON l.object_id = d.object_id 
  WHERE d.object_type = 'TABLE' AND d.object_name = 'CLIENTS'
  </code></pre>
  
  <p>How can I Lock a table and then check if its blocked with php.</p>