In this randomized-controlled, cross-over trial the investigators test the effect of long-term oxygen therapy (> 16h/day) given for 5 weeks with a wash-out period between phases of 2 weeks on exercise performance and quality of life and many physiological parameters in patients with pulmonary arterial and chronic thromboembolic pulmonary hypertension.