xifenfei 发表于 2014-3-17 15:49:55

教你:如何阅读oracle数据块的dump文件

如何阅读oracle数据块的dump文件下载:
Introduction
In a few cases, it is desirable to dump thecontents of an Oracle data block. These blocks may comprise a table, an index,or even the control file. While we can query the contents of a table, we maywant to see what is happening to a particular block of that table. We mightwant to see not only the data in the block that any query can return, but alsosee what’s going on behind the scenes in the block. This paper will show youhow to dump the contents of a block in a table, index and control file. Thispaper will also show you how to interpret some of the results of these dumps.


Why Dump Blocks?
So why are we doing this? For the mostpart, it is just idle curiosity. DBAs are inquisitive folks by nature. OracleCorp. has released just enough information on database internals to tantalizeus without giving away all the secrets. And we’d like to see what’s going onbehind the scenes. So for most cases, we are dumping blocks just for fun. Inother cases, we are dumping blocks to actually find out some meaningfulinformation. But in the end, it is up to you.


Trace File Information
All of the examples in this paper willgenerate trace files. Those trace files will be present in USER_DUMP_DESTfor you to view. To determine the trace file generated, use a query similar tothe following:

ORA9I SQL> select pa.value || '/' ||i.instance_name || '_ora_'
2         || pr.spid || '.trc' as trace_file
3from v$session s, v$process pr, v$parameterpa, v$instance i
4where s.username = user and s.paddr = pr.addr
5* andpa.name='user_dump_dest';

TRACE_FILE
------------------------------------------------------------------------
/edcsns14/pkg/oracle/admin/ora9i/udump/ora9i_ora_25199.trc

This query shows the full path and filenameof the generated trace file for my session. This is the text file we look in tosee the results of our dump.


All trace files contain the same basicinformation at the beginning of the file.

Oracle9i EnterpriseEdition Release 9.0.1.0.0 - Production
With the Partitioning option
JServer Release 9.0.1.0.0- Production
ORACLE_HOME = /edcsns14/pkg/oracle/9.0.1
System name:   SunOS
Node name:   edcsns14
Release:       5.7
Version:       Generic_106541-11
Machine:       sun4u
Instance name: ora9i
Redo thread mounted by this instance: 1
Oracle process number: 11
Unix process pid: 653, image: oracle@edcsns14(TNS V1-V3)

*** 2002-03-27 17:06:06.573
*** SESSION ID:(12.4240) 2002-03-27 17:06:06.535

Output similar to above is shown in eachtrace file. This output shows the database version, some platform specificinformation such as host name and OS level, the database instance name, theprocesses identifiers (Oracle and Unix) for the session that generated thetrace file, and the date and time the file was generated. We’ll skip thisintroductory information in examining our trace files.

完整信息请见附件

wang.hy8166 发表于 2014-3-27 12:59:23

没有金钱啊。。。。。。。。。。

lllzd 发表于 2014-4-28 15:46:40

谢谢大师分享!

card_2005 发表于 2014-5-20 14:24:55

收藏!!!!!!!!!!

6346534 发表于 2014-5-21 10:05:43

赞。。。

cheng12050 发表于 2014-5-27 17:59:46

苦于没有金币 ~。~

tinghai 发表于 2014-10-17 11:24:29

DUMP文件确实让人头疼
收藏了

tinghai 发表于 2014-10-17 11:29:54

有没有中文的手册

ora_user 发表于 2015-2-25 09:53:30

感兴趣,等金币够了再细读。

aaaaaaaa2000 发表于 2015-2-27 15:11:48

看看啊                              
页: [1] 2
查看完整版本: 教你:如何阅读oracle数据块的dump文件