Тёмный

Basics of Locks and Blocking Session in Oracle 19c 

Oracle DBA Cafe
Подписаться 400
Просмотров 5 тыс.
50% 1

Basics of Locks and Blocking Session in Oracle 19c
-- Blocking Session in the Database --
SET lines 300
col wait_class for A20
col event for A35
SELECT blocking_session, sid, serial#, wait_class, event, seconds_in_wait
FROM v$session
WHERE blocking_session is not NULL
ORDER by blocking_session;
-- Get the types of locks by the Blocking Session
SET LINES 300
COL username FOR A30
SELECT l.sid, s.username, l.type, l.lmode, l.ctime, l.id1, l.id2
FROM v$lock l, v$session s
WHERE l.sid = s.sid and s.sid = &sid
AND s.username is not null;
-- Object Detail
set lines 300
col owner for A16
col object_name for A20
select owner, object_type, object_name, object_id from dba_objects where object_id=&object_id; -- ID1 from Previous Query

Опубликовано:

 

2 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@farheenmaheen
@farheenmaheen Год назад
for theory there are many videos, but realtime issues resolving is the key, please continue like this
@oracledbacafe8742
@oracledbacafe8742 Год назад
Thanks all for 1k+ views. My first video with 1k+ views.😀
@gudipudiseema2430
@gudipudiseema2430 Год назад
Thanks for re-uploading this sir. Please try to update with new videos on day to day activities and issues we face in real time and how to solve those issues.. mostly weekly activities, monthly activities your content is really helpful. Thanks again for all your effort and support you provide to oracle community 🎉
@farheenmaheen
@farheenmaheen Год назад
Saw many oracle related videos, the way your videos are, excellent. keep it up the good work.
@FalguniGoswami-of7vh
@FalguniGoswami-of7vh Год назад
THANK YOU SO MUCH :)
@GauravSingh-bp8nw
@GauravSingh-bp8nw 4 месяца назад
Thank you!!
@eswar_yadav
@eswar_yadav Год назад
well explained
@kondapalligopi2404
@kondapalligopi2404 5 месяцев назад
Super
@sweetmemoriesSR
@sweetmemoriesSR Год назад
Hi Sir, the session 17 is belonging to screen A where first update command ran and 149 is screen B is it correct. This always confuses in many queries, please clarify.
@oracledbacafe8742
@oracledbacafe8742 Год назад
Correct. Session 17 is blocking session 149. (Session 149 is waiting)
@GauravSingh-bp8nw
@GauravSingh-bp8nw 4 месяца назад
Hi sir Session 17 is being blocked by session 149 or is it reverse?? Could you please clear this doubt in simple words??
@oracledbacafe8742
@oracledbacafe8742 Месяц назад
@@GauravSingh-bp8nw It is the reverse. Session 149 is being blocked by session 17. That means, Session 149 needs the row lock to proceed with the UPDATE statement, but it hangs and wait for the lock, because Session 17 is holding the lock (Session 17 performed the UPDATE on the same row but never issued a COMMIT or ROLLBACK).
@Vijesh4ever
@Vijesh4ever Месяц назад
Thumbs down! You could have easily derived table detail and eventually from the locked session from v$session. Wonder why RU-vidrs make it complex for viewers
Далее
The how and why of deadlocks (ORA-00060)
1:00:30
Просмотров 3,4 тыс.
Amazing weight loss transformation !! 😱😱
00:24
INACTIVE Session Blocking ACTIVE Session | dailyDBA 49
20:29
Oracle 19c Performance Tuning Series- Video 002
30:38
Просмотров 1,7 тыс.
Locking in SQL Server
22:05
Просмотров 8 тыс.
What is Database Sharding?
9:05
Просмотров 44 тыс.
How to fix Tablespace Usage Alerts in Oracle 19c
12:04
Просмотров 1,1 тыс.
Oracle 19c Data Guard 01 Step By Step Setup
36:57
Просмотров 24 тыс.