广告
返回顶部
首页 > 资讯 > 数据库 >oerr 工具使用汇总
  • 505
分享到

oerr 工具使用汇总

2024-04-02 19:04:59 505人浏览 独家记忆
摘要

oerr可以在linux和UNIX操作系统上查询简短的报错信息的含义,可以很好的辅助排查Oracle故障。1.oerr的使用方法[oracle@Bjs ~]$ oerr ora 1257112571, 00

oerr可以在linux和UNIX操作系统上查询简短的报错信息的含义,可以很好的辅助排查Oracle故障。

1.oerr的使用方法
[oracle@Bjs ~]$ oerr ora 12571
12571, 00000, "TNS:packet writer failure"
// *Cause: An error occurred during adatasend.
// *Action: Not nORMally visible to the user. For further details, turn
// on tracing and reexecute the operation. If error persists, contact
// Oracle Customer Support.

2.使用which命令查询oerr工具的位置
secooler@testdb /home/oracle$ which oerr
/u01/app/oracle/product/10.2/db10g/bin/oerr

3.看一下这个脚本文件记录的内容
secooler@testdb /home/oracle$ vi /u01/app/oracle/product/10.2/db10g/bin/oerr

脚本中 82 Msg_File=$ORACLE_HOME/$Component/mesg/${Facility}us.msg
这里似乎暗示着我们,所有的检索信息都是来自于这些*.msg文件

4.在ORACLE_HOME目录中使用find命令查找msg文件

[oracle@NcDbEmulator mesg]$ find $ORACLE_HOME -name mesg

/oracle/app/oracle/dbhome/network/mesg

/oracle/app/oracle/dbhome/has/mesg

/oracle/app/oracle/dbhome/usm/mesg

/oracle/app/oracle/dbhome/nls/mesg

/oracle/app/oracle/dbhome/racg/mesg

/oracle/app/oracle/dbhome/CSS/mesg

/oracle/app/oracle/dbhome/srvm/mesg

/oracle/app/oracle/dbhome/olap/mesg

/oracle/app/oracle/dbhome/oracore/mesg

/oracle/app/oracle/dbhome/plsql/mesg

/oracle/app/oracle/dbhome/ldap/mesg

/oracle/app/oracle/dbhome/sqlplus/mesg

/oracle/app/oracle/dbhome/ord/mesg

/oracle/app/oracle/dbhome/crs/mesg

/oracle/app/oracle/dbhome/odbc/mesg

/oracle/app/oracle/dbhome/xdk/mesg

/oracle/app/oracle/dbhome/mesg

/oracle/app/oracle/dbhome/precomp/mesg

/oracle/app/oracle/dbhome/slax/mesg

/oracle/app/oracle/dbhome/csmig/mesg

/oracle/app/oracle/dbhome/ctx/mesg

/oracle/app/oracle/dbhome/rdbms/mesg

/oracle/app/oracle/dbhome/opmn/mesg

[oracle@NcDbEmulator mesg]$ cd /oracle/app/oracle/dbhome/rdbms/mesg/

[oracle@NcDbEmulator mesg]$ ls *.msg

amduus.msg    dgmus.msg  gimus.msg   kfodus.msg  kopus.msg  nidus.msg  oraus.msg   sbtus.msg  udius.msg

asmcmdus.msg  diaus.msg  impus.msg   kfsgus.msg  kupus.msg  ocius.msg  qsmus.msg   smgus.msg  ulus.msg

dbvus.msg     expus.msg  kfedus.msg  kgpus.msg   lcdus.msg  opwus.msg  rmanus.msg  udeus.msg

.msb格式的文件是二进制文件。

从以上msg格式的文件,可以看出oerr可以查询的错误信息类型。例如:

oraus.msg 对应ORA错误,

$ oerr lrm 112

112, 0, "multiple values not allowed for parameter '%.*s'"

// *Cause: An attempt was made to specify multiple values for a parameter which

//         can take only one value.

// *Action: Do not specify more than one value for this parameter.


这是在使用expdp时使用directory参数不当时可能会产生的错误。

$ oerr exp 91

00091, 00000, "Exporting questionable statistics."

// *Cause:  Export was able export statistics, but the statistics may not be

//          usuable. The statistics are questionable because one or more of

//          the following happened during export: a row error occurred, client

//          character set or NCHARSET does not match with the server, a query

//          clause was specified on export, only certain partitions or

//          subpartitions were exported, or a fatal error occurred while

//          processing a table.

// *Action: To export non-questionable statistics, change the client character

//          set or NCHARSET to match the server, export with no query clause,

//          export complete tables. If desired, import parameters can be

//          supplied so that only non-questionable statistics will be imported,

//          and all questionable statistics will be recalculated.

$ oerr imp 17

00017, 00000, "following statement failed with ORACLE error %lu:"

// *Cause:  Import failed to execute the statement from the export file 

//          because of an Oracle error. 

// *Action: Look up the accompanying Oracle message in the ORA message 

//          chapters of this manual and take appropriate action. 


这是在使用EXP和IMP时可能产生的错误

OERR能检索的错误还有很多,包括CLSR、OCI、TNS、UDE等等。但是这些在Oracle官方文档里并没有说明。

您可能感兴趣的文档:

--结束END--

本文标题: oerr 工具使用汇总

本文链接: https://www.lsjlt.com/news/43475.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • oerr 工具使用汇总
    oerr可以在Linux和UNIX操作系统上查询简短的报错信息的含义,可以很好的辅助排查Oracle故障。1.oerr的使用方法[oracle@BJS ~]$ oerr ora 1257112571, 00...
    99+
    2022-10-18
  • MySQL 工具汇总
    收录了MySQL相关有用的工具。工具包含:性能测试,状态分析,SQL路由等方面 本文汇总了和MySQL运维开发相关的所有工具,并会持续更新 工具套件集 ·  &nb...
    99+
    2022-10-18
  • javascript 日期工具汇总
    let Utils = { isLeapYear: function(y) { return (y % 4 == 0 && y % 100 !=...
    99+
    2022-11-12
  • android 一些工具类汇总
    一 Paint ,Canvas public class drawView extends View{ private Paint paint1; public dr...
    99+
    2022-06-06
    工具类 工具 Android
  • 【Linux】环境基础开发工具使用(万字汇总)
    🎇Linux:环境基础开发工具使用 博客主页:一起去看日落吗分享博主的在Linux中学习到的知识和遇到的问题博主的能力有限,出现错误希望大家不吝赐教分享给大家一句我很喜欢的话...
    99+
    2023-09-05
    linux 服务器 网络
  • Java常用工具类汇总 附示例代码
    一、FileUtils private static void fileUtilsTest() { try { //读取文件内容 Stri...
    99+
    2022-11-12
  • Java常用工具类汇总以及示例代码
    今天小编给大家分享的是Java常用工具类汇总以及示例代码,相信很多人都不太了解,为了让大家更加了解,所以给大家总结了以下内容,一起往下看吧。一定会有所收获的哦。Java是什么Java是一门面向对象编程语言,可以编写桌面应用程序、Web应用程...
    99+
    2023-06-14
  • Android APP逆向分析工具和方法汇总
    一、概述 受益于移动设备的广泛普及,移动应用近年来得到了蓬勃发展。基于移动设备集成的各类传感器,众多功能丰富的移动应用被开发出来,聚集了大量高价值用户隐私数据,包括用户身份信息、地理位置信息、账户资料...
    99+
    2023-09-05
    android
  • 选择适合你的 IDE:Python 开发者必备工具汇总
    Python 是一种高级编程语言,越来越受到开发者的欢迎。与此同时,越来越多的 Python 集成开发环境(IDE)也在不断涌现。但是,如何选择适合自己的 IDE 呢?本文将为大家介绍一些 Python 开发者必备工具,帮助你选择适合自己...
    99+
    2023-07-30
    数组 文件 ide
  • percona-toolkit 使用汇总
    pt-online-schema-change pt-online-schema-change --nocheck-replication-filters --recursion-method=none -...
    99+
    2022-10-18
  • 分享软件测试必备的测试工具清单汇总
    目录前言我们将常用的测试工具分为10类测试软件列表:1.测试管理工具2.接口测试工具3.性能测试工具4.C/S自动化工具5.白盒测试工具6.代码扫描工具7持续集成工具8.网络测试工具...
    99+
    2022-11-12
  • Win8.1系统中画图工具查看图片功能汇总介绍
    电脑中的画图工具是我们比较常用的功能,Windows8.1的画图工具不但可以画图还可以对图片进行大小调整、改变图片格式、涂鸦等。下面要向大家介绍的是"查看"图片方面的功能。 一、图片的缩放 我们用画...
    99+
    2023-06-05
    Win8.1 画图工具 画图 查看图片 图片 工具 系统 功能
  • Vue3插槽使用汇总
    目录一、v-slot 介绍 二、匿名插槽 三、具名插槽 四、作用域插槽 五、动态插槽名 一、v-slot 介绍 v-slot 只能用在 template 或组件上使用,否则就会报错...
    99+
    2022-11-12
  • Java常用工具类总结
    目录一、线程协作、控制并发流程的工具类二、CountDownLatch倒计时门闩三、Semaphore信号量四、Condition接口(又称条件对象)五、CyclicBarrier和...
    99+
    2022-11-12
  • stackoverflow常用工具库总结
    目录简介API概览安装和使用简介 每个前端开发人员都有自己的 utils 库, 这些方法我们高频使用,但又要在每个项目中重写。 今天我要给大家介绍一款超小且实用的函数工具库:&nb...
    99+
    2023-03-06
    stackoverflow工具库 stackoverflow常用工具
  • Android 开发调试工具的使用总结
     Android 调试工具,这里做一个总结整理。 DDMS --  Dalvik debug monitor service    调试监控服务 对模拟器进行相关配置。 ADB...
    99+
    2022-06-06
    调试 工具 Android
  • 使用python-thrift问题汇总
    使用环境是Centos6.4,python版本2.7.3,thrift版本0.9.0。使用中遇到了以下问题:1. root:code for hash md5 was not found没有找到MD5的库,于是解释器又去寻找SHA1 SH...
    99+
    2023-01-31
    python thrift
  • spring cloud 使用oauth2 问题汇总
    OAth2是一个标准的授权协议。 在认证与授权的过程中,主要包含以下3种角色。 服务提供方 Authorization Server。资源持有者 Resource Server。客户...
    99+
    2022-11-13
  • Android使用EditText小技巧汇总
    目录1、隐藏android中EditText自带的的下划线2、让软键盘出现搜索按钮3、多行EditText的时候会出现光标在中间的问题:4、修改EditText的光标颜色5、通过监听...
    99+
    2022-11-12
  • Python中psutil模块使用汇总
    简介:psutil(进程和系统实用程序)是一个跨平台库,用于检索Python中运行进程和系统利用率(CPU、内存、磁盘、网络、传感器)的信息。它主要用于系统监视、分析和限制进程资源以...
    99+
    2022-11-12
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作