To be certain, you'll need to:
1. Consult your owner's manual: This is the best resource for the precise location.
2. Look at a repair manual or online diagrams: A Haynes or Chilton manual (or a website with repair diagrams specific to your year and engine) will show a detailed engine diagram pinpointing the switch's location. Search online for "[Your engine size] 1998 Chevy Blazer oil pressure switch location."
3. Visually inspect the engine: Once you've got a general idea from the manual or diagrams, locate the oil filter. The oil pressure switch is often near it, on the block itself. It's usually a small, cylindrical switch with one or two wires connected.
Caution: Be careful when working around hot engine components. Allow the engine to cool completely before attempting to locate or replace the switch.