oerr的用法

C# WinForm Chart控件鼠标滚轮缩放失灵?三步搞定焦点问题与平滑缩放实现 本文深入探讨了C# WinForm中Chart控件鼠标滚轮缩放失灵的常见问题,提供了三种解决方案:焦点控制法、全局消息钩子技术和自定义Chart控件实现。通过详细的代码示例和优化技巧,帮助开发者快速修复交互问题并实现平滑缩放功能,提升数据可视化应用的用户体验。 阅读详情
在看盖国强的《深入浅出——DBA入门、进阶与诊断案例》的时候发现了这个命令,觉得很好用,于是汇总如下。
一、基本用法
[oracle@root]oerr --help
Usage: oerr facility error

Facility is identified by the prefix string in the error message.
For example, if you get ORA-7300, "ora" is the facility and "7300"
is the error.    So you should type "oerr ora 7300".

If you get LCD-111, type "oerr lcd 111", and so on.
[oracle@root]oerr --info
Usage: oerr facility error

Facility is identified by the prefix string in the error message.
For example, if you get ORA-7300, "ora" is the facility and "7300"
is the error.    So you should type "oerr ora 7300".

If you get LCD-111, type "oerr lcd 111", and so on.
[oracle@root]man oerr
No manual entry for oerr.
[oracle@root]
由上面的公式就可以知道了,oerr使用方法大体如下:
[oracle@root]oerr ora 00600   ----查询ora-00600错误的描述信息
00600, 00000, "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
// *Cause:    This is the generic internal error number for Oracle program
//                 exceptions.    This indicates that a process has encountered an
//                 exceptional condition.
// *Action: Report as a bug - the first argument is the internal error number
[oracle@root]oerr lcd 111       ----查询lcd-111错误的描述信息
111, 0, "value not in legal range [%.*s]"
// *Cause: The value of the parameter is outside bounds
// *Action: Refer to the manual for the bounds on the parameter
[oracle@root]
二、简单的看看oerr命令脚本
1.位置
[oracle@root]which oerr
/data/oracle/oracle/product/10.2.0/bin/oerr
[oracle@root]cd /data/oracle/oracle/product/10.2.0/bin
2.内容
[oracle@root]more oerr
#!/bin/sh
#
# $Id: oerr 28-aug-2001.15:35:03 mkrohan Exp $
# Copyright (c) 1994, 2001, Oracle Corporation.    All rights reserved.    
#
# Usage: oerr facility error
#
# This shell script is used to get the description and the cause and action
# of an error from a message text file when a list of error numbers are passed
# to it.    It supports different language environments and errors from different
# facilities.
#

#
# Turn on script tracing if, requested
[ "$ORACLE_TRACE" = "T" ] && set -x

#
# If ORACLE_HOME is not set, we will not be able to locate
# the message text file.
if [ ! "$ORACLE_HOME" ]
then
                echo "ORACLE_HOME not set.    Please set ORACLE_HOME and try again." 1>&2
                exit 1
fi

#
# Ignore user locale
LC_ALL=C
export LC_ALL

#
# Definition script "constants"
Facilities_File=$ORACLE_HOME/lib/facility.lis

#
# Check script usage
if [ "$#" != "2" ]
then
                exec 1>&2
                echo 'Usage: oerr facility error'
                echo
                echo 'Facility is identified by the prefix string in the error message.'
                echo 'For example, if you get ORA-7300, "ora" is the facility and "7300"'
                echo 'is the error.    So you should type "oerr ora 7300".'
                echo
                echo 'If you get LCD-111, type "oerr lcd 111", and so on.'
                exit 1
fi

#
# Pickup the command line arguments
Facility= "$1"
Code= "$2"

#
# Get the facility information from the oerr data file
Fac_Info=`grep -i "^${Facility}:" $Facilities_File 2> /dev/ null`
if [ $? -ne 0 ]
then
                echo "oerr: Unknown facility '$Facility'" 1>&2
                exit 1
fi

#
# Parse the components from the Fac_Info string into Shell variables
eval `echo "$Fac_Info" | awk -F: '{
                                 if (index ($3, "*") == 0)
                                                printf ( "Facility=%s\n", $3);
                                 else
                                                printf ( "Facility=%s\n", $1);
                                printf ( "Component=%s\n", $2);
                                }'`
if [ -z "$Facility" -o -z "$Component" ]
then
                echo "oerr: Invalid facilities entry '$Fac_Info'" 1>&2
                exit 1
fi

#
# The message file searched is always the US English file
Msg_File=$ORACLE_HOME/$Component/mesg/${Facility}us.msg
if [ ! -r $Msg_File ]
then
                echo "oerr: Cannot access the message file $Msg_File" 1>&2
                exit 1
fi

#
# Search the message file for the error code, printing the message text
# and any following comments which should give the cause and action for
# the error.
awk "BEGIN { found = 0; }
                /^[0]*$Code/        { found = 1; print ; next;}
                /^\/\ //                 { if (found) { print; } next; }
                                                { if (found) { exit; } }" $Msg_File

exit 0
[oracle@root]
3.入口
Msg_File=$ORACLE_HOME/$Component/mesg/${Facility}us.ms
4.在$ORACLE_HOME/rdbms/mesg下有很多.msg文件、.msb文件
在$ORACLE_HOME/mesg下有几个.msb文件,可以发现
1)在$ORACLE_HOME/rdbms/mesg下的文件均为commands test,可以编辑但有部分乱码情况。
[oracle@root]file bbedus.msb
bbedus.msb:         commands text
[oracle@root]file bbedus.msg
bbedus.msg:         commands text
[oracle@root]
2)在$ORACLE_HOME/mesg下的文件为data类型
[oracle@root]file kfodus.msb
kfodus.msb:         data
[oracle@root]
为类似二进制文件,部分字符可以识别,但很多乱码。

5.发现
在$ORACLE_HOME/rdbms/mesg下有很多.msg文件中,可以找到ora-600的错误描述和命令oerr ora 00600一样的结果
[oracle@root]grep 00600 *.msg
kgpus.msg:00600, 00000, "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
ocius.msg:/     Use ORA-00600 messages for internal messages not to be seen by the user.
ocius.msg:/         BETTER    : ORA-00600, internal error, arguments: [ttcxxx], [], [], [], []
ocius.msg:/     Use ORA-00600 messages for internal messages not to be seen by the user.
oraus.msg:/     Use ORA-00600 messages for internal messages not to be seen by the user.
oraus.msg:/         BETTER    : ORA-00600, internal error, arguments: [ttcxxx], [], [], [], []
oraus.msg:/     Use ORA-00600 messages for internal messages not to be seen by the user.
oraus.msg:00600, 00000, "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
oraus.msg:16099, 00000, "internal error ORA-00600 occurred at standby database"
[oracle@root]
6.脚本执行路径
[oracle@root]sh -x oerr ora 00600
+ [    = T ]
+ [ ! /data/oracle/oracle/product/10.2.0 ]
LC_ALL=C
+ export LC_ALL
Facilities_File=/data/oracle/oracle/product/10.2.0/lib/facility.lis    ----调用facility.lis
+ [ 2 != 2 ]
Facility=ora
Code=00600
+ grep -i ^ora: /data/oracle/oracle/product/10.2.0/lib/facility.lis
Fac_Info=ora:rdbms:*:
+ [ 0 -ne 0 ]
+ + awk echo ora:rdbms:*:
-F: {
                                 if (index ($3, "*") == 0)
                                                printf ( "Facility=%s\n", $3);
                                 else
                                                printf ( "Facility=%s\n", $1);
                                printf ( "Component=%s\n", $2);
                                }
+ eval Facility=ora Component=rdbms
Component=rdbms Facility=ora
+ [ -z ora -o -z rdbms ]
Msg_File=/data/oracle/oracle/product/10.2.0/rdbms/mesg/oraus.msg  --定位在oraus.msg内,与上面查相符合
+ [ ! -r /data/oracle/oracle/product/10.2.0/rdbms/mesg/oraus.msg ]
+ awk BEGIN { found = 0; }
                /^[0]*00600/        { found = 1; print ; next;}
                /^\/\ //                 { if (found) { print; } next; }
                                                { if (found) { exit; } } /data/oracle/oracle/product/10.2.0/rdbms/mesg/oraus.msg
00600, 00000, "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
// *Cause:    This is the generic internal error number for Oracle program
//                 exceptions.    This indicates that a process has encountered an
//                 exceptional condition.
// *Action: Report as a bug - the first argument is the internal error number
+ exit 0
[oracle@root]

本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1086365

Oracle错误查看实用工具oerr Windows改编 Oracle在Unix及类Unix中提供了oerr使用程序,可根据错误编号查询错误的描述, 并指出发生错误的可能原因和解决办法,Windows的发布版本中却没有这部分内容, 虽然可使用后台API、SQL语句或者其它的查询工具能看到错误内容,但缺少了原因 和解决办法的内容,网上有Perl写的脚本替代品,但由于以来MinGW,使用起来很 不方便,通过参考类Unix中oerr的实现用Windows的批处理写了一份。 立即下载

相关推荐

Windows下的oerr安装及使用

Windows下的oerr安装及使用.rar

oerr工具介绍

1 oerr介绍 Oracle官网提供的Linux上查看Oracle错误的小工具。 2 使用方法 使用oerr查看ORA-xxx错误的原因及解决方案

喝醉酒的小白 2741

docker部署zabbix6.2.7+grafana

docker部署zabbix6.2.7+grafana。

qq_48391148的博客 3654

Oracle oerr工具介绍

(1)什么是oerr oerr是Oracle提供的在UNIX/Linux上查看Oracle错误的小工具,使用起来非常方便。 (2)如何使用 oerr工具位于ORACLE_HOME下面,可以使用which查看 [oracle@redhat6 ~]$ which oerr /u01/app/oracle/product/11.2.0/db_1/bin/oerr 使用oerr查看Or...

weixin_30306905的博客 179

立创开源Link Hub多功能USB扩展坞:CH339F主控+4层板设计,实测网口/存储性能

本文深度评测了立创开源Link Hub多功能USB扩展坞,其采用CH339F主控芯片与4层PCB板设计,并严格进行阻抗匹配。实测表明,该扩展坞的USB接口与microSD读卡器性能均接近USB 2.0理论极限,百兆以太网口转换效率高,性能损失极小。设计上注重电源保护与信号完整性,是一个兼顾稳定性与成本的高完成度开源硬件项目。

weixin_36173034的博客 155

Jenkins+docker 微服务实现自动化部署安装和部署过程

本文详细介绍了如何使用Docker部署Jenkins自动化服务器。主要内容包括:1)拉取Jenkins官方或BlueOcean镜像;2)创建容器并配置端口映射、数据卷挂载;3)设置防火墙规则;4)配置清华大学镜像加速;5)安装必要插件;6)SSH密钥配置;7)构建触发器设置;8)编写自动化构建脚本。通过Docker部署Jenkins可以简化安装流程,确保环境一致性,并利用容器特性实现快速启动和管理。文章提供了完整的配置步骤和注意事项,帮助用户快速搭建CI/CD环境。

qq_33665793的博客 1687

显示oracle home is not set,oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Li...

oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener解决方法安装好Oracle数据库后:执行dbstart和dbshut会提示:[oracle@oracle11g~]$dbstartORACLE_HOME_LISTNERisnotSET,unabletoauto-start...

weixin_34577766的博客 1133

细胞膜电学特性的分数阶微积分建模

分数阶微积分在细胞膜电学特性建模中的应用主要体现在对细胞膜的电容行为和神经元放电活动的更精确描述上。

冰河世纪20的博客 619

oerr 命令的使用

维护数据库中经常遇到问题,查错很麻烦,有时候只能看到错误代码,现在介绍一个实用的命令 oerr 溢出错误 oerr是一个简单而使用的命令工具,linux/unix 都可以使用,此命令可以根据错误代码快速查询到该错误的概要描述,根据该描述定位问题原因,也可以到metlink上查询错误信息: eg(溢出一个ora-600的错误): [oracle@oracle11g ~]$ oerr ora 6

跳动的数据 2744

5G LDPC编码实战:从校验矩阵到Matlab代码实现(附完整源码)

本文深入解析5G NR标准中的LDPC编码工程实现,聚焦于从3GPP协议中的QC-LDPC校验矩阵到高效Matlab代码的转换。文章详细阐述了基础矩阵(BG1/BG2)选择、提升因子确定以及利用双对角结构的快速编码算法,并提供了完整的、可优化的Matlab源码,旨在帮助通信算法工程师和开发者快速构建5G LDPC编码仿真原型,为硬件实现奠定基础。

table的专栏 376

C#上位机开发入门:从基础到进阶的全方位指南

C#作为一门现代化编程语言,具备强大的功能和广泛的生态支持,适合用于开发各种类型的上位机应用。通过学习并掌握UI开发、通信协议、多线程编程、数据库操作等技能,你可以打造出稳定、易用、性能优异的上位机软件。

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 8309

OERR用法

可以在Linux和UNIX操作系统上查询简短的报错信息的含义,可以很好的辅助排查故障。 这个小文儿介绍一下这个工具的使用方法,然后从oerr脚本中找点有意思的信息。 1.oerr的使用方法 [oracle@BJS ~]$ oerr ora 12571 12571, 00000, "TNS:packet writer failure" // *Cause: An error occur

FIGHT_ANGEL的专栏 1135

AutoSAR配置与实践(深入篇)5.4 OS原理(下 )- 内存保护(MPU)

ECU可能由内部模块、第三方模块等各模块集成的。需求对每个模块所定义的安全等级可能有差异,需要考虑不同安全等级的模块和代码间减少相互干扰,防止程序错误传播。可以理解为包含Task、Alarm、Counter、Schedule table、ISRs、Event等基本对象的容器,用于隔离Task/Alarm等,进行内存保护。

nihaoljq2010的博客 3534

Linux/Uninx下Oracle的oerr工具的使用

oerr是oracle在unix上的查找ora错误的小工具,极其方便。 命令格式为:oerr ora 错误编号 1 .先看看OERR 的位置 $ which oerr /oradev2/app/oracle/produ...

103

使用STM32实现简单的语音识别

此外,还需要将计算机的音频输出连接到外部音频放大器上,以便将测试语音播放到MAX9814麦克风模块。运行STM32代码后,系统将开始采集语音数据,并在采集完成后调用Python脚本进行MFCC特征提取。在本案例中,我们将使用STM32F4开发板、MAX9814麦克风模块和MFCC特征提取算法来实现语音识别。通过这个案例,我们可以了解到如何结合STM32开发板和Python实现语音识别,并可以根据需要进行相关扩展和优化。现在,我们可以编译和烧录STM32代码到开发板中,并准备好测试语音文件。

吃不胖. 1473

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

oracle not turn on,oracle通过oerr快速找到相应错误代码的概述及解决方案

“ORA-XXXX”是DBA们常见的错误类型,一般情况下我们可以在网上搜索带相关解释及处理方案,如果事故现场不能上互联网,而出现的错误又未曾遇到,那我们该怎么办呢?强大的ORACLE早已为我们考虑到这一点并提供了一个简单实用的工具:oerr,在linux或unix环境下,通过这个工具,可以快速找到相应错误代码的概述及解决方案。下面,就演示一下oerr的使用方法:语法操作系统命令行(管理员账号下):...

weixin_29214691的博客 238

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

Oracle oerr使用

[oracle@cuug ~]$ oerr ora 0155501555, 00000, "snapshot too old: rollback segment number %s with name \"%s\" too small"// *Cause: rollback records needed by a reader for consistent read are//...

dnil27295的博客 130

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

【探索】【oerr】对oerr出处的一点点探索

oerr可以在Linux和UNIX操作系统上查询简短的报错信息的含义,可以很好的辅助排查Oracle故障。这个小文儿介绍一下这个工具的使用方法,然后从oerr脚本中找点...

小麦苗DBA宝典 531

简介oracle oerr工具使用

oerr

Get_stupid的博客 2346

Oracle oerr 06413,剖析Oracle中oerr命令

Oralce中的命令非常丰富,oerr命令是一个不错的辅助工具,很多看起来没有眉目的错误代码,可以让DBA很快定位问题的缘由,我们根本不需要去记有哪些ORA错误,除非那些错误已经完全和你的工作分不开。绝大多数的命令都是二进制的形式,比如sqlplus我们可一窥其中的奥妙,oerr是一个shell脚本,而且实现原理也不难,我们来剖析一下,看看这个工具的设计思想。首先这个工具位于$ORACLE_HOM...

weixin_28567617的博客 257

oerr 命令

oerr是一个简单而非常有用的命令,linux/unix的平台安装完Oracle就已经带有了。window平台可以到网上下载这个命令可以快速的查询一个根据oracle错误号的查到错误概要描述比如[oracle@dxzq10 ~]$ oerr ora 94200942, 00000

欧辰的专栏 1万+

oracle windows 使用,Windows下使用oracle oerr工具安装及使用

Windows下使用oracle oerr工具https://www.cndba.cn/Expect-le/article/1737由于windows下安装oracle没有带oerr工具,查看相关错误信息有点麻烦。windows oracle 12c中已经有oerr这个工具了,只是还不能用,需要做一下修改即可。对于12c之前的数据库,就需要做比较大的安装配置,一个oerr的perl脚本。这个脚本的...

weixin_39942785的博客 286

oerr linux下的Oracle简单命令

oerr linux下的Oracle简单命令http://inthirties.com:90/thread-1284-1-1.html oerr是一个简单而非常有用的命令,linux/unix的平台安装完Oracle就已经带有了。window平台可以到网上下载这个命令可以快速的查询一个根据oracle错误号的查到错误概要描述比如[oracle@dxzq10 ~

1861

系统命令OERR查看oracle错误信息

参考文档:http://blog.itpub.net/23718752/viewspace-2082156/ oracle出现ORA-的错误信息时,可以使用系统命令oerr直接查看错误相关信息。 oerr命令得到的错误信息是$ORACLE_HOME/bin/路径下的bash文件oerr调用perl文件oerr.pl实现的。 本次测试系统版本是redhat6.6。 文件信息: [orac...

cowboy90的专栏 843
上一篇: 10g数据导入9i数据库方法实现
下一篇: solaris10的系统常用检查命令
Onlineforeve
博客等级 码龄18年 3粉丝 78原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值