oradebug

简介: oradebug

1> oradebug有哪些可用命令?

以sysdba身份登陆数据库,通过oradebug help可以看到oradebug常用命令

sqlplus / as sysdba

oradebug help

2> 跟踪当前会话信息

oradebug setmypid --跟踪当前会话

oradebug setospid --跟踪系统进程

oradebug setorapid --跟踪ORACLE进程

oradebug unlimit --取消trace文件大小限制

oradebug tracefile_name --查看trace文件名及位置

3> 用oradebug做session级10046或10053

oradebug setmypid

oradebug unlimit

oradebug session_event 10046 trace name context forever ,level 4 --启用会话级10046

oradebug event 10046 trace name context off --关闭10046事件

oradebug tracefile_name --查看tracefile文件位置及文件名

4> 用oradebug做oracle process级10046

oradebug setorapid

oradebug unlimit

oradebug event 10046 trace name context forever ,level 4

oradebug event 10046 trace name context off

oradebug tracefile_name

5> oradebug系统hang住原因分析

如果系统HANG住,只要sys用户可以登陆,那么用oradebug做原因分析是非常有用的

oradebug setmypid

oradebug unlimit

oradebug setinst all --RAC环境

oradebug hanganalyze 3 -- 级别一般指定为3足够了

oradebug -g def dump systemstate 10 --RAC环境

oradebug tracefile_name

6> 获取某进程的状态信息

oradebug setospid 22180

oradebug dump processstate 10

oradebug tracefile_name

7> 获取进程错误信息状态

oradebug setospid 22180

oradebug dump errorstack 3

8> 追踪造成错误信息的原因,如ORA-04031

oradebug event 4031 trace name errorstack level 3

9> 跟踪oracle进程样例:
oradebug setorapid 120
oradebug unlimit
oradebug event 10046 trace name context forever ,level 4
oradebug event 10046 trace name context off
oradebug tracefile_name

相关文章
|
Prometheus 监控 Cloud Native
如何推广你的开源项目?
如何推广你的开源项目?
810 0
进
|
存储 开发工具 git
vscode之gitee码云使用方法
vscode开发怎么使用gitee进行管理
进
2627 1
vscode之gitee码云使用方法
|
9天前
|
域名解析 人工智能 Linux
|
20天前
|
Linux Go 开发工具
手机上跑 DeepSeek 智能体:开源安卓客户端 DSH Go 安装与使用指南
DSH Go 是一款开源安卓客户端,将 DeepSeek Harness 智能体引擎装进手机:免 Root、免 Termux,一键安装即用;支持本机运行(内置 Ubuntu+Node.js)或远程接管电脑会话;具备插话打断、过程折叠、屏幕操控、端到端加密分享等特色功能,真正实现智能体“口袋化”。
17825 63
|
18天前
|
人工智能
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
进不去 Antigravity 或 Gemini,提示所在地区不可用?三步查清 Google 账号关联地区、官方更正表单理由选法与改区注意事项。
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
|
3天前
|
人工智能 安全 网络安全
|
7天前
|
云安全 数据采集 人工智能
|
8天前
|
Linux API iOS开发
【DSH】DeepSeek Harness新手保姆教程(下载+安装+配置+使用,2026最新实测)
DeepSeek Harness(dsh)是 DeepSeek AI 开源的智能体框架,秉持“一切皆插件”理念,支持读文件、改代码、执行命令、处理表格等自动化任务;免费开源,兼容 Win/macOS,需配 API 密钥使用。(239字)
1428 5
|
15天前
|
人工智能 开发工具 开发者
2026最新codex下载安装保姆级使用教程(下载+安装+登录+使用,含所有历史版本)
Codex 是 OpenAI 推出的开源 AI 编程智能体,跑在本地终端和桌面客户端里,能读懂整个代码仓库,一句自然语言就能让它改代码、执行命令、跑测试、修 Bug,支持 Windows、macOS、Linux 三大平台。本文把 Codex下载、安装、登录、汉化、基础使用一次讲全,并整理了国内用户最常踩的坑,跟着做 10 分钟就能跑起来。
2493 8