The present invention discloses an oral preparation of dyclonine hydrochloride for the endoscope examination in upper gastrointestinal tract, which has the effects of anaesthetization and lubrication, and especially an oral preparation comprising dyclonine hydrochloride that has the advantages of avoiding the foam in the body cavity, preventing vomit, and offering a clear view. The preparation of the present invention comprises, as main ingredients, 0.2%-3% weight percent of dyclonine hydrochloride, 1%-12% weight percent of polyvinyl alcohol, 1%-12% weight percent of glycerin, 1%-12% weight percent of a defoaming agent, and a balance of a pharmaceutically acceptable adjuvant. The viscosity of the preparation is in a range of 30 to 300 mpa·s and the pH value is in a range of 2.0 to 8.0.