@@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