DTrace Oracle Database

http://d.hatena.ne.jp/yohei-a/20100515/1273954199

DTrace で Oracle Database のサーバー?プロセスをトレースしてみた

OracleMac

2010-03-22 - 未来のいつか/hyoshiokの日記

第102回カーネル読書会 に行ってきて、DTrace を使ってみようと思ってもう 2 ケ月近くすぎた。

やっと使ってみた。

sqlplus でログインして、

$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Sun May 16 04:59:23 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

DTrace でトレースを開始して、

$ su -
# ps -ef|grep [o]racleorcl
  502   475   474   0   0:00.02 ??         0:00.03 oracleorcl (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
# dtrace -p 475 -Fn ‘pid$target:oracle:qer*Fetch*:entry pid$target:oracle:qer*Fetch*:return‘
dtrace: description ‘pid$target:oracle:qer*Fetch*:entry pid$target:oracle:qer*Fetch*:return‘ matched 269 probes

SQL を実行してみると、

SQL> select count(1) from all_users;

  COUNT(1)
----------
	27

SQL>

お、なんか出た。

# ps -ef|grep [o]racleorcl
  502   475   474   0   0:00.02 ??         0:00.03 oracleorcl (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
# dtrace -p 475 -Fn ‘pid$target:oracle:qer*Fetch*:entry pid$target:oracle:qer*Fetch*:return‘
dtrace: description ‘pid$target:oracle:qer*Fetch*:entry pid$target:oracle:qer*Fetch*:return‘ matched 269 probes
CPU FUNCTION
  0  -> qergsFetch
  0    -> qerhjFetch
  0      -> qerhjFetch
  0        -> qertbFetch
  0        <- qertbFetch
  0        -> qertbFetch
  0        <- qertbFetch
  0      <- qerhjFetch
  0      -> qertbFetch
  0      <- qertbFetch
  0    <- qerhjFetch
  0  <- qergsFetch

環境は以下の通り。

# sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.3
BuildVersion:	10D578
# uname -a
Darwin yoheia-no-macbook 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
# su - oracle
$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Sun May 16 05:08:11 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE	10.2.0.4.0	Production
TNS for MacOS X Server: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
时间: 2024-07-29 05:36:12

DTrace Oracle Database的相关文章

Oracle Database 12c Release 1下载安装(自身经历)

1.访问Oracle官网:https://www.oracle.com/index.html,下载Oracle Database 12c Release 1 (注意:File1和File2都要下载!!不然后期安装会报一堆错误,可参考:http://www.2cto.com/database/201503/386272.html) 2.将文件解压,把winx64_12102_database_2of2文件夹中database\stage\components目录下的所有文件夹,复制到winx64_

Windows 7 64bit上安装Oracle Database 12c [INS-30131] 错误的解决方法

Windows 7 64bit上安装Oracle Database 12c,出现以下错误: 解决方法: 第一步:控制面板>所有控制面板项>管理工具>服务>SERVER  启动 第二步:控制面板>所有控制面板项>管理工具>计算机管理>系统工具>共享文件夹>共享   右键单击“共享”>新建共享> 点击“下一步”>   单击“浏览”> 选择"本地磁盘(C:)">确定   单击“下一步”:     单击“

【转】Oracle Database PSU/CPU

转自: http://www.cnblogs.com/ebs-blog/archive/2011/07/28/2167232.html 1. 什么是PSU/CPU?CPU: Critical Patch UpdateOracle对于其产品每个季度发行一次的安全补丁包,通常是为了修复产品中的安全隐患. PSU: Patch Set UpdatesOracle对于其产品每个季度发行一次的补丁包,包含了bug的修复.Oracle选取被用户下载数量多的,并且被验证过具有较低风险的补丁放入到每个季度的PS

【翻译自mos文章】在windows平台上怎么启用Oracle database 企业版的partition?

来源于: How to enable Partitioning in Oracle Database Enterprise Edition 11.2 on Windows (文档 ID 1188238.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Information in this document applies to any platform. 目标: 在Windows平台上怎么启用Or

关于windows平台下的oracle database software的补丁

对于windows: Oracle provides bundled patches for Microsoft Windows platforms. Recommended patches are included in these bundles rather than as separately downloadable patches. See Note:161549.1 for details of the bundled patches for Microsoft platforms

如何安装Oracle Database 11g数据库

先选择你适合你的系统版本,32位系统的请选择32位的,64位系统可以使用32位也可以使用64位,建议采用64位的! 适用于 Microsoft Windows(32 位)的 Oracle Database 11g 第 2 版 (11.2.0.1.0) http://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_database_1of2.zip http://download.oracle.com/otn/nt/oracle11g

Linux( rhel-server-7.0-x86_64)安装Oracle Database 12c Release 1

1.官方下载安装包:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html linuxamd64_12102_database_1of2.zip linuxamd64_12102_database_1of2.zip 2.创建oracle用户和组 [[email protected]]# groupadd oinstall [[email protected]]# groupadd dba

P6 EPPM Manual Installation Guide (Oracle Database)

Contents Oracle Database Manual Configuration Overview ,,★★5 Oracle Database Installation ,,★★6 Creating the Database Structure for Oracle and Loading Application Data ,,★★7 Creating the P6 EPPM Database Structure for Oracle ,,★★7 Copying the Script

Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition

Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) 最近因需要在Oracle 数据库上建立ODI的资料档案库,需要安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition . 软件下载 http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html?ssSourceSite