Abstract. Measurements of the dependence of the J/ψ production cross section on its kinematic variables as well as on the target atomic numbers for 920 GeV/c protons incident on different targets have been made with the HERA B detector. The large collected di-lepton sample allows to study the production ratio of ψ(2S) to J/ψ and of χ c to J/ψ. We also report on measurements of the bb and Υ production cross section.