This was a trend in 2002. PSP (PLSQL Server Pages), just like ASP and PHP. <a href="https://oracle-base.com/articles/9i/plsql-server-pages-9i" rel="nofollow">https://oracle-base.com/articles/9i/plsql-server-pages-9i</a><p>Many large Banks (including Bank of New York where I worked in) and ERPs have stored procedures as their life and blood, have invested and built huge tooling over it – namespacing, dependency tracing of who's using what, monitoring, etc. It's excellent at having a tightly integrated, closed system where the Database is the source for authorization, module ownership, etc.<p>But there were reasons why it was not successful:<p>* Severe vendor restrictions. e.g. For a long time, Oracle could not do distributed compile-time PL/SQL checks. If you changed a function definition, other procedures that depended on it would break. But if you change a <i>procedure's</i> definition, it wouldn't tell you anything until you deploy it at runtime and something somewhere will fail, or recompile every other procedure. I don't know if it's fixed yet.<p>* Testing, or the severe lack of tooling that we have taken for granted – code coverage, easy local machine unit tests, etc<p>* Lack of modules (availability of an ecosystem or community of modules to solve recurring problems), and the subsequent dependency management and versioning overhead that comes with it<p>* Debugging, i.e. putting breakpoints, remote debugging, logging, good exception handling, etc<p>* Change management, graceful rollouts, rollbacks, etc. There is no so-called "Router" for stored procedures, they're all tightly coupled with each other, so there is no easy way to rollout and rollback new versions quickly without recompiling each time<p>* Connection limits. There is a tradeoff on a database being good at all the above – and how many concurrent connections it can support. It was impossible to simply "pass through" entire web traffic over to the underlying connection, without investing in quite heavy tooling<p>Overall, if you already have put all your eggs and tooling into one giant, well designed, well governed database – then PSPs are a natural evolution forward.