I am trying to detect the use of OMF and ASM within a PL/SQL procedure, i.e. I want to create two functions called
ASM_IS_BEING_USED and OMF_IS_BEING_USED which return booleans, indicating whether or not the instance involved is using ASM and OMF respectively.
The Oracle ASM doco ( doesn't appear to show whereabouts in the data dictionary this information is held. To detect ASM, I therefore intend to count the number of rows in V$ASM_DISK, and if it's > 0 set the boolean to true.
Does anyone have a more precise method than this, and does anyone know of a way of determining the same information for OMF?
Regards
T
ASM_IS_BEING_USED and OMF_IS_BEING_USED which return booleans, indicating whether or not the instance involved is using ASM and OMF respectively.
The Oracle ASM doco ( doesn't appear to show whereabouts in the data dictionary this information is held. To detect ASM, I therefore intend to count the number of rows in V$ASM_DISK, and if it's > 0 set the boolean to true.
Does anyone have a more precise method than this, and does anyone know of a way of determining the same information for OMF?
Regards
T