Fixed Tables/Views Finder (vfixfind.sql)
What This Script Does
Section titled “What This Script Does”This script searches Oracle’s fixed tables and views (V$ and X$ views) by name pattern, helping you discover available system views for monitoring and diagnostics. Essential for finding the right Oracle internal views for specific monitoring needs.
The Script
Section titled “The Script”rem vfixfind.sqlremttitle 'Fixed Tables/Views'remcol name format a30 heading 'NAME'rem
select name , typefrom v$fixed_tablewhere name like nvl(upper('%&name%'),'%') and type = 'VIEW'order by name;
Parameters
Section titled “Parameters”The script prompts for:
- name: Partial view name to search for (optional, defaults to all views)
-- Basic usage (will prompt for name pattern)@vfixfind.sql
-- Example values when prompted:-- name: session (will find all views containing "session")-- name: lock (will find all views containing "lock")-- name: (empty for all fixed views)
Sample Output
Section titled “Sample Output” Fixed Tables/Views
NAME TYPE------------------------------ -----V$SESSION VIEWV$SESSION_BLOCKERS VIEWV$SESSION_CONNECT_INFO VIEWV$SESSION_CURSOR_CACHE VIEWV$SESSION_EVENT VIEWV$SESSION_FIX_CONTROL VIEWV$SESSION_LONGOPS VIEWV$SESSION_OBJECT_CACHE VIEWV$SESSION_WAIT VIEWV$SESSION_WAIT_CLASS VIEWV$SESSION_WAIT_HISTORY VIEW