Oxidative phase of the pentose phosphate pathway. Glucose 6-phosphate is oxidized to 6-phosphoglucono-δ-lactone to generate one molecule of NADPH. The lactone product is hydrolyzed to 6-phosphogluconate, which is oxidatively decarboxylated to ribulose 5-phosphate with the generation of a second molecule of NADPH.