Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Where is the executable code of a trigger stored in the DBMS?
On 12 Nov 2005 06:47:28 -0800, "Leigh Williams"
<leighwilliams_at_gmail.com> wrote:
>When you say the "shared pool", do you mean the database buffer? If
>not, what is the shared pool? I have never come across this term in
>studying the Oracle DBMS architecture.
That is very strange, as the shared pool is one of the key components
of the architecture.
It stores
- the active part of the datadictionary - all stored procedures, functions, packages and triggers in execution - all sql statements in execution
Doing so, it allows Oracle to reuse any code for any session, if Oracle finds the code already resides in the shared pool. Oracle uses a hashing mechanism to verify this. If 2 statements aren't exactly identical, Oracle thinks the non-parsed statement is a new statement, and it will parse it. This is why not using bind variables is so bad: you'll force Oracle to parse every individual statement. During parse part of the shared pool is inaccessible, the part is which the statement-to-be-parsed resides.
-- Sybrand Bakker, Senior Oracle DBAReceived on Sat Nov 12 2005 - 09:20:34 CST
![]() |
![]() |