Scotland made the most of their early dominance
Scotland 34 (31)
Tries: Di Rollo, Callam, Brown, Henderson
Cons: Paterson 4
Drop-goal: Di Rollo
Pacific Islanders 22 (5)
Tries: Caucaunibuca, Ratuvou 2, Leo
Scotland made it five consecutive wins at Murrayfield against a slow-starting Pacific Islanders side.
Marcus Di Rollo, Dave Callam, Kelly Brown and Andrew Henderson claimed first-half tries to put the Scots firmly in the driving seat.
But Rupeni Caucaunibuca, Kameli Ratuvou and Daniel Leo replied with scores to unsettle the home side.
Di Rollo added a drop-goal late in the game but the final try came from the visitors' Ratuvou.
Head coach Frank Hadden will be pleased with his side's first-half showing and the tidy kicking of Chris Paterson, who kicked all four conversions, but the Scots faded as the game went on.
And some of the sheen was taken off the victory with number eight Johnnie Beattie and scrum-half Chris Cusiter suffering early injuries.
The Scots opened the scoring after 10 minutes when Di Rollo skipped over for a simple try after Sean Lamont had been stopped by some frantic defending and the ball was quickly worked to a central position.
Beattie's replacement Callam then crashed over for his first international try after a wonderful long pass from Dan Parks found him speeding in at the corner.
Chris Paterson was in fine form with the boot
The visitors were simply wretched and things got worse when Epi Taione was yellow-carded for deliberately slowing play down despite repeated warnings.
The Scotland pack immediately took advantage, shoving forward from the resulting line-out, and Brown strolled through for the third try.
The fourth score came on the half-hour when the Pacific Islanders failed to deal with a surge from Simon Webster and Henderson was presented with a simple pick up just a few yards from the try-line.
Two minutes before the interval, the Islanders suddenly burst into life with a superb break that culminated with Tusi Pisi off-loading deftly to Caucaunibuca, who cruised over for the score.
The conversion was missed and Paterson had time to add a long-range penalty to stretch Scotland's lead at the break.
Scotland were caught out early in the second half when Lamont was caught napping deep in his own half and gifted a try to Ratuvou.
And the visitors were right back in the game when some impressive running saw Scotland carved open and Leo raced in for a brilliant try.
Both conversion attempts were right in front of the posts but Pisi made a horrible mess of his kicks to let Scotland off the hook.
The Scots lost their attacking rhythm in the second half and were guilty of a number of basic errors in promising positions. Hadden's side were doing all of the pressing but they looked vulnerable when the visitors broke with pace.
Scotland had to wait until four minutes from time to add their first points of the second period, with Di Rollo dinking over a smart drop-goal.
The visitors squared the try count in the final minute, with the impressive Ratuvou running on strongly to collect his own kick forward.
Scotland: Chris Paterson (capt); Simon Webster, Marcus Di Rollo, Andrew Henderson, Sean Lamont; Dan Parks, Chris Cusiter; Gavin Kerr, Dougie Hall, Euan Murray, Nathan Hines, Scott Murray, Simon Taylor, Kelly Brown, Johnnie Beattie.
Replacements: Ross Ford, Allan Jacobsen, Alastair Kellock, Dave Callam, Mike Blair, Phil Godman, Hugo Southwell.
Pacific Islanders: Norman Ligairi; Lome Fa'atau, Kameli Ratuvou, Elvis Seveali'i, Rupeni Caucaunibuca, Tusi Pisi, Moses Rauluni; Taufa'ao Felise, Mahonri Schwalger, Tevita Taumoepeau, Simon Raiwalui (capt), Daniel Leo, Viliami Vaki, Nili Latu, Epi Taione.
Replacements: Aleki Lutui, Justin Va'a, Ma'ama Molitika, Semo Sititi, Junior Poluleuligaga, Seremaia Bai, Seru Rabeni.