* LME/ShFE arb: http://tmsnrt.rs/2oQ5nm20 (Adds official prices)
JOHANNESBURG, Aug 29 (Reuters) - Copper rallied to its highest in nearly three years on Tuesday as inventories in London and Shanghai fell and the dollar sank after North Korea raised geopolitical tensions by launching a missile that flew over northern Japan.
Benchmark copper was bid 2.2 percent higher at $6,812 per tonne after failing to trade in official rings. It earlier touched $6,825, a level last seen in October 2014.
"The main input to copper is the continued weakness of the dollar which has been particularly aggressive today," said Ole Hansen, a commodities analyst at Saxo Bank, adding that falling stocks have provided underlying support over the last week.
A weaker greenback generally makes dollar-priced metals cheaper for non-U.S. investors, boosting demand.
NORTH KOREA: North Korea sharply escalated geopolitical tensions with the missile launch that drew a sharp reaction from Japanese Prime Minister Shinzo Abe.
LME STOCKS: Inventories in warehouses registered by both the London and Shanghai exchanges showed declines. On-warrant stocks - those not earmarked for removal - in London Metal Exchange (LME) shed 775 tonnes to 112,175 after fresh cancellations.
SHANGHAI STOCKS: Weekly copper stocks in warehouses registered by the Shanghai Futures Exchange declined by 8.2 percent to 187,444 tonnes <CU-STX-SGH>.
STOCKS: Risky assets such as stocks fell while safe-haven gold jumped over 1 percent as tensions between Washington and Pyongyang grew.
NICKEL: Three-month nickel on the London Metal Exchange was up 2.7 percent at $11,790 in official rings. At one point the contract rose to $11,840, the highest since Nov. 28, 2016.
The metal largely used to make stainless steel is up 18 percent this year in London mainly on the back of supply disruptions and higher steel prices.
"Nickel has supply issues that are still playing out and that's helping, particularly when we see steel prices going up too," said a commodities trader in Sydney.
GRASBERG PACT: Indonesia and Freeport-McMoRan Inc on Tuesday reached an agreement to allow the U.S. miner to keep operating its giant Grasberg copper and gold mine, though the timing and price of a 51 percent divestment in the mine still needs to be worked out.
TRUMP DECLINES CHINA PROPOSAL: U.S. President Donald Trump last month rejected a Chinese proposal to cut steel overcapacity, despite the endorsement of some of his top advisers, the Financial Times said, citing people familiar with the matter.
PRICES: Aluminium rose 1.6 percent to $2,103, lead added 2.8 percent to $2,390, tin gained 0.2 percent to $20,375, while zinc was bid up 1.6 percent to $3,113.
(Additional reporting by James Regan in Sydney; Editing by Adrian Croft and Mark Potter)