Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ora-00054 resource busy and acquire with nowait

-- 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 :: sql empty table 
Sql :: how to rename column in sql 
Sql :: how to delete git repo locally 
Sql :: how to check schema privileges in oracle 
Sql :: postgresql restore from dump 
Sql :: oracle asynchronous update 
Sql :: reset identity column values in sql server 
Sql :: is there any command to change postgres password 
Sql :: postgres list all roles 
Sql :: show processlist mysql full query 
Sql :: org.h2.jdbc.JdbcSQLSyntaxErrorException 
Sql :: mysql db size 
Sql :: restore postgres database from sql file 
Sql :: How to get todays date and current time in mysql 
Sql :: how to alter length character varying postgres 
Sql :: a network or instance-specific error sql server 
Sql :: sql not contains 
Sql :: oracle invalid table name 
Sql :: create database hive 
Sql :: postgresql drop table 
Sql :: query saurce oracle 
Sql :: insert value in identity 
Sql :: psql while loop 
Sql :: add column with foreign key constraint sql server 
Sql :: sql backup database statement 
Sql :: SQLSTATE[IMSSP]: The active result for the query contains no fields. 
Sql :: brew install mysql 8 
Sql :: mysql error 1251 
Sql :: how to update random rows in sql 
Sql :: postgres list all triggers 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =