Involved in the degradation of galactose via the DeLey-Doudoroff pathway. Catalyzes the oxidation of galactose in the presence of NAD(+). Uses NAD(+) as a hydrogen acceptor more efficiently than NADP(+)