Chris Twigt

Greenhorn
+ Follow
since Jan 16, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Twigt

I get your point. I'd need to get that statement as the first statement to Oracle from my application, right ?

But the credentials that I use in my connection pool do not allow me to execute that statement.
And rightfully so, security is okay. However, even if my credentials do have enough rights to
execute the statement, where do I find the logging output and will it contain - next to the queries -
the values that are inserted/updated ?

Regards,
Chris



Hi,

I'm using WebLogic 10 and Oracle 10.
I'm getting an error message from Oracle saying nothing more than something like this:

"some value is too large for some column in some table. There is some precision problem".

There is no information about the value that I'm trying to insert/update.
There is no information about the column I try to insert/update.
There is no information about the table I try to insert/update.
There is no information about the SQL statement I try to execute.

All of this information is probably available in the Oracle code that throws this error message,
but the programmer that programmed that part apparently decided to not supply this information,
nor did any of his colleagues - over the past 30 years - decide that this error message is
begging to be patched.

The error comes out of the Oracle JDBC driver when I try to execute a SELECT statement.
It triggers a batch statement that is apparently delayed. It is triggered by 1 of several
thousands of SQL statements and I need to get a SQL trace.

How do I get a trace of SQL statements from Oracle? I'd guess that by now,
that is a matter of simply flipping a switch in Oracle. But somehow I get the
feeling that I'm hitting another 30-year maintenance-deprived area of Oracle...

Can anyone help me get a SQL trace from Oracle the easy way?

Regards,
Chris