Posts

Showing posts with the label Oracle

Connect a FastAPI App to Oracle AI Database — Thin Mode + Wallet, a Real Pool, Step by Step

Image
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 c...

Auto increment Column in Oracle

Image
To day I will show you how to create Auto increment column in oracle which may be use as Primary Key . In My Sql and Sql Server Data bases it very easy to create auto increment column but in oracle you must have to follow some step to Create an Auto increment column.

Log/Audit Table in Oracle and SQL SERVER

Image
Today i will explain you Why we  create Log/Audit table, How it helps us in various situations and How to create Log table and audit table. In this tutorial we will Learn  How to create Trigger  in Oracle and Sql server. In this article I use both databases Oracle and SQL Server . By creating log tables, data base automatically logging of changes to several of our database tables.

Get Client IP Address, Host name and Current User in Oracle and SQL Server

Image
Today I show how to get Client IP Address, Host name and Current Data base user in Sql Server and Oracle . It is very useful for security purposes and in case of any illegal or unauthorized activity is performed on your database so you can Track and Trace how, when  and who performed that  illegal or unauthorized activity.