iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > JAVA >OEM sql monitor 报错java.sql.SQLException: ORA-31011
  • 215
分享到

OEM sql monitor 报错java.sql.SQLException: ORA-31011

摘要

打开OEM -sql 监视页面,出现如下报错: java.sql.SQLException: ORA-31011: XML 语法分析失败ORA-19202: XML 处理 LPX-00225: 结束元素标记 "sql" 与起始元素标记 "a


	OEM sql monitor 报错java.sql.SQLException: ORA-31011
[数据库教程]

打开OEM -sql 监视页面,出现如下报错:

java.sql.SQLException: ORA-31011: XML 语法分析失败
ORA-19202: XML 处理
LPX-00225: 结束元素标记 "sql" 与起始元素标记 "action" 不匹配
Error at line 46376
时出错
ORA-06512: 在 "SYS.DBMS_SQLTUNE", line 15503
ORA-06512: 在 "SYS.DBMS_SQLTUNE", line 15612
ORA-06512: 在 line 1

截图如下:

技术图片

以前一直不知道为啥,今天终于在MOS上找到答案了

技术图片

参考文件:

OEM SQL Monitoring Page Throws ORA-31061: XDB error: special char to escaped char conversion failed error (Doc ID 1344065.1)

此情况不是一直存在,但每天有重复出现个几次。

原文内容如下,供参考:

APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.4 and later
Oracle Purchasing - Version 12.2.4 to 12.2.4 [Release 12.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
***** Checked for relevance on 11-Jan-2016 *****

SYMPTOMS
Getting the following error message when trying to use the SQl Monitoring page:

java.sql.SQLException: ORA-31061: XDB error: special char to escaped char conversion failed.
ORA-06512: at "SYS.DBMS_SQLTUNE", line 15487
ORA-06512: at "SYS.DBMS_SQLTUNE", line 15596
ORA-06512: at line 1

The issue is not persistent but re-appaer several times per day.

CAUSE
This error is reported because some illegal character exists in source data.. It is the correct behavior.
Workaround is to remove or replace the illegal character/s. However sometimes it may be hard to find where the illegal character comes from.

Bug 8246403 adds new functionality to replace illegal characters instead of raising ORA-31011 error.
SOLUTION
To fix this problem first apply database Patch 8246403 corresponding to your platform and DB version. If the patch does not exist then contact Oracle Support to request a new patch for your platform and DB version.

Note: If you are on 10.2.0.5 or 11.2 or higher version then you don‘t need this patch as it is already included in this release.

This Bug:8246403 is an XDB enhancement to add functionality to replace illegal characters instead of raising ORA-31011 error. This enhancement is protected by event 19119 and is disabled by default. This functionality is controlled by setting following levels under event 19119 -

- level 0x100000 : replace illegal character with "?"
- level 0x200000 : replace illegal character with character reference, i.e "&#x%04x;"
- level 0x400000 : remove the illegal character

To enable the event at a particular level perform the below steps -

SQL> ALTER SYSTEM SET EVENTS ‘19119 trace name context forever, level 0x100000‘;

or

Activate the event by adding it to the INIT.ORA parameter file -

event="19119 trace name context forever, level 0x100000"

restart the database for the event to take affect.

The above event setting will replace the illegal character with "?" and will allow your operation to complete without error.

OEM sql monitor 报错java.sql.SQLException: ORA-31011

原文地址:https://blog.51cto.com/2874575/2511290

--结束END--

本文标题: OEM sql monitor 报错java.sql.SQLException: ORA-31011

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

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

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

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

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作