2026-03-12 20:23:15
This commit is contained in:
40
vg/latchname.sql
Normal file
40
vg/latchname.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
@@header
|
||||
|
||||
/*
|
||||
*
|
||||
* Author : Vishal Gupta
|
||||
* Purpose : Display the Latch names
|
||||
* Version :
|
||||
* Parameters : 1 - Latch Name (Use % as wildcard and \ as escape character)
|
||||
*
|
||||
*
|
||||
* Revision History:
|
||||
* ===================
|
||||
* Date Author Description
|
||||
* --------- ------------ -----------------------------------------
|
||||
* 08-OCT-12 Vishal Gupta Created
|
||||
*
|
||||
*/
|
||||
|
||||
UNDEFINE latch_name
|
||||
|
||||
|
||||
DEFINE latch_name="&&1"
|
||||
|
||||
Prompt
|
||||
Prompt ***************************************************************************************************
|
||||
Prompt * ALL Latch Names like '&&latch_name'
|
||||
Prompt ***************************************************************************************************
|
||||
|
||||
COLUMN name HEADING "Latch Name" FORMAT a60
|
||||
|
||||
SELECT l.latch#
|
||||
, l.name
|
||||
FROM v$latchname l
|
||||
WHERE UPPER(l.name) like UPPER('&&latch_name') ESCAPE '\'
|
||||
OR TO_CHAR(l.latch#) LIKE UPPER('&&latch_name') ESCAPE '\'
|
||||
ORDER BY UPPER(l.name)
|
||||
;
|
||||
|
||||
|
||||
@@footer
|
||||
Reference in New Issue
Block a user