Got $5,000? 2 Tech Stocks to Buy and Hold for the Long Term.

Source Motley_fool

Key Points

  • Global IT spending is expected to reach $5.43 trillion in 2025.

  • Oracle is experiencing robust demand for its cloud services from prominent AI companies, including OpenAI, Meta, and Nvidia.

  • Micron is benefiting from the supply-demand mismatch for its memory chips.

  • 10 stocks we like better than Oracle ›

The role of the technology sector in the global economy is expanding rapidly. According to the researcher Gartner, global spending on information technology (IT) is estimated to reach $5.43 trillion in 2025.

The rapid adoption of artificial intelligence (AI) worldwide is expected to drive a significant portion of this spending. The tech-heavy Nasdaq-100 index is up almost 17% so far, driven mainly by AI-powered giants.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »

Several technology leaders are building a competitive moat in areas like semiconductors and cloud computing. In case you have $5,000 not required to pay bills or for contingencies, then investing in one or both of these stocks can pay rich returns in the long run.

1. Oracle

Over the last few years, Oracle (NYSE: ORCL) has evolved from a database specialist to a leading AI-driven cloud infrastructure company. The company's cloud infrastructure is now powering complex AI workloads for several prominent companies, including OpenAI, Meta Platforms, Nvidia, and Advanced Micro Devices. Its large-scale data centers are proving faster and cheaper for training huge AI models.

And by being the largest custodian of high-value private data globally, Oracle is also well positioned to capitalize on the growing opportunity in AI inference (real-time deployment of AI models). The company uses vectorization to store huge amounts of data in its AI databases, which all prominent large language models easily understand.

And by enabling the connection of all of its clients' data sources with large language models inside the cloud, Oracle allows clients to leverage advanced AI reasoning without compromising on the safety and security of their private data.

Cloud infrastructure revenue surged 54% year over year to $3.3 billion in the first quarter of fiscal 2026 (ending Aug. 31). Management now expects the business to see revenue soar 77% year over year to $18 billion in fiscal 2026 and scale up rapidly toward $32 billion by 2027.

These are achievable targets, especially after the company signed a $300 billion contract with OpenAI for providing computing capacity over the next five years. Oracle's $455 billion backlog at the end of the first quarter will continue to drive up its overall revenue for the next few years.

The stock is trading at 41.5 times forward earnings, which is not a particularly cheap valuation. And it carries a huge $91.3 billion debt, which will increase due to its $18 billion bond issuance in September 2025. However, with demand for Oracle's cloud services far outpacing supply and its crucial role as an AI infrastructure provider, the company can continue to grow its share price despite the headwinds.

2. Micron

Micron Technology (NASDAQ: MU) is a crucial supplier of memory and storage for building global AI infrastructure. In the fourth quarter of fiscal 2025 (ending Aug. 28), the company's revenue soared 46% year over year to $11.3 billion, while adjusted earnings per share surged 156.8% year over year to $3.03. The company's revenue also jumped 49% year over year to $37.4 billion, and gross margins rose by 17 percentage points to 41% in fiscal 2025.

Micron's data center segment has been the key growth catalyst, accounting for 56% of total revenue and a gross margin of 52% in fiscal 2025.

A major contributor to this growth was the company's high-bandwidth memory (HBM) products and advanced DRAM offerings, which together generated $10 billion in revenue in fiscal 2025. HBM revenue alone reached $2 billion in the fourth quarter, translating into an annual run rate of almost $8 billion.

Demand is especially robust for the HBM third-generation extended (HBM3E) products, because its faster data movement and lower latency are crucial for AI workloads. The company has already secured pricing agreements for the majority of its HBM3E supply for most of the calendar year 2026.

HBM's share is expected to be in line with DRAM's market share in the third quarter of calendar year 2025. These factors highlight the strong demand and revenue visibility for the HBM in the coming months.

And the company has begun sampling the even faster and power-efficient fourth-generation high-bandwidth memory (HBM4) products. Micron is in position to benefit from the next wave of AI-driven demand.

It expects the supply of DRAM and NAND to fall short of demand in calendar year 2025. Besides AI servers, demand for memory and storage has also increased in PCs, smartphones, and automobiles. This mismatch is expected to strengthen prices, which in turn will help boost the company's revenue and margin.

Management has also provided strong guidance for the first quarter of fiscal 2026, which includes $12.2 billion to $12.8 billion in revenue, 50.5% to 52.5% gross margin, and $3.60 to $3.80 in adjusted earnings per share.

Despite these secular tailwinds and robust financials, the stock trades at 10.5 times forward earnings, significantly lower than the valuation multiples of many top-notch AI infrastructure players.

Hence, with Wall Street still valuing the company mostly like a cyclical memory player, it can be a brilliant pick in 2025.

Should you invest $1,000 in Oracle right now?

Before you buy stock in Oracle, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Oracle wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $626,942!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,157,870!*

Now, it’s worth noting Stock Advisor’s total average return is 1,063% — a market-crushing outperformance compared to 191% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of September 29, 2025

Manali Pradhan has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Advanced Micro Devices, Meta Platforms, Nvidia, and Oracle. The Motley Fool recommends Gartner. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Samsung Electronics Forecasts Stronger-Than-Expected Q3 Profit on AI Demand Samsung forecasts Q3 profit of 12.1 trillion won, boosted by strong AI chip demand.
Author  Mitrade
Oct 14, Tue
Samsung forecasts Q3 profit of 12.1 trillion won, boosted by strong AI chip demand.
placeholder
Dollar Gains as US-China Trade Tensions Ease The U.S. dollar remained steady on Tuesday following a shift in President Donald Trump’s harsh stance on tariffs against China.
Author  Mitrade
Oct 14, Tue
The U.S. dollar remained steady on Tuesday following a shift in President Donald Trump’s harsh stance on tariffs against China.
placeholder
Asian Stocks Mixed as Commodities Pause and Yen Draws AttentionAsian equity markets struggled to close the week on a weak note Friday, influenced by ongoing losses on Wall Street that extended into early Asian trading.
Author  Mitrade
Oct 10, Fri
Asian equity markets struggled to close the week on a weak note Friday, influenced by ongoing losses on Wall Street that extended into early Asian trading.
placeholder
Oil Prices Hold Steady Amid Gaza Ceasefire and US Sanctions Oil prices held steady in early Asian trading on Friday following the announcement of a ceasefire between Israel and Hamas.
Author  Mitrade
Oct 10, Fri
Oil prices held steady in early Asian trading on Friday following the announcement of a ceasefire between Israel and Hamas.
placeholder
Bitcoin drops below $110K ahead of $22B options expiry; altcoins tumbleBitcoin fell below the $110,000 mark on Friday, heading for a steep weekly loss as nearly $22 billion in cryptocurrency options were set to expire. The drop also comes as traders await key U.S. inflation data that could influence the Federal Reserve’s policy outlook.
Author  Mitrade
Sept 26, Fri
Bitcoin fell below the $110,000 mark on Friday, heading for a steep weekly loss as nearly $22 billion in cryptocurrency options were set to expire. The drop also comes as traders await key U.S. inflation data that could influence the Federal Reserve’s policy outlook.
goTop
quote