Oracle’s quarterly profit blew past analysts’ estimates as the business software maker’s big push towards cloud-based products and services paid off.
The company’s shares (ORCL) were up 5% at $48.74 in after-market trading on Wednesday.
Oracle said cloud-computing and on-premise software business revenue rose 5.3% to $8.88 billion in the fourth quarter ended May 31. The business accounted for 78% of total revenue in 2016.
The company has been shifting to a cloud-based service as customers increasingly shun the costlier licensing model, a pattern also adopted by rivals such as Microsoft, SAP, and Amazon.com.
In an effort to strengthen its cloud business, Oracle signed a deal with AT&T in April, under which the U.S. telecom company agreed to move some of its large-scale databases to Oracle’s cloud platform.
The company had said it expected more of its “big customers” to migrate their databases and database applications to Oracle Cloud in the coming year.
For more about cloud computing, watch:
The company’s net income rose to $3.23 billion, or 76 cents per share, in the fourth quarter ended May 31, from $2.81 billion, or 66 cents per share, a year earlier.
Get Data Sheet, Fortune’s technology newsletter.
Excluding items, Oracle earned 89 cents per share.
The company reported an adjusted revenue of $10.94 billion.
Analysts on average had estimated a profit of 78 cents per share and a revenue of $10.45 billion, according to Thomson Reuters I/B/E/S.
Up to Wednesday’s close, Oracle’s shares had risen about 20% this year.