Arsenal were handed an intriguing tie against former England boss Steve McClaren's FC Twente in the Champions League third qualifying round.
McClaren was appointed by the Dutch side in June this year, taking his first job since he was sacked by England in November 2007.
Liverpool have been drawn against Belgium's Standard Liege.
And Rangers will play the winner of the second-round match between Aalborg and Modrica if they can overcome Kaunas. Rangers drew 0-0 at Ibrox in their first leg against the Lithuanian side on Wednesday and will play the return leg next week
UEFA CHAMPIONS LEAGUE
Third qualifying round draw:
Anorthosis/Rapid Vienna v Olympiakos
Vitoria Guimaraes v IFK Gothenburg/Basel
Shakhtar Donetsk v Domzale/Dinamo Zagreb
Schalke 04 v Atletico Madrid
Aalborg/Modrica v RANGERS/Kaunas
Barcelona v Beitar Jerusalem/Wisla Krakow
Levski Sofia v Anderlecht/BATE
Standard Liege v LIVERPOOL
Inter Baku/Partizan v Fenerbahce/MTK Budapest
FC Twente v ARSENAL
Spartak Moscow v Drogheda/Dinamo Kiev
Juventus v Tampere/Artmedia
SK Brann/Ventspils v Marseille
Fiorentina v Slavia Prague
Galatasaray v Steaua Bucharest
Panathinaikos/Dinamo Tbilisi v Sheriff Tiraspol/Sparta Prague