The initial code is a follows:
- Code: Select all
type all_objects_t is record (
owner all_objects.owner%type,
object_name all_objects.object_name%type,
object_type all_objects.object_type%type,
status all_objects.stats%type
);
type all_objects_table_t is table of all_objects_t;
all_objects_table all_objects_table_t;
procedure load_objects
is
begin
all_objects_table := all_objects_table_t;
select owner, object_name, object_type, status
bulk collect into all_objects_table
from all_objects@dblink;
end;
/
How do I select in the collection, because doing a linear search is not really optimal?
Thanks in advance
//Henrik