A somatostatin receptor subtype 2 agonist represented by the general formula (I):wherein all symbols have the same meanings as described in the specification, or a salt thereof, which can be easily administered and can alleviate pain accompanied by the therapy of patients.