Prostaglandin-endoperoxide synthase 2 (PTGS2), a common biological macromolecule, is pivotal for innate immunity and pathogen recognition. In this study, we identified and characterized a CcPTGS2a-like gene in the common carp (Cyprinus carpio) with an open reading frame (ORF) of 1821 bp and epidermal growth factor and peroxidase domains. Our multiple sequence analysis revealed high homology between the amino acid sequence of CcPTGS2a-like and those of its homologs in other fish. CcPTGS2a-like mRNA and protein expressions were significantly upregulated in the spleen, head kidney, liver, and gill tissues upon exposure to Aeromonas hydrophila stimulation. CcPTGS2a-like protein recognized the conserved bacterial surface components and exhibited detectable bacterial binding activity. CcPTGS2a-like overexpression before exposure to A. hydrophila notably enhanced the survival rate of common carp, concomitant with decreased bacterial burden. The NF-κB/ERK signaling pathway initiated the immune response in common carp upon infection with A. hydrophila. CcPTGS2a-like overexpression or interference in the head kidney and Epithelioma papulosum cyprinid cells could modulate the p–NF–κB (p-p-65), p-IκBα, and p-ERK1/2 levels as well as the IL-1β and IL-6 mRNA expression. These results indicated potential CcPTGS2a-like involvement in the immune response of the common carp to bacterial infections through the NF-κB/ERK signaling pathway.