The present invention provides 2 agonists of somatostatin receptor subtype. The compound that disclosed logical formula (I) indicates (wherein all symbols have identical definition as noted in the discussion), its salt, its N- oxide or its solvate, or their prodrug is the low molecular weight compound with strong 2 agonist activity of somatostatin receptor subtype, and therefore can be administered in a simple manner, there is high stability and hypotoxicity. Therefore, the compounds of this invention prevents with what and/or treats growth hormone release inhibiting hormone related disease, such as acromegalia and Gastrointestinal Obstruction.本發明提供了生長抑素受體亞型2激動劑。所公開的通式(I)表示的化合物(其中所有的符號具有如說明書中所述相同的定義),其鹽、其N-氧化物或其溶劑合物,或它們的前藥是具有強生長抑素受體亞型2激動活性的低分子量化合物,並因此可以簡單方式進行給藥,具有高穩定性和低毒性。因此,本發明化合物用於預防和/或治療生長抑素相關疾病,例如肢端肥大症和胃腸道梗阻。