1. Export the Opportunities to which owner has to be changed using Data Loader.
2. While exporting select Opportunity ID(Id) and Owner ID(OwnerId) without fail.
3. Modify/Update the OwnerId with the User Id of the user to which Opportunities has to be assigned.
4. Map the Id and Owner Id fields and update the Opportunities using the Data Loader.