Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Strange 10046 behaviour when java involved.
Hello list
I've been using java to perform various tasks in the database for some time now. However, I just noticed today that 10046 behaves quite odd in conjunction with java calls.
I tested this on 10.1.0.3, and am wondering if this behaviour is expected:
create or replace and compile java source named java_test
as
import java.lang.*;
public class java_test
{
public static int print_test(String foo)
{
try {
System.out.println("hi there!\n");
}
finally
{
return 0;
}
}
}
/
create or replace function run_java_test (x in varchar2) return number
as
language java name 'java_test.print_test(java.lang.String) return integer';
/
alter session set events '10046 trace name context forever, level 12';
select run_java_test('foo') from dual;
alter session set events '10046 trace name context off';
Then look at the resulting trace file :)
/eva1_data2/SCANS/admin/udump/scans_ora_809282.trc
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /eva1_data2/SCANS/oracle
System name: OSF1
Node name: sr-ac99-0181 Release: V5.1 Version: 2650 Machine: alpha
anyone experience this before ??
Stefan
-- http://www.freelists.org/webpage/oracle-lReceived on Thu May 11 2006 - 04:16:11 CDT
![]() |
![]() |