Skip to main content

> cat ./posts/from-oracle-java-stored-procedures-to-ai-the-deprecation-cycle.md

[terminal_mode]
cat: Software Engineering|date: 2026-11-21|rt: 9 min

From Java Stored Procedures in Oracle DB to LLMs: What 20 Years of Deprecation Taught Me About Technology Waves

Early in my career, deploying Java directly inside an Oracle database seemed like the pinnacle of performance. Here is what its inevitable obsolescence taught me about engineering hype, operational reality, and whether today's AI architectures will survive tomorrow.

#software-engineering#architecture#legacy-systems#ai#career-reflections

Early in my software engineering career, I worked on an architecture that was, at the time, marketed as the pinnacle of enterprise power: deploying Java Stored Procedures directly inside an Oracle Database JVM (Aurora/OJVM).

The pitch from vendors was intoxicating: "Why endure the network latency of round-tripping data to an application server? Write your business logic in Java, load the compiled bytecodes directly into the database catalog, and execute complex workflows millimeters away from the disk blocks."

We felt like wizards. We wrote Java classes, compiled them with loadjava, mapped them to PL/SQL wrappers, and executed them right next to the tablespace. It promised the holy grail: maximum performance, expressive object-oriented logic, and zero network tax.

A few years later, reality hit:

  • Database CPU licenses were orders of magnitude more expensive than commodity application server compute.
  • Debugging memory leaks or deadlocks inside a database-embedded JVM was an operational nightmare.
  • Version control, automated CI/CD pipelines, and horizontal scaling became virtually impossible when your application logic was entangled with physical database storage.

Quietly, inevitably, the industry moved on. The pattern was deprecated. Application servers and microservices won; databases went back to being databases.

That was the first enterprise technology I mastered that became obsolete. It was not the last.


The Four Stages of Architectural Hype

Over twenty years of building production software—from Oracle Java Stored Procedures to J2EE EJBs, SOAP/XML RPCs, CORBA, monolithic ESBs, and now generative AI—I have watched every major paradigm shift pass through the same four distinct phases:

  1. The Inversion of Separation of Concerns: A new paradigm arrives claiming previous architectural boundaries (compute vs. storage, presentation vs. logic) are outdated relics.
  2. The Era of Extreme Centralization: Engineers bundle everything into the new hammer because "it solves every problem seamlessly."
  3. The Operational Hangover: The hidden operational costs emerge—debugging opacity, vendor lock-in, unscalable licensing models, and maintenance friction.
  4. The Pragmatic Correction: The technology finds its actual, unglamorous sweet spot, while the bloated layers get pruned and deprecated.

Will the AI We Build Today Be Deprecated Tomorrow?

Right now, the software industry is caught in the exact same gravitational pull with Large Language Models that we experienced with embedded database logic decades ago.

Every engineering team is:

  • Shoving unstructured prompt evaluation into synchronous request-response loops.
  • Writing brittle prompt chains where a simple state machine or deterministic rule engine should live.
  • Building complex "agentic memory frameworks" that are often just glorified vector similarity searches over dirty data.
  • Paying hyperscaler API fees that mimic the exorbitant Oracle per-core enterprise licenses of the 2000s.

Let’s be honest as engineers: much of the "AI infrastructure" being hacked together today will be deprecated within three to five years.

  • Massive autoregressive models invoked for simple classification will look as wasteful as running a full JVM inside a relational database engine.
  • 50-step prompt-chained agents running without deterministic bounded verification will be remembered like CORBA or SOAP: over-engineered distributed complexity that collapsed under its own operational weight.
  • Proprietary closed-source API dependencies will be replaced by lean, specialized models (System One decision engines, small task-specific fine-tunes, and neuro-symbolic rule layers) running directly on commodity local compute.

What Actually Survives the Deprecation Cycle?

If tools, runtimes, and models are ephemeral, what remains permanent for a software engineer?

  1. Clear Boundaries and Clean Contracts: Whether you are bridging Java to PL/SQL or an LLM to an SQL database, systems fail when contracts are ambiguous. Typing, explicit schemas, and boundary isolation always outlive the framework of the day.
  2. Deterministic Verification: You cannot unit-test hope. If an architecture cannot be deterministically validated, reproduced in a local staging environment, and bounded by hard invariants, it is a liability.
  3. Data Quality Over Execution Hype: In the 2000s, messy relational models broke our Java stored procedures. Today, dirty documents and untyped state break our RAG pipelines. Clean data and explicit semantics remain the only enduring moat.
  4. Economics Dictate Architecture: Technology doesn't get deprecated because it doesn't work; it gets deprecated because the unit economics of maintaining, scaling, and debugging it become unsustainable compared to simpler alternatives.

Conclusion

Looking back at Java Stored Procedures inside Oracle DB doesn't make me cynical—it makes me grounded.

Artificial intelligence is transformative, but it is not immune to the fundamental laws of systems engineering. Today's "cutting-edge prompt architecture" will almost certainly be tomorrow's legacy technical debt.

As engineers, our job isn't to fall in love with the hammer of the decade. Our job is to design systems with enough discipline, modularity, and humility that when tomorrow's deprecation notice inevitably arrives, our software—and our architectures—survive the tide.

Share this post