1. RMAN
2. 监控表空间, TEMP表空间,PGA不够时,就会用TEMP来排序
3. 检查pfile参数, 要注意的参数:如 SGA_TARGET, PAG_TARGET, STAND_FILE, optimizer_index_cost_adj等
4. 做HA: Date Guard , RAC
5. 检查死锁
6. AWR分析数据库
7. 开启falash back功能
8. 写job, 做Statistic
9. 通过AWR分析的结果,看系统的SQL能否进行优化,如索引, SGA,PGA内存是否可以优化.
10. 监控alert log 日志
11. 做个数据库的冷备和逻辑备份
12. 添加自动分析的JOB。
CREATE OR REPLACE PROCEDURE USER."ANALYZEDB"
IS
CURSOR get_ownertable
IS
SELECT table_name
FROM user_tables;
ownertable get_ownertable%ROWTYPE;
BEGIN
OPEN get_ownertable;
LOOP
FETCH get_ownertable
INTO ownertable;
EXIT WHEN get_ownertable%NOTFOUND;
EXECUTE IMMEDIATE 'analyze table '
|| ownertable.table_name
|| ' compute statistics for table for all indexes for all indexed columns ';
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
RAISE;
END;
/
BEGIN
SYS.DBMS_JOB.REMOVE(3);
COMMIT;
END;
/
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'ANALYZEDB;'
,next_date => to_date('25-11-2009 06:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'trunc(sysdate + 7) + 6/24'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/