Toronto stocks ended sharply higher for a second straight session on Thursday, as shares of energy companies got a big boost from a surge in oil prices, while mining issues also rose.

The S&P/TSX composite index soared 142.47 points, or 1%, at 14,001.99, after a 135.19-point rise the previous session.

Nine of the 10 TSX main groups were higher, led by a 2.6% boost in the influential energy group and a 1.3% rise in the materials sector.

Energy issues rose as July crude climbed 2.1% to US$67.65 a barrel on rising tensions in the Middle East and concerns about U.S. oil supplies.

Canadian Natural Resources shares jumped $3.21, or 4.5%, to $73.89, while EnCana was up $2.22, or 3.3%, at $69.28.

Materials shares rose on firm in gold and base metals prices. Goldcorp climbed 46¢, or 1.8%, to $26.20, while Teck Cominco was up $1.15, or 2.4%, at $49.

On the downside, financials slumped 0.2%. Shares of TD Bank slipped 54¢, or 0.7%, to $72.64, while Manulife Financial shed 15¢, or 0.4%, at $39.10.

The junior S&P/TSX Venture composite index rose 36.06 points, or 1.15%, to finish at 3,162.95.

The Canadian dollar was off 0.19 cent to US93.57¢.

In New York, U.S. stocks rose as the gain in oil prices boosted shares of Exxon Mobil, while data showing moderate inflation lifted optimism about the economy.

The Dow Jones industrial average gained 71.38 points, or 0.53%, to end at 13,553.73. The S&P 500 added 7.30 points, or 0.48%, to finish at 1,522.97. The Nasdaq composite index advanced 17.10 points, or 0.66%, to 2,599.41.

A U.S. government report showed a modest rise in the May Producer Price Index excluding food and energy costs. The data supported the notion inflation is in check even as the economy grows.