Attaching the SGA to a C Program

The SGA can be attached to a C program using the shmat system call. You can get more information about this system call by issuing man shmat at a Unix prompt, or from your favorite Unix programming books. The system call must be executed by a Unix user who has read permission to the Oracle SGA, and the syntax is as follows:

Image

Image CAUTION

To avoid data corruption, it is imperative that the SGA be attached as read-only. The shmflg value must be SHM_RDONLY. You must never alter the memory content because it will corrupt ...

Get Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.