The Dow posted its largest one-day percentage gain in three months on Tuesday, boosted by reports of an aid plan for heavily indebted Greece.

A senior German ruling coalition source said euro zone governments have decided in principle to help Greece, which calmed investors worried about a threat to global economic stability.

There's a relief that something can be worked out to prevent a collapse of their bond market, said Ben Halliburton, chief investment officer at Tradition Capital Management in

Summit, New Jersey. The question is, will the other countries be willing to step in.

Gains on Wall Street were broad-based, but shares of commodity-related companies shot higher as a decline in the dollar lifted prices of oil and gold. Shares of Chevron gained 1.7 percent to $71.31.

The Dow Jones industrial average <.DJI> rose 150.25 points, or 1.52 percent, to 10,058.64. The Standard & Poor's 500 Index <.SPX> added 13.78 points, or 1.30 percent, to 1,070.52. The Nasdaq Composite Index <.IXIC> gained 24.82 points, or 1.17 percent, to 2,150.87.

Concerns over rising debt in Greece and some other euro zone countries have sapped confidence in equity markets in recent weeks, with the Dow average closing below 10,000 on Monday for the first time since November.

Industrial shares also jumped after Morgan Stanley raised its rating on the sector, saying share prices should catch up to an improving business environment. Caterpillar Inc was up 5.4 percent at $53.53.

The U.S. dollar fell against the euro, while U.S. Treasuries declined. Oil futures gained $1.86 to $73.75 per barrel.

Shares of Coca-Cola Co rose 2.6 percent to $54.01 after the soft-drink company reported earnings.

(Editing by Kenneth Barry)