@@header

/*
* 
* Author   : Vishal Gupta
* Purpose  : Displays lock types
* Parameters : 1 - Lock Type or Description (Use % as wildcard)
* 
*  Revision History:
*  ===================
*  Date       Author        Description
*  ---------  ------------  -----------------------------------------
*  05-Aug-04  Vishal Gupta  First Draft
*
*/


COLUMN type     FORMAT a4
COLUMN name     FORMAT a32
COLUMN ID1_tag  FORMAT a25
COLUMN ID2_tag  FORMAT a25
COLUMN is_user  FORMAT a7
COLUMN description  FORMAT a70

SELECT * 
  FROM v$lock_type l
 WHERE (LOWER(l.type) like LOWER('&&1')
        OR LOWER(l.description) like LOWER('&&1')
       )
ORDER BY l.name
;

@@footer
