Stocks rose on Friday in choppy trade as quarterly results from Oracle and Research In Motion lifted the Nasdaq more than 1 percent, but the U.S. dollar's climb curbed gains in both the Dow and the S&P 500.

The Nasdaq was led higher by Oracle Corp shares, which jumped 6.4 percent to $24.34, and the U.S.-listed stock of Research In Motion Inc , which surged 10.3 percent to $69.99.

Despite the lift from these earnings-related stories, the robust dollar sapped much of the broader market's strength.

The U.S. dollar index <.DXY> climbed as much as 0.6 percent, but pared gains late in the session, easing some of the selling pressure on stocks. For the day, the U.S. dollar index ended just marginally higher -- up 0.03 percent.

Shares of multinational companies suffered from the greenback's rise. Heavy equipment maker Caterpillar Inc fell 0.6 percent to $57.19, while plane maker Boeing Co was the biggest drag on the Dow, off 1.9 percent at $53.44.

Geopolitical concerns supported the flight to the U.S. dollar following reports that Iranian troops had entered Iraqi territory and raised the Iranian flag at an oilfield whose ownership is disputed by Iran.

If there is tension developing in the Middle East, that would positive for the dollar because that would bring flight to safety ... that, in turn, could be negative for the equities markets, said Paul Mendelsohn, chief investment strategist at Windham Financial Services in Charlotte, Vermont.

A strong U.S. dollar forces investors who have bet on a decline in the greenback to cover their short dollar positions by selling equities or other assets.

The Dow Jones industrial average <.DJI> added 20.63 points, or 0.20 percent, to 10,328.89. The Standard & Poor's 500 Index <.SPX> gained 6.39 points, or 0.58 percent, to 1,102.47. The Nasdaq Composite Index <.IXIC> climbed 31.64 points, or 1.45 percent, to 2,211.69.

DOW AND S&P 500 END WEEK LOWER

For the week, the Dow fell 1.3 percent, the S&P 500 shed 0.3 percent and the Nasdaq rose 1 percent.

The declines snapped a two-week winning streak for the Dow and a three-week series of gains for the S&P 500.

Trading was choppy as Friday marked the expiration of December options and futures, a convergence known as quadruple witching that often means increased volatility as big investors adjust or exercise derivatives positions.

Motorola Inc shares jumped 5.2 percent to $8.53 after sources familiar with the matter said the mobile phone maker's set-top box unit has generated a lot of private equity interest, with a number of major buyout firms putting in initial bids this week.

In addition, the market was set to see an adjustment to the S&P 500. Visa Inc , up 2.2 percent at $88.97, is among companies that will be the newest additions to the benchmark index after the close.

Volume was extremely heavy on the New York Stock Exchange, with 3.16 billion shares changing hands -- more than double last year's estimated daily average of 1.49 billion. On the Nasdaq, about 2.91 billion shares traded, well above last year's daily average of 2.28 billion.

The regular session's volume for the New York Stock Exchange topped the previous record of 3 billion shares set on Sept 19, 2008.

Advancing stocks outnumbered declining ones on the NYSE by a ratio of 3 to 2, while on the Nasdaq, 16 stocks rose for every 11 that fell.

(Editing by Jan Paschal)