https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=293783104328168&id=1321306.1&_afrWindowMode=0&_adf.ctrl-state=s1e4cf916_178 2/5
$ ls -l /dev/shm/* | wc -l
262
1. Why is Oracle keeping hundreds of thousands Open File descriptors in /dev/shm while there are just hundreds of files ?
2. Is this a known issue? ( any notes/documents/bug reports/fixes exist).
3. Or is this expected behavior of oracle?
SOLUTION
1) Let's use a test database (11.1.0.7) to demonstrate how Automatic Memory Management uses file descriptors and why there are so many
Open File descriptors.
A) Before starting the 11.1.0.7 database, /dev/shm is empty and there are no open files
$ ls -l /dev/shm
total 0
$ lsof -n | grep /dev/shm
B) Let's start the database, then check /dev/shm
UNIX> sqlplus " / as sysdba"
SQL*Plus: Release 11.1.0.7.0 - Production on Fri May 6 14:57:28 2011
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 845348864 bytes
Fixed Size 1316656 bytes
Variable Size 578816208 bytes
Database Buffers 260046848 bytes
Redo Buffers 5169152 bytes
Database mounted.
Database opened.
SQL> show parameter memory_target
Installation and
Upgrade/Migration [1351022.2]
Index of Oracle Database
Information Centers
[1568043.2]
インフォメーション・センタ
ー: データベースおよび
Enterprise Manager 日本語ドキ
ュメント [1946305.2]
Information Center: Overview
of Database Security Products
[1548952.2]
Platform as a Service (PaaS)
and Oracle Cloud Infrastructure
(OCI) Information Center
[2048297.2]
Document References
Open Files/Open File
Descriptors [787780.1]
How To Determine Granule
Size [947152.1]
Recently Viewed
HugePages on Oracle Linux
64-bit [361468.1]
ALERT: Disable Transparent
HugePages on SLES11,
RHEL6, RHEL7, OL6, OL7,
and UEK2 and above
[1557478.1]
WAITEVENT: "log file sync"
Reference Note [34592.1]
SRDC - 如何收集 ‘log file
sync’ 等待是数据库主要等待
事件问题的标准信息
[2367701.1]
SRDC - 对于 SQL 性能问题如
何收集诊断信息 [2293025.1]
Show More
评论