China has ordered relocation of all smelting plants in a southwestern city in five years after a spill of toxic cadmium in a river threatened drinking water supplies for millions of people.