An analysis of the solar-activity effects in the upper atmosphere