- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
11#
发表于 2012-3-8 21:05:46
发现通过 dump filehdrs 也可以得到这个 temp file number
SQL> set linesize 200 pagesize 1400
SQL> SELECT TFNUM FILENO,
2 TO_NUMBER(TF.TFCRC_SCN) CREATE_SCN,
3 TO_DATE(TF.TFCRC_TIM,
4 'MM/DD/RR
5 HH24:MI:SS') CREATE_TIME,
6 TF.TFTSN TSNUM,
7 TF.TFAFN "Tempfile AFN",
8 FN.FNNAM FNAME,
9 DECODE(NVL(FH.FHTMPFSZ, 0), 0, TF.TFCSZ, FH.FHTMPFSZ) FSIZE,
10 TF.TFBSZ BLOCK_SIZE,
11 TF.TFRFN RFILENO,
12 DECODE(BITAND(TF.TFSTA, 16), 0, 'OFF', 'ON') AUTOEXTEND,
13 TF.TFMSZ MAX_SIZE,
14 TF.TFNSZ NEXT_SIZE
15 FROM X$KCCTF TF, X$KCCFN FN, X$KCVFHTMP FH
16 WHERE FN.FNFNO = TF.TFNUM
17 AND FN.FNFNO = FH.HTMPXFIL
18 AND TF.TFFNH = FN.FNNUM
19 AND TF.TFDUP != 0
20 AND FN.FNTYP = 7
21 AND FN.FNNAM IS NOT NULL
22 ORDER BY TF.TFNUM;
FILENO CREATE_SCN CREATE_TI TSNUM Tempfile AFN
---------- ---------- --------- ---------- ------------
FNAME
----------------------------------------------------------------------------------------------------
FSIZE BLOCK_SIZE RFILENO AUT MAX_SIZE NEXT_SIZE
---------- ---------- ---------- --- ---------- ----------
1 525959 07-NOV-11 3 201
/s01/oradata/G10R21/datafile/o1_mf_temp_7ch81b2t_.tmp
382336 8192 1 ON 4194302 80
2 11348968 22-DEC-11 3 202
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t7wnp_.tmp
256000 8192 2 ON 4194302 12800
3 11348974 22-DEC-11 3 203
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t80xy_.tmp
243200 8192 3 ON 4194302 12800
4 11348982 22-DEC-11 3 204
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t87ss_.tmp
243200 8192 4 ON 4194302 12800
5 11348988 22-DEC-11 3 205
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t89yr_.tmp
243200 8192 5 ON 4194302 12800
6 11348994 22-DEC-11 3 206
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t8d2l_.tmp
243200 8192 6 ON 4194302 12800
7 11349000 22-DEC-11 3 207
/s01/oradata/G10R21/datafile/o1_mf_temp_7h6t8g9h_.tmp
243200 8192 7 ON 4194302 12800
SQL> oradebug setmypid;
Statement processed.
SQL> oradebug dump file_hdrs 3 ;
Statement processed.
SQL> oradebug tracefile_name;
/s01/admin/G10R21/udump/g10r21_ora_4278.trc
TEMP FILE #1: External File #201
(name #11) /s01/oradata/G10R21/datafile/o1_mf_temp_7ch81b2t_.tmp
creation size=2560 block size=8192 status=0x1e head=11 tail=11 dup=1
tablespace 3, index=5 krfil=1 prev_file=0
unrecoverable scn: 0x0000.00080687 11/07/2011 04:08:58
V10 STYLE FILE HEADER:
Compatibility Vsn = 169869568=0xa200100
Db ID=2807279631=0xa753b00f, Db Name='G10R21'
Activation ID=0=0x0
Control Seq=19018=0x4a4a, File size=382336=0x5d580
File Number=1, Blksiz=8192, File Type=6 TEMP FILE
Tablespace #3 - TEMP rel_fn:1
Creation at scn: 0x0000.00080687 11/07/2011 04:08:58
Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
reset logs count:0x0 scn: 0x0000.00000000 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
recovered at 01/01/1988 00:00:00
status:0x0 root dba:0x00000000 chkpt cnt: 0 ctl cnt:0
TEMP FILE #2: External File #202
(name #24) /s01/oradata/G10R21/datafile/o1_mf_temp_7h6t7wnp_.tmp
creation size=12800 block size=8192 status=0x1e head=24 tail=24 dup=1
tablespace 3, index=5 krfil=2 prev_file=1
unrecoverable scn: 0x0000.00ad2be8 12/22/2011 12:29:32
V10 STYLE FILE HEADER:
Compatibility Vsn = 169869568=0xa200100
Db ID=2807279631=0xa753b00f, Db Name='G10R21'
Activation ID=0=0x0
Control Seq=19019=0x4a4b, File size=256000=0x3e800
File Number=2, Blksiz=8192, File Type=6 TEMP FILE
Tablespace #3 - TEMP rel_fn:2
Creation at scn: 0x0000.00ad2be8 12/22/2011 12:29:32
Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
reset logs count:0x0 scn: 0x0000.00000000 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
recovered at 01/01/1988 00:00:00
status:0x0 root dba:0x00000000 chkpt cnt: 0 ctl cnt:0
TEMP FILE #3: External File #203
(name #25) /s01/oradata/G10R21/datafile/o1_mf_temp_7h6t80xy_.tmp
creation size=12800 block size=8192 status=0x1e head=25 tail=25 dup=1
tablespace 3, index=5 krfil=3 prev_file=2
unrecoverable scn: 0x0000.00ad2bee 12/22/2011 12:29:36
V10 STYLE FILE HEADER:
Compatibility Vsn = 169869568=0xa200100
Db ID=2807279631=0xa753b00f, Db Name='G10R21'
Activation ID=0=0x0
Control Seq=19013=0x4a45, File size=243200=0x3b600
File Number=3, Blksiz=8192, File Type=6 TEMP FILE
Tablespace #3 - TEMP rel_fn:3
Creation at scn: 0x0000.00ad2bee 12/22/2011 12:29:36
Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
reset logs count:0x0 scn: 0x0000.00000000 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
recovered at 01/01/1988 00:00:00
status:0x0 root dba:0x00000000 chkpt cnt: 0 ctl cnt:
X$KCCTF.TFAFN External File Number
|
|