Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle ora-00054 resource busy

-- 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 :: UPDATE if else mysql 
Sql :: alter table add column with default value 
Sql :: how to define a composite primary key in sql 
Sql :: oracle list user grants 
Sql :: how to get table current identity value in sql server 
Sql :: get monday of current week sql 
Sql :: add new column not null sql server 
Sql :: alter tablespace add datafile 
Sql :: SELECT NUMBER OF rows for all tables oracle 
Sql :: check database status oracle 
Sql :: how to change column type psql 
Sql :: how to get mysql db size 
Sql :: sql random number between 1000 and 9999 
Sql :: sql random integer 
Sql :: sql update from different table 
Sql :: rabbitmq service not starting 
Sql :: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v72-win32-x64.tar.gz 
Sql :: convert date to datetime sql 
Sql :: sql decimal to 2 places 
Sql :: racle create auto increment column 
Sql :: create table sqlite 
Sql :: mysql grant grant option 
Sql :: sql server set variable if exists 
Sql :: check if sql temp table exists 
Sql :: get name of day in sql 
Sql :: sql trim all spaces 
Sql :: (PDOException(code: 2002): SQLSTATE[HY000] [2002] Permission denied at 
Sql :: postgres statistics 
Sql :: how to connect to xampp sql server on windows cmd 
Sql :: update from table tsql 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =