create sequence sh.seq1 start with 1 increment by 1;
select sh.seq1.nextval from dual;
begin
DBMS_SHARED_POOL.KEEP (
name =>'SH.SEQ1',
flag =>'Q' );
end;
/
select * from v$db_object_cache
where kept = 'YES'
and type = 'SEQUENCE'
;
begin
DBMS_SHARED_POOL.UNKEEP (
name =>'SH.SEQ1',
flag =>'Q' );
end;
/
select * from v$db_object_cache
where kept = 'YES'
and type = 'SEQUENCE'
;