1. ý 踦  ̺  

begin
  dbms_stats.create_stat_table(
          ownname => USER
        , stattab => 'mystats'
        , tblspace => 'USERS'
        , global_temporary => FALSE
  );
end;
/


2. ý  

# 1
begin
  dbms_stats.gather_system_stats(
             gathering_mode => 'interval',
             interval => 720,
             stattab => 'mystats',
             statid => 'OLTP');
end;
/

# 2
begin
  dbms_stats.gather_system_stats(
          gathering_mode => 'start'
        , stattab => 'mystats'
        , statid => 'OLTP');
end;
/

begin
  dbms_stats.gather_system_stats(
        gathering_mode => 'stop', 
        stattab => 'mystats', 
        statid =>'OLTP');
end;
/

begin
  dbms_stats.export_system_stats('mystats', 'OLTP', USER);
end;
/

3. ׽Ʈ  


4.   ͸ ׽Ʈ  

begin
  dbms_stats.import_system_stats('mystats', 'OLTP', USER);
end;
/


5. Shared Pool 

alter system flush shared_pool;