- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reading blocks
Operating System - HP-UX
1748272
Members
4205
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 08:03 AM
тАО02-03-2005 08:03 AM
Hello All,
I'm trying to understand how Oracle and the OS work together when retrieving data. I have an Oracle DB. The developer is running a query select 3 columns from a 20 column table. Oracle needs to perform disk reads instead of finding the data in memory. I'm thinking Oracle sends the request to the OS. Which then looks in it's cache. If the data is there does the OS send the entire record? Or just the OS just send the data for those 3 columns? Next if the OS doesn't find the data in it's cache it then must read the data from the hard drive. Does the OS return the entire record or just the 3 columns?
Thanks in advanced.
I'm trying to understand how Oracle and the OS work together when retrieving data. I have an Oracle DB. The developer is running a query select 3 columns from a 20 column table. Oracle needs to perform disk reads instead of finding the data in memory. I'm thinking Oracle sends the request to the OS. Which then looks in it's cache. If the data is there does the OS send the entire record? Or just the OS just send the data for those 3 columns? Next if the OS doesn't find the data in it's cache it then must read the data from the hard drive. Does the OS return the entire record or just the 3 columns?
Thanks in advanced.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 09:08 AM
тАО02-03-2005 09:08 AM
Solution
The OS doesn't have a clue about rows or columns; it simply reads chunks of data starting at a specified offset. It is completely up to the application to define the size of those reads and the starting offset and the number of bytes to read. If the number of bytes to reads exceeds an OS determined limit, the OS silently breaks up the read() into multiple physical reads but that is invisible to the application.
I'll assume you are using cooked files for the database:
When a read request is made (select), Oracle first looks in its cache (SGA) to see if the blocks are there; if not a read() system call is made (specifying the number of bytes and starting offset), the OS then determines if these blocks are in the UNIX buffer cache; if not, the data are read from disk -- which itself might have onboard cache.
I'll assume you are using cooked files for the database:
When a read request is made (select), Oracle first looks in its cache (SGA) to see if the blocks are there; if not a read() system call is made (specifying the number of bytes and starting offset), the OS then determines if these blocks are in the UNIX buffer cache; if not, the data are read from disk -- which itself might have onboard cache.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2005 02:10 AM
тАО02-04-2005 02:10 AM
Re: reading blocks
Thanks Clay.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP