Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle locked objects

SELECT (SELECT USERNAME FROM v$session WHERE SID = a.SID) AS blocker,
       a. SID,
       ' is blocking ',
       (SELECT USERNAME FROM v$session WHERE SID = b. SID) AS blockee,
       b. SID
FROM v$lock a,
     v$lock b
WHERE a.BLOCK = 1 AND b.REQUEST > 0 AND a.ID1 = b.ID1 AND a.ID2 = b.ID2;
Comment

PREVIOUS NEXT
Code Example
Sql :: update one column from another column in same table 
Sql :: json query 
Sql :: SQL Server Configuration Manager location 
Sql :: return result of function in postgresql 
Sql :: rename table column name in mysql 
Sql :: oracle sql concatenate results into string 
Sql :: create database in mysql 
Sql :: mysql if condition 
Sql :: sqlite create tables 
Sql :: postgresql get connection string 
Sql :: sql show table info 
Sql :: row to value to json in sql server 
Sql :: oracle free up space in tablespace 
Sql :: mysql delete database 
Sql :: select * where id = 1,2,3 
Sql :: rename column in table sql 
Sql :: flask marshmallow sqlalchemy 
Sql :: oracle list proxy users 
Sql :: sql insert column 
Sql :: sqlite3 turn off case sensitive 
Sql :: oracle dependencies table 
Sql :: how to find all children of a record with only parent ID in sql 
Sql :: is numeric in sql 
Sql :: find all tables with column name 
Sql :: postgres recursive function 
Sql :: truncate oracle 
Sql :: sort order on two columns sql 
Sql :: sql oracle limit 
Sql :: get triggers by query 
Sql :: calculate date and convert to yearsmysql 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =