The flow of a density stratified fluid over obstacles has been intensively explored from a natural and scientific point of view. This flow has been successfully governed by using the forced Korteweg–de Vries-Burgers equation that generated solitons in a viscous flow. This is done by adding the viscous term beyond the Korteweg–de Vries approximation. It is based on the conservation laws of the Korteweg–de Vries-Burgers equation for mass and energy, and assumes that the upstream wavetrains are composed of solitary waves. Our results show that the influence of viscosity plays a key role in determining the upstream solitary wave amplitude of the bore. A good comparison is obtained between the numerical and analytical solutions.