New Delhi: Shipping ministry on Tuesday asked all ports to prepare contingency plans to deal with oil spills in future.