Fish require oxygen to survive. The time they can go without it depends on species, water temperature, acclimation, and health.
Some species tolerate low oxygen better than others. Warm water holds less dissolved oxygen. Acclimated and healthy fish handle low oxygen better. In general, most fish survive from a few minutes to several hours without oxygen. Signs of stress include rapid gill movement and gasping at the surface. Prolonged oxygen deprivation leads to unconsciousness and death.
Maintain adequate oxygen through circulation, aeration, and monitoring, especially in heavily stocked tanks.