How can you check if a table is locked in Oracle?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

"Transforming your struggles into success"

You can check if a table is locked in Oracle by querying the `DBA_BLOCKERS` and `DBA_WAITERS` views, or by using the following SQL: ```sql SELECT * FROM v$locked_object; ``` This will show any locked objects, including tables, and the session holding the lock.
Comments

SQL> select * from v$lock where block > 0
Comments

"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"

Run: SELECT * FROM V$LOCKED_OBJECT; or SELECT SESSION_ID, ORACLE_USERNAME, OBJECT_NAME FROM V$LOCKED_OBJECT lo JOIN DBA_OBJECTS o ON lo.OBJECT_ID = o.OBJECT_ID;
Comments

View 1 more Answers

Related Questions

I have theoretical knowledge on PLSQL but I am not good in Hands-on PLSQL and how PLSQL works in a project, Can anyone help me?
it will great appeal to any developer whose applications rely on an Oracle database and who needs a sound understanding of how to use PL/SQL effectively. If you’re brand new to PL/SQL, then you’ll want...
Kokila
Difference between a cluster and a grid?
in cluster you will have homogeneous env and in grid you will have non homogeneous env
Nirod
0 0
6
My name is Rajesh , working as a Recruiter from past 6 years and thought to change my career into software (development / admin/ testing ) am seeking for some suggestion which technology I need to learn ? Any job after training ? Or where I can get job within 3 months after finishing my training programme- your advices are highly appreciated
Mr rajesh if you want to enter in to software Choose SAP BW AND SAP HANA because BW and HANA rules the all other erp tools next 50 years.it provides rubust reporting tools for quicker decesion of business It very easy to learn
Rajesh
1 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons


Oracle Architecture - Introduction
As a Oracle developer or a DBA, you should know the in & out of it’s Architecture. Let’s keep it simple first and explore later. Oracle is a software or a program, so like any other program,...

Starter on exception handling
Just run these two blocks individually, observe the output and comment on what do you understand from it. SET SERVEROUTPUT ONDeclareCursor C is select * from emp;i c%rowtype;BeginFetch C into i;End; SET...

How To Prepare For OCA Exam?
Oracle Certified Associate certification programs are very costly to take the exam. They really deserve it because you get a high value of this certification in the job market. This Article is meant for...

Recommended Articles

Database Administration is the process building, organizing and maintaining custom databases for meeting the specific data requirements of an organization. A Database Administrator (DBA) is the person in charge of all the procedures involved in database development, organization, retrieval and security. A DBA has to understand...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Oracle Training ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you