摘要:
SELECT d.VALUE || '/' || LOWER(RTRIM(i.INSTANCE, CHR(0))) || '_ora_' || p.spid || '.trc' trace_file_name FROM (SELECT p.spid FROM v$mystat m, v$session s, v$process p WHERE m.statistic# = 1 AND s.SID = m.SID AND p.addr = s.paddr) p, (SELECT t.INSTANCE FROM v$thread t, v$param 阅读全文
摘要:
建立Recovery Catalog的步骤1,create tablespace2,create catalog owner3,grant privileges4,check space5,create catalog6,connect with target database7,register target database;1,[oracle@oracle ~]$sql "/as sysdba"[oracle@oracle ~]$create tablespace rman_ts datafile '/robotdata/ROBOT/datafile/rman 阅读全文
摘要:
cbo成本计算的基本原理optimizer_index_cost_adj和db_file_multiblock_read_count对CBO成本计算的影响CBO的成本主要由物理I/O组成,基于以往的经验,公式大致为:IO + CPU/100 + NET I/O *1.5 阅读全文
摘要:
oracle索引管理脚本来自metalink--检测某一个索引使用的情况select to_char(sn.begin_interval_time, 'yyyy-mm-dd hh24') c1, p.search_columns c2, count(*) c3 from dba_hist_snapshot sn, dba_hist_sql_plan p, dba_hist_sqlstat stwhere st.sql_id = p.sql_id and sn.snap_id = st.snap_id and p.object_name = '&idxname 阅读全文