Fixed Tables/Views Reference (vfixdef.sql)
What This Script Does
Section titled “What This Script Does”This script provides a complete reference of all Oracle fixed tables and views by:
- Querying V$FIXED_TABLE to list all fixed objects
- Displaying V$ views and X$ tables available in the instance
- Providing an alphabetical listing for easy reference
- Helping identify available system views for monitoring
Script
Section titled “Script”rem vfixdef.sqlremttitle 'Fixed Tables/Views'remcol name format a30 heading 'NAME'remselect name from v$fixed_table order by name;
SQL> @vfixdef.sql
Required Privileges
Section titled “Required Privileges”- SELECT on V$FIXED_TABLE (usually available to most users)
Sample Output
Section titled “Sample Output”Fixed Tables/Views
NAME------------------------------GV$ACCESSGV$ACTIVE_SESSION_HISTORYGV$ARCHIVEGV$ARCHIVE_DESTGV$ARCHIVE_DEST_STATUSGV$ARCHIVED_LOGGV$ASM_ALIASGV$ASM_CLIENTGV$ASM_DISKGV$ASM_DISK_STATGV$ASM_DISKGROUPGV$ASM_DISKGROUP_STATGV$ASM_FILEGV$ASM_OPERATIONGV$ASM_TEMPLATEGV$BACKUPGV$BACKUP_ASYNC_IOGV$BACKUP_CORRUPTIONGV$BACKUP_DATAFILEGV$BACKUP_DEVICEGV$BACKUP_PIECEGV$BACKUP_REDOLOGGV$BACKUP_SETGV$BACKUP_SPFILEGV$BACKUP_SYNC_IOGV$BHGV$BGPROCESS...V$ACCESSV$ACTIVE_SESSION_HISTORYV$ARCHIVEV$ARCHIVE_DESTV$ARCHIVE_DEST_STATUSV$ARCHIVED_LOGV$ASM_ALIASV$ASM_CLIENTV$ASM_DISKV$ASM_DISK_STATV$ASM_DISKGROUPV$ASM_DISKGROUP_STAT...X$BHX$KCBFWAITX$KCBSWX$KCCCPX$KCCDIX$KCCFEX$KCCFN...
Understanding Fixed Tables/Views
Section titled “Understanding Fixed Tables/Views”View Categories
Section titled “View Categories”- V$ Views: Formatted, user-friendly views of system data
- GV$ Views: Global views showing data from all RAC instances
- X$ Tables: Internal kernel structures (requires special privileges)
Common Prefixes
Section titled “Common Prefixes”- ASM_: Automatic Storage Management related
- ARCHIVE_: Archive log and backup information
- BACKUP_: RMAN backup and recovery
- DATABASE_: Database-wide information
- DATAGUARD_: Data Guard specific views
- DIAG_: Diagnostic and trace information
- FLASHBACK_: Flashback technology views
- INSTANCE_: Instance-level information
- LOCK_: Locking and concurrency
- LOG_: Redo log information
- MEMORY_: Memory management
- PARAMETER_: Configuration parameters
- PROCESS_: Process information
- RECOVERY_: Recovery operations
- SEGMENT_: Segment and extent information
- SESSION_: Session-related data
- SGA_: System Global Area information
- SQL_: SQL statement information
- STREAMS_: Oracle Streams replication
- SYSTEM_: System-wide statistics
- TEMP_: Temporary space information
- TRANSACTION_: Transaction information
Common Use Cases
Section titled “Common Use Cases”-
System Monitoring Script Development
- Find available monitoring views
- Discover new Oracle features
- Validate view availability across versions
-
Documentation and Learning
- Create comprehensive system documentation
- Study Oracle internals
- Build monitoring toolkits
-
Troubleshooting
- Find appropriate diagnostic views
- Locate specific system information
- Verify view accessibility
Practical Examples
Section titled “Practical Examples”Find all ASM-related views:
Section titled “Find all ASM-related views:”SELECT nameFROM v$fixed_tableWHERE name LIKE '%ASM%'ORDER BY name;
Find all session-related views:
Section titled “Find all session-related views:”SELECT nameFROM v$fixed_tableWHERE name LIKE '%SESSION%'ORDER BY name;
Find all X$ tables:
Section titled “Find all X$ tables:”SELECT nameFROM v$fixed_tableWHERE name LIKE 'X$%'ORDER BY name;
Version Differences
Section titled “Version Differences”Different Oracle versions have different fixed tables:
- 11g: ~500 fixed objects
- 12c: ~600+ fixed objects
- 19c: ~700+ fixed objects
- 21c+: ~800+ fixed objects
New features typically add new V$ views.
Best Practices
Section titled “Best Practices”-
Reference Usage
- Bookmark this output for quick reference
- Use to validate monitoring scripts
- Check availability before using in scripts
-
Documentation
- Include in system documentation
- Note version-specific views
- Cross-reference with Oracle documentation
-
Script Development
- Verify view existence before querying
- Handle version differences gracefully
- Use appropriate error handling