---
title: "Running revised NetWitness oracle auditing xml files fails with error ORA-00904: : invalid identifier"
description: "Issue\nFollowed RSA Knowledgebase article, Error message \"ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion\" is reported when atte"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/running-revised-netwitness-oracle-auditing-xml-files-fails-with-error-ora-00904-invalid-identifier#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# Running revised NetWitness oracle auditing xml files fails with error ORA-00904: : invalid identifier

#### Issue

 Followed RSA Knowledgebase article, [Error message "ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion" is reported when attempting to configure Oracle ODBC collection in RSA Security Analytics.](https://mydev.netwitness.com/articles/en_US/Break_Fix/Error-message-ORA-22835-Buffer-too-small-for-CLOB-to-CHAR-or-BLOB-to-RAW-conversion-from-Oracle-ODBC-collection-in-RSA-NetWitness?popup=false&caseId=5004u00002YtEKR&sfdcIFrameOrigin=https%3A%2F%2Frsasecurity.my.salesforce.com&nonce=02816f6f174b442c5c7489679fb1a76a62e337ff22fdf312ffad4e9f56561132&hsLang=en)

Running with the revised NetWitness oracle\_10g\_auditing.xml and oracle\_11g\_auditing.xml files fails with error ORA-00904: : invalid identifier   
 

 Oct 18 21:47:43 NWDEC01 NwLogCollector\[148857\]: \[OdbcCollection\] \[failure\] \[oracle\_11g\_auditing.ORA11G\] \[processing\] \[ORA11G\] \[processing\]   
 An error occurred collecting ODBC events using query tag ORACLE.  Error: Unable to execute statement: Statement:   
"SELECT "SYS"."V\_$INSTANCE"."VERSION", '-', "SYS"."V\_$INSTANCE"."HOST\_NAME", '-', "SYS"."V\_$INSTANCE"."INSTANCE\_NAME", '-', '-', "SYS"."AUD$"."SESSIONID", "SYS"."AUD$"."ENTRYID", "SYS"."AUD$"."STATEMENT", CASE "SYS"."AUD$"."ACTION#" WHEN 101 THEN TO\_CHAR("SYS"."AUD$"."LOGOFF$TIME",'yyyy-mm-dd hh24:mi:ss') WHEN 102 THEN TO\_CHAR("SYS"."AUD$"."LOGOFF$TIME",'yyyy-mm-dd hh24:mi:ss') ELSE TO\_CHAR(cast((from\_tz("SYS"."AUD$"."NTIMESTAMP#" ,'00:00') at local) as date),'yyyy-mm-dd hh24:mi:ss') END "timestamp", "SYS"."AUD$"."USERID", "SYS"."AUD$"."USERHOST", "SYS"."AUD$"."TERMINAL", "SYS"."AUD$"."ACTION#", "SYS"."AUD$"."RETURNCODE", "SYS"."AUD$"."OBJ$CREATOR", "SYS"."AUD$"."OBJ$NAME", "SYS"."AUD$"."AUTH$PRIVILEGES", "SYS"."AUD$"."AUTH$GRANTEE", "SYS"."AUD$"."NEW$OWNER", "SYS"."AUD$"."NEW$NAME", "SYS"."AUD$"."SES$ACTIONS", "SYS"."AUD$"."SES$TID", "SYS"."AUD$"."LOGOFF$LREAD", "SYS"."AUD$"."LOGOFF$PREAD", "SYS"."AUD$"."LOGOFF$LWRITE", "SYS"."AUD$"."LOGOFF$DEAD", COALESCE(TO\_CHAR("SYS"."AUD$"."LOGOFF$TIME",'yyyy-mm-dd hh24:mi:ss'),' ') as LOGOFF$TIME, "SYS"."AUD$"."COMMENT$TEXT", "SYS"."AUD$"."CLIENTID", "SYS"."AUD$"."SPARE1", "SYS"."AUD$"."SPARE2", "SYS"."AUD$"."OBJ$LABEL", "SYS"."AUD$"."SES$LABEL", "SYS"."AUD$"."PRIV$USED", "SYS"."AUD$"."SESSIONCPU",   
  **dbms\_lob.substr**("SYS"."AUD$"."SQLBIND", 4000, 1) as SQL\_BIND, **dbms\_lob.substr**("SYS"."AUD$"."SQLTEXT", 4000, 1) as SQL\_TEXT   
 FROM "SYS"."AUD$", "SYS"."V\_$INSTANCE" WHERE (cast((from\_tz("SYS"."AUD$"."NTIMESTAMP#" ,'00:00') at local) as date) \> to\_date('2021-11-07 06:39:08','yyyy-mm-dd hh24:mi:ss') AND SYSDATE-(2/(3600\*24)) \> cast((from\_tz("SYS"."AUD$"."NTIMESTAMP#" ,'00:00') at local) as date) AND "SYS"."AUD$"."ACTION#" NOT IN (101,102)) OR ("SYS"."AUD$"."LOGOFF$TIME" \> to\_date('2021-11-07 06:39:08','yyyy-mm-dd hh24:mi:ss') AND "SYS"."AUD$"."ACTION#" IN (101,102) AND SYSDATE-(2/(3600\*24)) \> "SYS"."AUD$"."LOGOFF$TIME" )   
 ORDER BY 11 ASC";   
 Reason: state: 57; error-code: 140428250710920; description: \[RSA\]\[ODBC 20101 driver\]\[Oracle\] **ORA-00904: : invalid identifier**

The oracle\_10g\_auditing.xml and oracle\_11g\_auditing.xml files replaced the default files in the NetWitness Log Collector /etc/netwitness/ng/logcollection/content/collection/odbc/ directory.

#### Cause

 As the only change in the revised oracle\_10g\_auditing.xml and oracle\_11g\_auditing.xml files is to use the dbms\_lob.substr() function, it is likely the Oracle login that NetWitness uses does not have execute permission on the sys.dbms\_lob package (although the privilege is granted to PUBLIC by default).

NetWitness uses the dbms\_lob.substr() function to retrieve long (\>4,000 characters) CLOB fields.

The DBMS\_LOB package provides subprograms to operate on BLOBs, CLOBs, NCLOBs, BFILEs, and temporary LOBs. You can use DBMS\_LOB to access and manipulation-specific parts of a LOB or complete LOBs. The bulk of the LOB operations are provided by this package. This package must be created under SYS. Operations provided by this package are performed under the current calling user, not under the package owner SYS.

Reference: [Oracle DBMS\_LOB](https://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lob.htm#BABDDFDH)

#### Resolution

 Ask the Oracle DBA to run the following SQL with sys to check whether the login has the privilege to execute the DBMS\_LOB package.

select \* from dba\_tab\_privs where table\_name='DBMS\_LOB';

By default, you should see PUBLIC in the grantees.

If not, you can run the following SQL with sys to grant execute permission.

 grant execute on sys.DBMS\_LOB to public;

This returns the permission back to the default setting.  Also confirm the Oracle login that NetWitness is using is included in the public group.

Or if access to sys.DBMS\_LOB needs to be more restricted, then grant execute permission to the Oracle login that NetWitness is using.

 grant execute on sys.DBMS\_LOB to *\[user\]*;

Where *\[user\]* is the Oracle login that NetWitness uses.

If this doesn't resolve the issue have the Oracle DBA investigate if any of the following could be the cause.

1. There is no synonym dbms\_lob for sys.dbms\_lob in the database (although this public synonym should exist).
2. The sys.dbms\_lob package is not installed.
3. The schema contains some other package with the same name DBMS\_LOB.

#### Product Details

**RSA Product Set:** RSA NetWitness Platform   
**RSA Product/Service Type:** Log Collector   
**RSA Version/Condition:** 11.x   
**Platform:** CentOS   
**O/S Version:** 7   
**Product Name:** Oracle 10g, 11g

#### Summary

Running the revised SQL in the oracle\_10g\_auditing.xml and oracle\_11g\_auditing.xml files, it fails with error, ORA-00904: : invalid identifier.

#### Approval Reviewer Queue

RSA NetWitness Suite Approval Queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.