As others have said, there are local codes, state regulations, fire codes, utility requirements etc.
As a rule of thumb, if there is more then 500gals of oil, you need to start checking for spill requirements. If less then 500gal, typically spill containment is not required. Something else to watch for is if in close proximity to a building, the building wall will require it to be 2 hour fire rated. Check the IBC or UBC whichever is in effect.