Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle ORA-00054 origin

-- ORA-00054 origin (resource busy and acquire with nowait)
SELECT l.SESSION_ID || ',' || v.SERIAL#     AS sid_serial,
       l.ORACLE_USERNAME                    AS ora_user,
       o.OBJECT_NAME,
       o.OBJECT_TYPE,
       DECODE(l.LOCKED_MODE,
              0, 'None',
              1, 'Null',
              2, 'Row-S (SS)',
              3, 'Row-X (SX)',
              4, 'Share',
              5, 'S/Row-X (SSX)',
              6, 'Exclusive',
              TO_CHAR(l.LOCKED_MODE)
           )                                AS lock_mode,
       o.STATUS,
       to_char(o.LAST_DDL_TIME, 'dd.mm.yy') AS last_ddl
FROM DBA_OBJECTS o, GV$LOCKED_OBJECT l, V$SESSION v
WHERE o.OBJECT_ID = l.OBJECT_ID
  AND l.SESSION_ID = v.SID
ORDER BY 2, 3;
Comment

PREVIOUS NEXT
Code Example
Sql :: ms sql truncate table vs delete 
Sql :: date 3 months from today sql 
Sql :: find logged in users mysql 
Sql :: oracle grants 
Sql :: psql client write to bash variable 
Sql :: oracle asynchronous procedure 
Sql :: ubuntu install postgresql 12 
Sql :: sql delete multiple conditions 
Sql :: convert to hexadecimal sql 
Sql :: add auto increment column mysql 
Sql :: org.h2.jdbc.jdbcsqlsyntaxerrorexception table not found 
Sql :: show size database mysql 
Sql :: how to reset table in sql server 
Sql :: DB::transaction 
Sql :: how to change mysql root password in windows 10 
Sql :: sql display number without decimals 
Sql :: insert all in sql 
Sql :: how to add unique key constraint in mysql 
Sql :: show procedures mysql 
Sql :: postgresql update between 2 tables 
Sql :: oracle source code 
Sql :: current year sql 
Sql :: sqlite3 show columns name 
Sql :: mysql date time string format python 
Sql :: sql DATE = GETDATE() 
Sql :: mysql ifnull 
Sql :: change role postgres 
Sql :: insert output identity 
Sql :: sql select second max 
Sql :: oracle desc table primary key 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =