Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle ora-00054 causes

-- 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 :: postgres first_value in gropby 
Sql :: ms sql truncate table vs delete 
Sql :: list foreign data tables postgres psql 
Sql :: how to know password of mysql root in linux terminal 
Sql :: mysql update auto 
Sql :: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed 
Sql :: postgres in operator with comma separated values 
Sql :: oracle create datafile 
Sql :: postgres concat_ws 
Sql :: mysql alter table set column unique 
Sql :: mysql pretty date format 
Sql :: hangfire clear all jobs 
Sql :: mysql to lowercase 
Sql :: oracle limit rows 
Sql :: Incorrect format parameter 
Sql :: date_trunc postgres 
Sql :: postgresql allow remote connection 
Sql :: mysql size of table 
Sql :: delete all content in table mysql 
Sql :: convert rows to columns in sql server 
Sql :: sql select sum group by id laravel join 
Sql :: postgresql alter table sequence 
Sql :: sqlite create table if not exists 
Sql :: mysql show attributes of a table 
Sql :: sql order by where condition 
Sql :: sql first character 
Sql :: copy postgres table from one schema into another 
Sql :: create or replace table sql 
Sql :: dateadd in sql 
Sql :: how to assign date field for table in mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =