* Positive news from Washington overtakes fears about N.Korea, hurricane
* U.S. shares, dollar rise, while gold retreats
* Oil prices rise as Hurricane Irma heads toward Florida (Updates with Wall Street close, other market changes)
NEW YORK, Sept 6 (Reuters) - U.S. shares rose on Wednesday and the dollar gained against the safe-haven Japanese yen as upbeat news out of Washington helped mitigate investors' concerns about North Korea's nuclear weapons tests and a major hurricane barreling towards Puerto Rico and Florida.
U.S. President Donald Trump and congressional leaders agreed to pass an extension of the debt limit until Dec. 15. The news also lifted the yield on benchmark 10-year U.S. Treasury notes after it had fallen to a near 10-month low at 2.054 percent.
Trump and legislators also plan to pass a government funding bill and disaster aid for Hurricane Harvey victims, Democratic leaders said.
The Federal Reserve's Beige Book survey showed that U.S. economic activity expanded at a modest to moderate pace in July and August, helping stocks extend their gains.
The Dow Jones Industrial Average rose 54.33 points, or 0.25 percent, to end at 21,807.64, the S&P 500 gained 7.69 points, or 0.31 percent, to 2,465.54 and the Nasdaq Composite added 17.74 points, or 0.28 percent, to 6,393.31.
As risk aversion wore off, gold retreated from its earlier rise. Spot gold dropped 0.3 percent to $1,333.81 an ounce. U.S. gold futures fell 0.42 percent to $1,338.90.
As measured against a basket of major currencies, the dollar turned positive after falling on news that Fed Vice Chairman Stanley Fischer will resign in October, months before his term was due to end.
"This means a sea change in the composition of the Fed, especially as it's not clear if Fed Chair (Janet) Yellen is going to get renominated. The composition of the Fed is going to look entirely different than it did just a couple of years ago," said Subadra Rajappa, head of U.S. rates strategy at Societe Generale in New York.
The Japanese yen weakened 0.46 percent versus the greenback at 109.33 per dollar.
The greenback hit a multi-year low against the Canadian dollar after the Bank of Canada surprised many by raising interest rates. It recovered slightly to stand at C$1.2228, down 1.17 percent, after hitting a low of C$1.2140.
In Europe, a meeting on Thursday of European Central Bank policymakers is expected to yield clues as to when they will begin to scale back monetary stimulus.
"A lot will depend on how (ECB President Mario) Draghi addresses the euro," said Commerzbank currency strategist Esther Reichelt in Frankfurt. "The question is whether he'll address it strongly enough for the market to react."
The pan-European FTSEurofirst 300 index rose 0.10 percent and MSCI's gauge of stocks across the globe gained 0.18 percent.
Even so, tensions remained high over North Korea's nuclear tests. Russian President Vladimir Putin said on Wednesday that resolving the crisis is impossible with sanctions and pressure alone.
In the Caribbean, dangerous Category 5 Hurricane Irma slammed across islands with pounding winds and raging surf en route to a possible landfall in Florida this weekend.
Oil prices rose as strong global refining margins and the reopening of U.S. Gulf Coast refineries provided a more bullish outlook after sharp drops due to Storm Harvey.
U.S. crude rose 0.97 percent to $49.13 per barrel and Brent was last at $54.20, up 1.54 percent.
For Reuters Live Markets blog on European and UK stock markets see reuters://realtime/verb=Open/url=http://emea1.apps.cp.extranet.thomsonreuters.bi z / c m s / ? p a g e I d = l i v e m a r k e t s
(Reporting by Hilary Russ in New York; Additional reporting by Karen Brettell, Richard Leong, Lewis Krauskopf and Sam Forgione in New York; Graphic by Marc Jones; Editing by Chizu Nomiyama and James Dalgleish)