Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle ora-00054 find

-- 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 :: ora-00054 resource busy and acquire with nowait 
Sql :: psql: FATAL: Ident authentication failed for user "postgres" 
Sql :: how to create an empty table from an existing table 
Sql :: oracle list privileges 
Sql :: using distinct count in sqlite3 
Sql :: sql server reseed identity column 
Sql :: oracle sql create view 
Sql :: alter tablespace add datafile autoextend 
Sql :: select all field names for a table mysql 
Sql :: mysql Like(searching in the string) 
Sql :: use of now() in mysql 
Sql :: get all db sizes in mysql server 
Sql :: How to reset forgotten postgresql password 
Sql :: sql update all rows 
Sql :: mysql config user password 
Sql :: pgAdmin - Please correct the Binary Path 
Sql :: sql syntax create timestamp column 
Sql :: python sqlite3 prepared statement 
Sql :: SQL: merging multiple row data in string 
Sql :: oracle list duplicates 
Sql :: sql group by year 
Sql :: oracle all tables 
Sql :: SQL loop with cursor 
Sql :: how to fetch first 5 characters in sql 
Sql :: update field sql 
Sql :: select rows with same value in a column 
Sql :: execute stored procedure 
Sql :: query less than datetime sql 
Sql :: convert money to varchar sql server 
Sql :: sql upsert 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =