* ANC hails scandal-plagued president's decision to quit
Ramaphosa due to be elected president on Thursday
* Rand soars to near 3-year high against dollar (Adds new president to be appointed Thursday)
By Olivia Kumwenda-Mtambo
JOHANNESBURG, Feb 15 (Reuters) - South Africans awoke to a nation without Jacob Zuma as president for the first time in nine years on Thursday, after the scandal-plagued head of state reluctantly resigned on orders from the ruling African National Congress (ANC).
Acting president Cyril Ramaphosa is due to be confirmed as Zuma's permanent successor in a parliamentary vote at 2pm (1200 GMT), ANC chief whip Jackson Mthembu said.
The road back to prosperity and self-respect under Ramaphosa, who became ANC head in December, will be long and hard in a nation divided by race and inequality.
But Zuma's departure offers evidence of the strength of South Africa's institutions, from the courts to the media and the constitution. He resigned as president late on Wednesday after nine years in office.
The 75-year-old said in a 30-minute farewell address to the nation he disagreed with the way the ANC had pushed him towards an early exit after Ramaphosa replaced him as party president, but would accept its orders.
"Defiant in defeat" and "Going, Going, Gone" were some of the newspaper headlines that captured Zuma's reluctance to leave.
"South Africa's long nightmare is over," read the headline of an analysis on online news site Daily Maverick.
The foundation set up to guard the legacy of the late anti-apartheid icon Nelson Mandela said on Thursday Zuma's resignation brought to an end "a painful era for the country."
The ANC hailed Zuma's decision to resign.
Ramaphosa is due to be chosen by lawmakers as permanent president later in the day, a role he will fill until elections next year.
His appointment appears certain as the ANC holds a majority in parliament, though lawmakers will hold a secret ballot if he is not the sole candidate.
"The office of the chief justice has made itself available today to officiate in the business of electing a new president," Mthembu told a parliamentary committee meeting.
Speaker of parliament Baleke Mbete said an official letter of resignation from Zuma was "still on its way".
Ramaphosa's first state of the nation address was expected to take place on Friday. The speech had been scheduled to be delivered by Zuma last Thursday, but was postponed after pressure mounted for him to resign.
The rand currency, which has gained ground whenever Zuma hit political turbulence, soared to a near three-year high against the dollar on Zuma's resignation.
"One chapter in South Africa's political soap-opera has finally ended with the resignation last night of President Jacob Zuma," NKC African Economics analysts wrote in a note.
"It would be gratifying to see the dedication and purpose the ANC put into ridding itself of Zuma now be directed into rebuilding the economy, dealing with the corruption still residing in the ANC and improving its shoddy governance record."
Zuma's resignation came just hours after police raided the luxury home of the Gupta family, Indian-born billionaire allies of the former president who have been at the centre of corruption allegations against Zuma and his circle for years.
Zuma and the Guptas have always denied wrongdoing.
Police said on Wednesday three people were arrested during the raids on various properties in Johannesburg.
State broadcaster SABC said a Gupta family member was among those detained, while a senior judicial source said police were expected to arrest up to seven more people and that Gupta family members would be among them.
Police said the raid was in connection with a state-funded dairy farm, which prosecutors last month called a "scheme designed to defraud and steal".
The suspects were expected to appear in court on Thursday. (Additiona reporting by Ed Cropley in Johannesburg and Wendell Roelf in Cape Town; Editing by John Stonestreet)