分类: Oracle
2008-05-16 21:08:09
来源: |
|
问题:怎样才能dump数据库的内部结构?
解答: 常见的如下: 1、数据文件块,转储数据文件n的块m alter system dump datafile n block m 2、分析日志文件 alter system dump logfile logfilename; 3、分析控制文件的内容 alter session set events 'immediate trace name CONTROLF level 10' 4、分析所有数据文件头 alter session set events 'immediate trace name FILE_HDRS level 10' 5、分析日志文件头 alter session set events 'immediate trace name REDOHDR level 10' 6、分析系统状态,最好每10分钟一次,做三次对比 alter session set events 'immediate trace name SYSTEMSTATE level 10' 7、分析进程状态 alter session set events 'immediate trace name PROCESSSTATE level 10' 8、分析Library Cache的详细情况 alter session set events 'immediate trace name library_cache level 10'
reference
================= |