Pak abi, saya coba tkprof input_file.trc output.txt, tp yg keluar hanya
berupa :
TKPROF: Release 10.1.0.3.0 - Production on Thu Feb 21 16:00:48 2008
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Trace file: ittdb_ora_22158.trc
Sort options: default
********************************************************************************
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
********************************************************************************
Trace file: ittdb_ora_22158.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
0 user SQL statements in trace file.
0 internal SQL statements in trace file.
0 SQL statements in trace file.
0 unique SQL statements in trace file.
30063199 lines in trace file.
0 elapsed seconds in trace file.
gmn cara nya membaca session yg membuat trace file ini ? trace file ini
sizenya 956MB. mohon pencerahannya. terima kasih.
2008/2/21 Abi <[EMAIL PROTECTED]>:
> script untuk menghapus *.trc yg umurnya lebih 7 hari :
> # cd $ORACLE_HOME/admin/SID/udump
> # find *.trc -mtime +7 -exec rm -f {} \;
>
> untuk membaca trace file bisa menggunakan tkprof
> # tkprof input_file.trc output_file.log
>
> semoga bermanfaat,
>
> Fahmi
>
> 2008/2/20 Andes Febrian <[EMAIL PROTECTED] <pejantan4u%40gmail.com>>:
>
> > file di direktory udump bertambah jumlahnya dan terdapat beberapa file,
> > yg
> > sizenya hingga mencapai ratusan MB. untuk membatasi besarnya, nanti nya
> yg
> > akan di batasi, apakah besarnya masing2 trace file tersebut atau
> besarnya
> > direktory udump tersebut ? untuk membuat script yg memaintain jumlahnya,
> > gmn
> > cara bila ingin menghapus file yg lamanya aja, tanpa menghapus trace
> file
> > yg
> > baru ? saya menggunakan server linux red hat 4
> >
> > adakah utility untuk melihat isi trace file tersebut ? karena klo saya
> > lgsg
> > buka dgn vi atau text editor, susah sekali bacanya.
> > terima kasih,
> > 2008/2/20 Yoel Susanto [EMAIL PROTECTED] <yoel.susanto%40gmail.com><
> yoel.susanto%40gmail.com>:
> >
> >
> > > bertambah besar atau bertambah jumlahnya?
> > > kalo bertambah jumlahnya, memang tiap session akan punya trace file,
> > > anda bisa batasin besarnya dengan parameter max_dump_file_size dan
> > > maintain
> > > jumlahnya dengan membuat script untuk bersihkan directory trace file.
> > >
> > > kalau saya set max_dump_file_size, ngaruh ke performance tidak pak ?
> > > - Tidak
> > > setiap sql trace ini berpengaruh menjadikan cpu load tinggi tidak ?
> > > - Ya, karena extra informasi akan di log di file tersebut.
> > >
> > > On 20/02/2008, Andes Febrian <[EMAIL PROTECTED]<pejantan4u%40gmail.com>
> <pejantan4u%40gmail.com>
> > <pejantan4u%40gmail.com>>
> >
> > > wrote:
> > > >
> > > > meskipun dia sudah deprecated, tp knp dia create terus ya dan apa yg
> > > > menyebabkan file.trc di direktory udump bertambah terus ?
> > > >
> > > > kalau saya set max_dump_file_size, ngaruh ke performance tidak pak ?
> > > > setiap
> > > > sql trace ini berpengaruh menjadikan cpu load tinggi tidak ?
> > > >
> > > > terima kasih,
> > > >
> > > > 2008/2/20 Yoel Susanto <[EMAIL PROTECTED]<yoel.susanto%40gmail.com>
> <yoel.susanto%40gmail.com>
> > <yoel.susanto%40gmail.com><
>
> > > yoel.susanto%40gmail.com>
> > > > >:
> > > >
> > > > > Di Oracle 10g parameter tersebut sudah deprecated.
> > > > >
> > > > > Set MAX_DUMP_FILE_SIZE= 1M (set the size accordingly)
> > > > >
> > > > > Buat script yang maintain directory tersebut. Delete yang sudah
> lama
> > > > > sekali.
> > > > >
> > > > >
> > > > > On 20/02/2008, Andes Febrian <[EMAIL
> > > > > PROTECTED]<pejantan4u%40gmail.com>
> <pejantan4u%40gmail.com>
> > <pejantan4u%40gmail.com>
> > > <pejantan4u%40gmail.com>
> > > > <pejantan4u%40gmail.com>>
> > > > > wrote:
> > > > > >
> > > > > > Dear all,
> > > > > >
> > > > > > Mohon sharingnya, file.trc di $ORACLE_BASE/admin/SID/udump
> server
> > > saya
> > > > > > membengkak terus, sampe 57GB dan akhirnya membuat partisi
> > hardisknya
> > > > > > penuh,
> > > > > > padahal parameter trace_file di databasenya tidak aktif alias
> > false.
> > > > > > NAME TYPE VALUE
> > > > > > ------------------------------------ -----------
> > > > > > ------------------------------
> > > > > > sql_trace boolean FALSE
> > > > > > knp ya, ada yg bisa sharing gak ?
> > > > > > disisi lain ada jg Oracle Application Server yg menembak ke
> > database
> > > > > > server
> > > > > > tersebut. terima kasih.
> > > > > >
> > > > > > --
> > > > > > Cheers,
> > > > > > ^_^ Andes ^_^
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Cheers,
> > > > ^_^ Andes ^_^
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > > >
> > > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > >
> > >
> >
> > --
> > Cheers,
> > ^_^ Andes ^_^
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
>
>
--
Cheers,
^_^ Andes ^_^
[Non-text portions of this message have been removed]