During the routine production and planned shutdown of a petrochemical refinery in China, ambient volatile organic compound (VOC) data were continuously determined by an online monitoring system, and VOC characteristics, source apportionment, and health risks were calculated based on those data. The data showed that the total VOC concentration emitted during the planned shutdown period was significantly higher than that under daily production conditions, especially the alkane concentration, which increased from 137.4 μg m−3 to 481.8 μg m−3. A source apportionment study was performed using a positive matrix factorization model based on VOC data collected during different sampling times. The contributions of petroleum refinery emissions increased from 63.8% during routine production to 79.4% during the shutdown period. In addition, carcinogenic and noncarcinogenic risk assessment revealed that workers could be under higher acute and chronic health risks during the shutdown and maintenance period than during the routine production of the refinery. The results also indicated that VOCs emitted during maintenance might have more influence on public health. Therefore, more attention should be paid to the emission characteristics and source apportionment of VOCs during planned shutdowns. This work provides valuable data that can help regulatory agencies formulate VOC control strategies during routine production and shutdown maintenance in petrochemical refineries.