Chamara Kapugedera scored a composed 67 and shared an unbeaten 95-run partnership with Thilan Samaraweera on Saturday to guide Sri Lanka to a six-wicket win in the second limited-over match against Pakistan.
The victory gave the host team a 2-0 lead in the five-match series.
Chasing a modest 169 to win, Sri Lanka looked shaky at 74-4 when the Kapugedera and Samaraweera paired to take their side home without further damage.
Kapugedara faced 97 deliveries for his runs, hitting eight fours and a six while Samaraweera faced 69 balls for his 38, hitting two boundaries.
Sri Lanka lost Upul Tharanga early for 10 runs when the left-hander was caught at first slip by Nasir Jamshed off the bowling of Mohammad Aamer.
Sanath Jayasuriya made 30 in 33 balls with five boundaries and would be relieved that Sri Lanka got through despite him running out his captain Kumar Sangakkara early in the innings. He called Sangakkara for a run after pushing Abdul Razzaq to short mid-off, but after the non-striker having sprinted almost half way through the pitch, he sent him back only to see him falling short.
Two balls later, Jayasuriya departed when he was caught by Umar Akmal at deep backward of point to give Razzaq a wicket. Mahela Jayawardene mistimed legspinner Shahid Afridi and was caught at mid-wicket by captain Younis Khan to leave his side 74-4. Earlier Sri Lanka's left-arm seamer Thilan Thushara grabbed three wickets as Pakistan was bowled out for 168 in its innings. Asked to bat first, Pakistan's poor form with the bat in their winless tour continued as the hosts came up with a disciplined effort on the field.
Seam bowler Nuwan Kulasekera struck first ball of the match when he had opener Jamshed caught at slip by Jayawardene. Thushara came in as first change in the sixth over and dismissed Kamran Akmal (13) when Samaraweera took a good low catch at first slip.
In his next over Thushara claimed the wicket of Shoaib Malik for a duck when the batsman was ruled leg before wicket with the total on 21.
Younis and debutant Umar Akmal tried to rescue their side taking the total beyond 50, but seam bowler Anjelo Mathews accounted for Akmal when he edged a ball to wicketkeeper Sangakkara. After the seamers had done the early damage, the off-spin of Muttiah Muralitharan was introduced in the 24th over and he further tightened the grip on the tourists, accounting for Younis (23) and Afridi (7).
The tourists were spared a more embarrassing total by an impressive 40-run final-wicket partnership between Aamer and Saeed Ajmal. It was the best stand for the last wicket in ODIs between Pakistan and Sri Lanka, erasing the previous best of 27 by Moin Khan and Waqar Younis in Sharjah in 1997.
Aamer top-scored for the tourists with an unbeaten 24 in 32 balls with three boundaries.
Sri Lanka retained the same side that beat the tourists by 36 runs in the series opener on Thursday.
Pakistan dropped vice-captain Misbah-ul-Haq and Mohammad Yousuf for the game bringing in Jamshed and Akmal.