oracle日常检查相关资料.docVIP

  • 0
  • 0
  • 约6千字
  • 约 8页
  • 2020-04-09 发布于广东
  • 举报
内容 数据库是否处于归档模式 检查方法 sqlplus sys/ SQLarchive log list;看数据库是否处于归档模式,并启 动了自动归档进程 检查结果 ?正常 口界常 备注 内容 文件系统使用情况 检查方法 执行df -k,检查有没有使用率超过80%的文件系统,特别是存放归档口志的 文件系统 检杏结果 ?正常 □异常 备注 内容 alert_STD. log 文件 检查方法 检查alert_S!D. log有无报错信息(0R八-600、ORA-1578)、0RA-60 检査结果 ?正常 口异常 备注 内容 备份文件是否正常 检查方法 检查文件大小及生成H期检査export的日志文件用imp工具生成建表脚本,看 能否正常完成 imp system/. ? ? ? file二backup, dmp rows=n indexfile=backup. sql 检查结果 ?正常 □异常 备注 内容 表空间使用情况 检查方法 col tablespace name form a25 select tablespace name, count (*) chunks, max(bytes)/1024/1024 max chunk, sum(bytes)/1024/1024 total_space from dba_free_space group by tablespace_name; 如果最大可用块(max_chunk)与总大小(total_space)相比太小,要考虑接合表空间碎片或重 建某些数据库对象。碎片接合的方法: al ter tablespace 表空间名 coalesce; 检查结果 ?正常 口界常 备注 内容 数据库对象的存储参数设置 检查方法 select segment name, next extent, tablespace_name from dba_segmentswhere next_extent; [上一个检杏屮的最小的max_chunk]如果有结果返冋,说明有些对象的下一次扩展(从表空 间的空闲区小分配空间的操作)会失败 检查结果 ?正常 口界常 备注 内容 检查是否冇超过200个extent的对象 检查方法 select segment name, tablespace name, extents from dba segments where owner not in (SYS,SYSTEM) and extents 200; 如果有结果返回,说明这些对象分配了太多的extent,可以考虑重建这些对象。 检查结果 ?正常 □异常 备注 内容 检查是否有失效的索引 检查方法 select in dex _n ame, own er, table _n ame, tablespace _n ame from dba_ indexes where owner not in (SYSSYSTEM) and status != VALID; 如果有记录返回,考虑垂建这些索引 检查结果 ?正常 口异常 备注 内容 检杳是否有无效的对象 检查方法 select objec t_ name, object_type, own er, status from dba_objects where status !=,VALID, and owner not in (SYSSYSTEM)and object_type in (TRIGGER, VIEW, PROCEDURE, FUNCTION); 如果存在无效的对彖,手工重新编译一下。 检查结果 口正常 口界常 备注 内容 检查Sequence的使用 检查方法 select sequence_owner, sequence_name, min_value, max_value, increment_by, last_number, cache_ size, cycle_flag from dba_sequences; 检查是否存在即将达到max_valuc的sequence 检查结果 ?正常 □异常 备注 内容 检查有无运行失败的JOB 检査方法 select job, this date, this sec, next date, next sec, failures, what from dba jobs where failures !=0 or failures is not nul1; 检查结果 ?正常 口界常 备注 内容 检查SGA使用情况 检查方法 select * from v$sga; 检查SGA各部份的分配情况,与实际内存比较是否合理 检查结果 □正常 □异常 备注 内容 检杏SGA各部分占用内存情况 检查方法 select * from

文档评论(0)

1亿VIP精品文档

相关文档