Catalyzes the reversible interconversion of L- and D-proline. Plays an important role in the regulation of intra- and extracellular amino acid pools, allowing the bacterium to profit from host precursors and enzymatic pathways. Strong B-cell mitogen. L-proline = D-proline Homodimer. Belongs to the proline racemase family.