The S&P energy sector <.GSPE>, up 1 percent, led the market's advance, with Chevron up 2 percent at $79.21 a day after it said its refining and marketing arm would return to profit in the first quarter, while earnings from oil and gas production would grow.
ConocoPhillips and Exxon Mobil Corp both rose more than 1.4 percent.
Data showed U.S. wholesale inventories rose more than expected in February and sales at wholesalers reached their highest level in 16 months, brightening prospects for first-quarter economic and earnings growth.
Seems like energy shares are catching up with oil's (recent) rise above $85 per barrel. News on Chevron having a positive outlook is lending some support, said Alan Gayle, senior investment strategist at RidgeWorth Investments in Richmond, Virginia.
The inventory data suggests businesses are still in the process of normalizing output levels, which could set the stage for some reasonable earnings, he said.
The Dow Jones industrial average <.DJI> gained 31.97 points, or 0.29 percent, to 10,959.04. The Standard & Poor's 500 Index <.SPX> added 3.52 points, or 0.30 percent, to 1,189.96. The Nasdaq Composite Index <.IXIC> rose 8.58 points, or 0.35 percent, to 2,445.39.
The three major U.S. stock indexes were on track for a sixth straight week of gains -- a positive run not seen since stocks rebounded from more than 12-year lows in March 2009.
Also boosting the energy sector, Atlas Energy shares jumped nearly 17 percent to $37.09 after Indian energy company Reliance Industries agreed to pay $1.7 billion for a stake in an Atlas' shale project to provide natural gas.
Shares of J.C. Penney Co Inc , the big U.S. department store operator, rose 1.7 percent to $31.50 after Goldman Sachs added the stock to a list of recommended buys.
Palm Inc shares surged 11 percent to $5.16, capping a volatile week in which the smart phone maker's stock has seesawed on options market chatter and takeover rumors.
Worries about Greece's debt problems, which have weighed on stocks for weeks, eased after a European Union source said policymakers had reached an agreement on terms of possible emergency loans for Athens. The U.S. dollar index <.DXY> slipped 0.6 percent, while the euro rose nearly 1 percent. Earlier, stocks pared gains on news that Fitch downgraded Greece's debt rating.
(Reporting by Rodrigo Campos; Editing by Kenneth Barry)

![Miss USA 2013: Meet The 51 Contestants Competing In The Beauty Pageant [PHOTOS] Miss USA 2013: Meet The 51 Contestants Competing In The Beauty Pageant [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2013/06/13/miss-usa-contestants_14.jpg)


![Stephen Hester Ousted As Royal Bank Of Scotland (RBS) CEO Following Bank's Talks With UK Treasury [VIDEO] Stephen Hester Ousted As Royal Bank Of Scotland (RBS) CEO Following Bank's Talks With UK Treasury [VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/12/rtr3dngo.jpg)
![Hong Kong House Prices Shoot Up, Greek House Prices Plummet [MAP] Hong Kong House Prices Shoot Up, Greek House Prices Plummet [MAP]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/knight-rank-house-prices.png)


![Turkish Riot Police Enter Taksim Square: Riot Police Clash With Protesters In Attempt To Break Up Protests [PHOTOS] Turkish Riot Police Enter Taksim Square: Riot Police Clash With Protesters In Attempt To Break Up Protests [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/protester-taking-cover.jpg)
![Flooding In Europe: Floods In Germany, Austria, The Czech Republic, Hungary And Slovakia In Pictures [PHOTOS] Flooding In Europe: Floods In Germany, Austria, The Czech Republic, Hungary And Slovakia In Pictures [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/flooding-europe-billboard.jpg)
![Robin Thicke Credits Justin Timberlake For Success Of Chart Topping Single 'Blurred Lines' [VIDEO] Robin Thicke Credits Justin Timberlake For Success Of Chart Topping Single 'Blurred Lines' [VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2011/11/21/193689-singer-robin-thicke-poses-backstage-at-the-2011-american-music-awards-.jpg)






![Fed Chairman Ben Bernanke Press Conference, FOMC Decision: Live Blog [VIDEO] Fed Chairman Ben Bernanke Press Conference, FOMC Decision: Live Blog [VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/19/bernanke-news-conference-19june2013.jpg)



![Apple iOS 7: New Features Dazzle At WWDC 2013, Designed To 'Bring Order To Complexity' [PHOTOS] Apple iOS 7: New Features Dazzle At WWDC 2013, Designed To 'Bring Order To Complexity' [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/10/iphone5-ios-7.jpg)


![Unpaid Intern Lawsuit Against Atlantic Records And Warner Music Group Tests Legality Of Music Industry Internships [EXCLUSIVE] Unpaid Intern Lawsuit Against Atlantic Records And Warner Music Group Tests Legality Of Music Industry Internships [EXCLUSIVE]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/17/wmg.jpg)




Like or Follow us for updates on the biggest stories!