ORACLE SOS

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 17205|回复: 13

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

[复制链接]

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
发表于 2014-3-17 15:49:55 | 显示全部楼层 |阅读模式
如何阅读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
  3  from v$session s, v$process pr, v$parameterpa, v$instance i
  4  where 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 ID12.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.

完整信息请见附件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复

使用道具 举报

1

主题

4

帖子

15

积分

新手上路

Rank: 1

积分
15
发表于 2014-3-27 12:59:23 | 显示全部楼层
没有金钱啊。。。。。。。。。。
回复 支持 反对

使用道具 举报

0

主题

9

帖子

35

积分

新手上路

Rank: 1

积分
35
发表于 2014-4-28 15:46:40 | 显示全部楼层
谢谢大师分享!
回复 支持 反对

使用道具 举报

0

主题

10

帖子

18

积分

新手上路

Rank: 1

积分
18
发表于 2014-5-27 17:59:46 | 显示全部楼层
苦于没有金币 ~。~
回复 支持 反对

使用道具 举报

2

主题

22

帖子

55

积分

注册会员

Rank: 2

积分
55
发表于 2014-10-17 11:24:29 | 显示全部楼层
DUMP文件确实让人头疼
收藏了
回复 支持 反对

使用道具 举报

2

主题

22

帖子

55

积分

注册会员

Rank: 2

积分
55
发表于 2014-10-17 11:29:54 | 显示全部楼层
有没有中文的手册
回复 支持 反对

使用道具 举报

0

主题

4

帖子

6

积分

新手上路

Rank: 1

积分
6
发表于 2015-2-25 09:53:30 | 显示全部楼层
感兴趣,等金币够了再细读。
回复 支持 反对

使用道具 举报

2

主题

5

帖子

32

积分

新手上路

Rank: 1

积分
32
发表于 2015-2-27 15:11:48 | 显示全部楼层
看看啊                                
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|ORACLE SOS 技术论坛

GMT+8, 2024-4-27 05:08 , Processed in 0.041042 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表