CLOB to Oracle DB Target (large string causes issues)

235 views
Skip to first unread message

Ted Cooper

unread,
Feb 13, 2014, 9:38:05 AM2/13/14
to nlog-...@googlegroups.com
When inserting a large string message to Oracle from a C# application, we encounter a known Oracle issue:

ORA-01460 - unimplemented or unreasonable conversion requested

This problem occurs with strings over 4000 characters.  In ODP.NET you can beat it with some creative methods to call the database, per this link:


The suggested fix is to do the following: "Set the parameter value when BeginTransaction has already been called on the DbConnection."

However, with the DB configured as a target, I don't get this level of fine control to tweak how we call the stored procedure.

Similar to the person in the link, I'm trying to send a large amount of string data as XML to the DB for processing.

Is this something we could build into nLog, either as an optional parameter on the target for Oracle calls, or automatic based on the type of connection?

Kim Christensen

unread,
Feb 17, 2014, 5:37:15 PM2/17/14
to nlog-...@googlegroups.com

You could create a custom target which solves this problem. Unfortunately there are no way to perform this workaround in NLog

Steven Orvis

unread,
Jan 25, 2016, 2:44:28 PM1/25/16
to NLog-Users
I have a pull request for this same issue. Even if they don't merge the code you could create a custom DatabaseTarget and use the code from the pull request.

https://github.com/NLog/NLog/pull/1194
Reply all
Reply to author
Forward
0 new messages