Más contenido relacionado La actualidad más candente (20) Similar a All About PL/SQL Collections (20) Más de Steven Feuerstein (8) All About PL/SQL Collections5. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Page 5
System Global Area (SGA) of RDBMS Instance
PL/SQL in Shared Memory
Shared Pool
Large Pool
Reserved Pool
show_emps calc_totals upd_salaries
Select *
from emp
Shared SQL
Pre-parsed
Update emp
Set sal=...
Library cache
Session 1 memory (PGA/UGA)
emp_rec emp%rowtype;
tot_tab tottabtype;
Session 2 memory (PGA/UGA)
emp_rec emp%rowtype;
tot_tab tottabtype;Session 1 Session 2
10. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Page 10
Glossary of Terms
• Element
– A collection is made up of one or more elements, all of the same type. Also referred to
as "row."
– Can be of almost any valid PL/SQL type.
• Index value
– The "location" in the collection in which an element is found. Also referred to as "row
number."
– Usually an integer, can also be a string (associative arrays only)
• Dense
– Every index value between lowest and highest has a defined element.
• Sparse
– One or more elements between lowest and highest index values may be undefined
(gaps).