[table][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]数据库是否处于归档模式[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]sqlplus sys/......[/font]
[font=Times New Roman]SQL>archive log list;[/font]
[font=宋体]看数据库是否处于归档模式,并启动了自动归档进程[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]文件系统使用情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]执行[/font][font=Times New Roman]df -k[/font][font=宋体],检查有没有使用率超过[/font][font=Times New Roman]80%[/font][font=宋体]的文件系统,特别是存放归档日志的文件系统[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]alert_SID.log[/font][font=宋体]文件[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查[/font][font=Times New Roman]alert_SID.log[/font][font=宋体]有无报错信息[/font][font=Times New Roman](ORA-600[/font][font=宋体]、[/font][font=Times New Roman]ORA-1578)[/font][font=宋体]、[/font][font=Times New Roman]ORA-60[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]备份文件是否正常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查文件大小及生成日期[/font][/size]
[font=宋体][size=12pt]检查[/font][font=Times New Roman]export[/font][font=宋体]的日志文件[/font][/size]
[font=宋体][size=12pt]用[/font][font=Times New Roman]imp[/font][font=宋体]工具生成建表脚本,看能否正常完成[/font][/size]
[size=12pt][font=Times New Roman]imp system/.... file=backup.dmp rows=n indexfile=backup.sql[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]表空间使用情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]col tablespace_name form a25[/font]
[font=Times New Roman]select tablespace_name,[/font]
[font=Times New Roman]count(*) chunks,[/font]
[font=Times New Roman]max(bytes)/1024/1024 max_chunk,[/font]
[font=Times New Roman]sum(bytes)/1024/1024 total_space[/font]
[font=Times New Roman]from dba_free_space[/font]
[font=Times New Roman]group by tablespace_name;[/font]
[font=Times New Roman][/font]
[font=宋体]如果最大可用块[/font][font=Times New Roman](max_chunk)[/font][font=宋体]与总大小[/font][font=Times New Roman](total_space)[/font][font=宋体]相比太小,要考虑接合表空间碎片或重建某些数据库对象。[/font][/size]
[font=宋体][size=12pt]碎片接合的方法[/font][font=Times New Roman]:[/font]
[font=Times New Roman]alter tablespace [/font][font=宋体]表空间名[/font][font=Times New Roman] coalesce;[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=9pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]数据库对象的存储参数设置[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select segment_name,[/font]
[font=Times New Roman] next_extent,[/font]
[font=Times New Roman] tablespace_name[/font]
[font=Times New Roman]from dba_segments[/font]
[font=Times New Roman]where next_extent >[[/font][font=宋体]上一个检查中的最小的[/font][font=Times New Roman]max_chunk][/font]
[font=Times New Roman][/font]
[font=宋体]如果有结果返回,说明有些对象的下一次扩展[/font][font=Times New Roman]([/font][font=宋体]从表空间的空闲区中分配空间的操作[/font][font=Times New Roman])[/font][font=宋体]会失败[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查是否有超过[/font][font=Times New Roman]200[/font][font=宋体]个[/font][font=Times New Roman]extent[/font][font=宋体]的对象[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select segment_name,[/font]
[font=Times New Roman] tablespace_name,[/font]
[font=Times New Roman] extents[/font]
[font=Times New Roman]from dba_segments[/font]
[font=Times New Roman]where owner not in ('SYS','SYSTEM')[/font]
[font=Times New Roman]and extents >200;[/font]
[font=Times New Roman][/font]
[font=宋体]如果有结果返回,说明这些对象分配了太多的[/font][font=Times New Roman]extent,[/font][font=宋体]可以考虑重建这些对象。[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查是否有失效的索引[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select index_name,[/font]
[font=Times New Roman] owner,[/font]
[font=Times New Roman] table_name,[/font]
[font=Times New Roman] tablespace_name[/font]
[font=Times New Roman]from dba_indexes[/font]
[font=Times New Roman]where owner not in ('SYS','SYSTEM')[/font]
[font=Times New Roman]and status != 'VALID';[/font]
[font=Times New Roman][/font]
[font=宋体]如果有记录返回,考虑重建这些索引[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查是否有无效的对象[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select object_name,[/font]
[font=Times New Roman] object_type,[/font]
[font=Times New Roman] owner,[/font]
[font=Times New Roman] status[/font]
[font=Times New Roman]from dba_objects[/font]
[font=Times New Roman]where status !='VALID'[/font]
[font=Times New Roman] and owner not in ('SYS','SYSTEM')[/font]
[font=Times New Roman]and object_type in[/font]
[font=Times New Roman]('TRIGGER','VIEW','PROCEDURE','FUNCTION');[/font]
[font=Times New Roman][/font]
[font=宋体]如果存在无效的对象,手工重新编译一下。[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=6][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查[/font][font=Times New Roman]Sequence[/font][font=宋体]的使用[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select sequence_owner,[/font]
[font=Times New Roman] sequence_name,[/font]
[font=Times New Roman] min_value,[/font]
[font=Times New Roman] max_value,[/font]
[font=Times New Roman] increment_by,[/font]
[font=Times New Roman] last_number,[/font]
[font=Times New Roman] cache_size,[/font]
[font=Times New Roman] cycle_flag[/font]
[font=Times New Roman]from dba_sequences;[/font]
[font=宋体]检查是否存在即将达到[/font][font=Times New Roman]max_value[/font][font=宋体]的[/font][font=Times New Roman]sequence[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=6][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查有无运行失败的[/font][font=Times New Roman]JOB[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select job,[/font]
[font=Times New Roman] this_date,[/font]
[font=Times New Roman] this_sec,[/font]
[font=Times New Roman] next_date,[/font]
[font=Times New Roman] next_sec,[/font]
[font=Times New Roman] failures,[/font]
[font=Times New Roman] what[/font]
[font=Times New Roman]from dba_jobs[/font]
[font=Times New Roman]where failures !=0 or failures is not null;[/font]
[/td][/tr][tr][td=1,1,91][font=宋体]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]◆[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=7][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查[/font][font=Times New Roman]SGA[/font][font=宋体]使用情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select * from v$sga;[/font]
[font=宋体]检查[/font][font=Times New Roman]SGA[/font][font=宋体]各部份的分配情况,与实际内存比较是否合理[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查[/font][font=Times New Roman]SGA[/font][font=宋体]各部分占用内存情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select * from v$sgastat;[/font]
[font=宋体]检查有无占用大量[/font][font=Times New Roman]Shared pool[/font][font=宋体]的对象,及是否有内存浪费情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查回滚段使用情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select n.name,[/font]
[font=Times New Roman]wraps,[/font]
[font=Times New Roman]extends,[/font]
[font=Times New Roman]shrinks,[/font]
[font=Times New Roman]optsize,[/font]
[font=Times New Roman]waits,[/font]
[font=Times New Roman]xacts,[/font]
[font=Times New Roman]aveactive,[/font]
[font=Times New Roman]hwmsize[/font]
[font=Times New Roman] from v$rollstat r, v$rollname n[/font]
[font=Times New Roman]where r.usn=n.usn;[/font]
[font=宋体]检查回滚段的[/font][font=Times New Roman]shrink[/font][font=宋体]和[/font][font=Times New Roman]extends[/font][font=宋体]次数是否过多。[/font][/size]
[font=宋体][size=12pt]检查[/font][font=Times New Roman]optimal[/font][font=宋体]设置是否合理,是否占用了过多的回滚段表空间[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=2,1,568][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查数据库用户情况[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]col default_tablespace form a25[/font]
[font=Times New Roman]col temporary_tablespace form a25[/font]
[font=Times New Roman]col username form a15[/font]
[font=Times New Roman]select username,[/font]
[font=Times New Roman] default_tablespace,[/font]
[font=Times New Roman] temporary_tablespace[/font]
[font=Times New Roman]from dba_users;[/font]
[font=宋体]检查是否有用户的缺省表空间和临时表空间设置为[/font][font=Times New Roman]SYSTEM[/font][font=宋体]表空间。[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=Times New Roman][size=12pt][/font][/size]
[/td][td=1,1,477][font=Times New Roman][size=12pt][/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体]内容[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]检查数据文件的自动增长是否关闭[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查方法[/font][/size]
[/td][td=1,1,477][size=12pt][font=Times New Roman]select file_name,autoextensible[/font]
[font=Times New Roman]from dba_data_files[/font]
[font=Times New Roman]where autoextensible='YES';[/font]
[font=宋体]如果存在这样的数据文件就要关闭自动增长[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]检查结果[/font][/size]
[/td][td=1,1,477][font=宋体][size=12pt]□[/font][font=Times New Roman] [/font][font=宋体]正常[/font][font=Times New Roman] [/font][font=宋体]□[/font][font=Times New Roman] [/font][font=宋体]异常[/font][/size]
[/td][/tr][tr][td=1,1,91][font=宋体][size=12pt]备注[/font][/size]
[/td][td=1,1,477][size=3][font=Times New Roman][size=10][/font][/size]
[/td][/tr][/table]