Dendrobium officinale is an important edible and medicinal plant, with the Dendrobium officinale polysaccharide (DOP) being its primary active constituent, known for its diverse biological activities. In this study, DOP was extracted and characterized for its structural properties. The potential of DOP to ameliorate gastric ulcers (GUs) was investigated using an acetic-acid-induced GU model in rats. The results demonstrated that DOP exerted a multifaceted protective effect against GU, mitigating the deleterious impact on food intake and body weight in rats. DOP exhibited its protective action by attenuating cellular damage attributed to oxidative stress and inflammatory reactions mediated by enhanced activities of SOD, GSH, and GSH-PX, coupled with a downregulation in the expression of pro-inflammatory cytokines, including IL-1β, IL-6, and TNF-α. Furthermore, DOP effectively inhibited apoptosis in gastric mucosa cells of acetic-acid-induced GU rat models and facilitated the self-repair of damaged tissues. Remarkably, the DOP-200 and DOP-400 groups outperformed omeprazole in reducing the expression of IL-6 and malondialdehyde (MDA) in tissues, as well as IL-1β, IL-6, and TNF-α in serum. These groups also exhibited an improved expression of SOD in tissues and SOD, GSH, and GSH-PX in serum. A Western blot analysis of gastric mucosa demonstrated that the DOP-200 and DOP-400 groups significantly reduced the expression of NF-κBp65, phosphorylated NF-κBp65, FoxO3a, and Bim. The observed antagonism to GU appeared to be associated with the NF-κB cell pathway. Additionally, qRT-PCR results indicate that DOP reduced the mRNA transcription levels of IL-6, and TNF-α, which shows that the healing of GU is related to the reduction in the inflammatory reaction by DOP. However, the expression of EGF and VEGF decreased, suggesting that the mechanism of DOP inhibiting GU may not be directly related to EGF and VEGF, or there is an uncertain competitive relationship between them, so further research is needed.