Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ora-00054 find lock

-- 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 :: oracle ORA-00054 origin 
Sql :: sql empty table 
Sql :: create table sql 
Sql :: how to add foreign key constraint in sql 
Sql :: adding indexing on a db model in mysql using sequelize 
Sql :: mysql public key retrieval is not allowed 
Sql :: update query formula in excel 
Sql :: oracle explain plan 
Sql :: create function in microsoft sql server 
Sql :: create a unqie constraint mysql 
Sql :: mysql convert column to uppercase 
Sql :: alter table name 
Sql :: sql add months to date 
Sql :: oracle last day of month 
Sql :: psql show columns of table 
Sql :: datetrunc 
Sql :: t-sql get duplicate rows 
Sql :: sql remove not null constraint 
Sql :: sql timestamp to date 
Sql :: oracle auto_increment 
Sql :: select all except one column sql 
Sql :: pl sql disable trigger 
Sql :: wordpress delete post revisions older than date "sql" 
Sql :: SQL Server Get the current identity value of the table 
Sql :: insert query return id mysql 
Sql :: mysql CAST(amount as float) 
Sql :: how to get nears location in mysql with latitude and longitude 
Sql :: mysql insert value date 
Sql :: date_part mysql 
Sql :: sql column contains special character 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =