For most purposes, ozone production would be a detrimental side effect of lamp operation. To prevent this, most germicidal lamps are treated to absorb the 185 nm mercury emission line (which is the longest wavelength of mercury light which will ionize oxygen).
In some cases (such as water sanitization), ozone production is precisely the point. This requires specialized lamps which do not have the surface treatment.