Content'Trac Fi Genera for Orac Proc after Removi TF by Mist at OS Lev_805083.1
How to Find the Content of Trace File Generated for an Oracle Process after Removing the Trace File by Mistake at OS Level (Doc ID 805083.1)
In this Document
Goal
Solution
References
Applies to:
Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 11.2.0.1.0 - Release: 8.1.7 to 11.2Generic UNIX
Generic Linux
Goal
Trace files of Oracle processes are not being recreated after by mistake they have been removed at the Operating System level.
How can the content of such trace file be seen?
Solution
The explanation of this behaviour and also the solution is given in the
Bug 8367394: A NEW TRACE FILE IS NOT BEING CREATED IF THE INITIAL ONE WAS REMOVED
In the following example, please note that starting with 11g, the place for the trace files as replace of bdump is ”{ADR_HOME}/trace/”, thus you need this path to look for the trace files.
Whilst the process is alive and it has not performed a close() on the file it will still have an open file descriptor to it.
The file name contains the PID of the process, so until the process gets restarted we will not a) close the fd, and b) create a new file of a different name or same name.
This doesn't mean, in an emergency you could not still access the file, you should be able to get
at the files contents (which will still be written to after the delete as the fd is still open), by accessing the file via the fd i.e:
ps -ef|grep v10204|grep dbw0
oracle 11283 1 0 16:23 ? 00:00:00 ora_dbw0_v10204
lsof -p 11283|grep dbw0
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
oracle 11283 oracle 2 REG 3,1 767 20728692 /bdump/v10204_dbw0_11283.trc
So we can see we have the file open, with fd 2
l-wx------ 1 oracle dba-64 Mar 25 16:24 2 -> /bdump/v10204_dbw0_11283.trc
Remove the file and the fd will still be present but the file will be deleted
l-wx------ 1 oracle dba-64 Mar 25 16:24 2 -> /bdump/v10204_dbw0_11283.trc (deleted)
This fd will remain until it is closed or the process is restarted, you can always access the
contents via this if you so wish i.e:
References
BUG:8367394 - A NEW TRACE FILE IS NOT BEING CREATED IF THE INITIAL ONE WAS REMOVED來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1128001/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ::after和::before 要配合content屬性
- ::after和::before偽元素選擇器必須要配合content屬性
- 通過Mist部署智慧合約
- 題解:CF1349B Orac and Medians
- content = content==null? content="":content; 三目運算子用法例項Null
- RedHat 5.6_x86_64 + ASM + RAW+ OracRedhatASM
- 解決:ora-00604, orac-00942錯誤
- jQuery after()jQuery
- Tensorflow的幾種變數生成格式。tf.zero,tf.fill,tf.random變數random
- mist連線私有網路除錯智慧合約除錯
- 在 windows 下安裝和簡單配置 trac 0.12Windows
- TF1 程式碼升級 TF2 思路TF2
- PROC提取資料
- CSS contentCSS
- SCSS @contentCSS
- 使用Mist部署Contract到Rinkeby以太坊網路
- proc_create_data函式建立/proc/目錄下的檔案函式
- linux proc/loadavgLinux
- Linux /proc、/dev PrincipleLinuxdev
- oracle ProC程式設計OracleC程式程式設計
- TF2.1進階-tf.booleanmask_where_scatter_nd_mashgridTF2Boolean
- tf.app.flags.DEFINE_string()和tf.app.flags.FLAGSAPP
- trac 平臺從 PG 資料庫轉到sqlite 的指令碼。資料庫SQLite指令碼
- Content Security Policy
- ISO in CSS contentCSS
- User Exits in FI/CO
- FI憑證拆分
- 【tf.keras】tf.keras載入AlexNet預訓練模型Keras模型
- tf.clip_by_value() 用法
- tf.strided_slice()IDE
- C連線oracle(PROC*C)Oracle
- oracle proc 開發環境Oracle開發環境
- 過程宏(proc-macro)Mac
- /proc的相關知識
- CSS justify-contentCSS
- file_get_content
- MySQL 5.7半同步複製after sync和after commit詳解MySqlMIT
- iOS autolayout的Content Hugging 和 Content Compression ResistanceiOS