Imagine your Oracle database like a big house (villa), and you’re a guest who wants to get a cup of tea from the kitchen.
Let’s see how the journey works step by step:
Flow of a SELECT Statement – Like Asking for Tea
You Ring the Doorbell
You (user) arrive at the house
Security guard (Listener) verifies you and allows entry
Butler Comes to Attend
Server Process assigned to you, takes your order
(“I want tea”) → SELECT * FROM TEA;
Butler Checks Recipe Book
Looks into the Library Cache (House Library)
If recipe (SQL plan) exists, reuse it (soft parse)
If not, note down new recipe (hard parse)
Butler Checks Inventory List
Verifies if tea leaves, milk, sugar are in stock
Refers Data Dictionary Cache (Inventory List)
If not, goes to basement and updates list (Disk I/O)
Pick Ingredients from Kitchen
Looks for ingredients in Buffer Cache (Kitchen Store)
If not available, fetches from Basement (Disk) and stocks it in kitchen
Chef Prepares the Tea
PGA (Chef’s Workspace) used for making tea (sorting, filtering data)
Serve the Tea
Once ready, Server Process brings the tea to you (user)
0 Comments