---------------------------------- 足行千里 --------------------------------------------
oracle 数据库启动到nomount的过程中,就会进行内存的分配。但是我们只能看到各个区域的大小。我们怎么知道一些更加详细的信息呢?
这里有个小工具:sysresv
先一起来看下这个工具怎么用吧:
$ sysresv --help
sysresv: invalid option -- -
usage : sysresv [-if] [-d
] [-l sid1 ...]
-i : Prompt before removing ipc resources for each sid
-f : Remove ipc resources silently, oevrrides -i option
-d : List ipc resources for each sid if on
-l sid1 .. : apply sysresv to each sid
Default : sysresv -d on -l $ORACLE_SID
Note : ipc resources will be attempted to be deleted for a
sid only if there is no currently running instance
with that sid.
我们看到上面有几个参数:
-i : 把实例的IPC资源移除前,进行提示!
-f : 在实例的IPC资源移除前,不进行提示!
-d : 这里还有两个参数:ON/OFF。如果是ON的状态,会把每个实例的信息显示出来。
-l : 在实例上使用SYSRESV工具
如:
$ sysresv
IPC Resources for ORACLE_SID "***" :
Shared Memory:
ID KEY
1638404 0xcd92b284
Semaphores:
ID KEY
3014657 0xa8e102c0
Oracle Instance alive for sid "***"
这里我们可以看到,内存进程的ID,还有SEMAPHORES的ID和KEY都是存在的。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25313300/viewspace-702384/
,如需转载,请注明出处,否则将追究法律责任。