Connect a FastAPI App to Oracle AI Database — Thin Mode + Wallet, a Real Pool, Step by Step
Your FastAPI app is useless without a database — and connecting Python to Oracle used to mean installing a heavy client and hunting for config files. Not anymore. One pip install, a small key file called a wallet, and a real connection pool. By the end of this post your app will answer live requests from a real Oracle database — and you will have proof inside the database itself. The map — everything follows it: a user sends a request → it lands on our FastAPI app → the app borrows a connection from a pool (connections kept open and ready, like taxis at a rank) → the pool talks to Oracle AI Database , which stores our rows and answers questions in SQL . Every step below lights one leg of this map. What you need Python 3.10 or newer. An Oracle Cloud account (the free tier is enough — this whole tutorial costs $0 ). About 20 minutes. Step 1 — Meet the database Oracle AI Database is Oracle's database service in the cloud: you install nothing; Oracle runs it, you just con...