|
本帖最后由 botang 于 2016-3-18 17:25 编辑
(52-35)上完1Z0-053的第13章
(52-36)上完1Z0-053的第14章
(52-37)上完1Z0-053的第15章
create or replace package hr.pack1
is
function func1(p_1 number) return number;
end;
create or replace package body hr.pack1
is
function func1(p_1 number) return number
is
begin
return p_1*2;
end;
end;
select * from dba_errors;
select * from v_$db_object_cache c where c.OWNER='HR' and c.NAME='PACK1';
select * from
(select s.SQL_text
from v_$sql s order by s.CPU_TIME desc ) where rownum<=5;
begin
dbms_shared_pool.keep('HR.PACK1');
end;
select * from dict where table_name like 'DBA%HIST%';
select * from dict where table_name like '%WAIT%CLASS%';
select * from V$SESSION_WAIT_CLASS;
select n.NAME,se.VALUE
from v_$session s, v_$sesstat se , v_$statname n
where s.sid=se.SID and se.STATISTIC#=n.STATISTIC#
and s.TERMINAL='pts/21';
select * from dba_sql_profiles;
--
|
|