Aircraft Equipment Problem Critical
Flight Crew Landed in Emergency Condition; Flight Crew Inflight Shutdown; Flight Crew Diverted; General Declared Emergency
Aircraft
On climbout passing about FL260 received ECAM for COMPRESSOR VANE ENGINE 2.  First Officer continued to fly aircraft and handle radios while Captain handled ECAM and pulled out QRH.  The First Officer notified ATC of request to maintain FL290 while coordinating future plans with possible diversion to ZZZ.  ECAM and QRH instructed to disconnect Autothrottles and minimize throttle movements.  Captain called Dispatch and Maintenance Control to discuss problem.  Aircraft was still north of ZZZ about 120 NM when event occurred.  Captain's discussion with Dispatch and Maintenance Control included previous maintenance plans to change the engine later that night in a maintenance base.  Maintenance Control also informed crew of only 1 Maintenance Technician at the destination.  Crew discussion was whether to continue to destination or divert to ZZZ.  After considering all information crew; elected to divert.  First Officer notified ATC and aircraft was given clearance direct to a fix for the arrival to ZZZ.  A turn was begun direct to the fix and a descent began to FL270.  Further clearance was given to FL100 and 250 knots.  On descent with thrust lever 2 approach Idle; Compressor Stall occurred and subsequently Engine 2 was shut down and ECAM completed.  Emergency was declared and approach was continued followed by an uneventful landing.  Aircraft exited the runway and stopped while fire trucks and firemen approached aircraft for inspection.  Inspection showed some fluid leaking from number 2 Engine; with no signs of fire and no excessive temperatures.  Aircraft was cleared to taxi to gate.
On climbout passing FL260; ECAM ENG 2 COMPRESSOR VANE.  Followed ECAM; leveled at FL290.  Engine parameters normal.  Coordination with both Dispatch and Maintenance Control.  Initial thought was to divert to ZZZ.  After initial discussion with Maintenance Control; we looked at continuing to destination.  When told of my aircraft refusal out of destination airport; coordination to divert to ZZZ accomplished and executed.  On arrival when thrust was reduced toward idle; Engine 2 COMPRESSOR stalled.  ECAM commanded Engine 2 shutdown.  Declared emergency with ATC.  Continued with arrival and approach.  No issues through approach; landing; rollout; and taxi.  Met and inspected by emergency personnel.  Cleared to taxi to gate.  Normal shutdown and deplaning.
A320 flight crew on climbout passing FL260 reports receiving ECAM for COMPRESSOR VANE ENGINE 2.  The company wants the crew to continue to destination; then on to maintenance.  The Captain declined and the crew diverted to a suitable alternate.  During descent the engine compressor stalls and the engine is shut down. A single engine landing ensues.