This content has been marked as final. Show 20 replies
The ORA-03113: end-of-file on communication channel question is a FAQ - you should have done a little research first.
This error is a client driver error - that is the OCI saying "hey, the server closed my network connection to it".
The reason for the server doing this is usually because of an internal error in the Oracle server process servicing that session. It terminates, writes dumps and traces, and tears down any open network connection it owns. Typically this is a result of an ORA-0600 error.
Thus you will need to look at the Oracle instance's alert log for details of the trace file created by this error, and in the trace file for details on the actual error itself.
UTL_MATCH is an oracle package. jaro_winkler_similarity is a function from that package which measure the difference between two strings. I suppose this function uses a variant of Levenhstein function and I think it's quite good to find similarities between strings.
There are some problem regarded to that function, but I don't know how to trace it.
Incidentally I failed to recreate your error on 10.2.0.2. What version are you on? Can you post a full example? Also it is possible your error is data related - does query work with any subset of data?
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options SQL> SELECT a.ename, b.ename, 2 UTL_MATCH.JARO_WINKLER_SIMILARITY ( 3 a.ename, b.ename) jws 4 FROM (SELECT ename, ROWNUM empno 5 FROM (SELECT ename 6 FROM emp 7 ORDER BY DBMS_RANDOM.VALUE)) a, 8 (SELECT ename, ROWNUM empno 9 FROM (SELECT ename 10 FROM emp 11 ORDER BY DBMS_RANDOM.VALUE)) b 12 WHERE b.empno = a.empno; ENAME ENAME JWS ---------- ---------- ---------- ADAMS MILLER 0 JAMES ALLEN 60 WARD BLAKE 48 CLARK JAMES 46 TURNER SMITH 0 SCOTT CLARK 46 KING ADAMS 0 JONES FORD 48 MILLER TURNER 55 SMITH SCOTT 64 BLAKE MARTIN 45 MARTIN JONES 0 FORD KING 0 ALLEN WARD 48 14 rows selected. SQL>
I think the jaro_winkler_similarity function doesn't work propertly with some characters. I use a UTF8 database, but maybe there are some incorrect conversions from ISO-8859-1 words due to the automatic process responsible for filling the table from different sources.
Is it possible that the jaro_winkler function crash with some characters in unicode?
just a note: the trace shows a "Invalid permissions for mapped object" but i'm logged as sys (sysdba)
Another part from the trace file:
Exception signal: 11 (SIGSEGV), code: 2 (Invalid permissions for mapped object), addr: 0x40fc5000, PC: [0xb7e761a, pi_jaro_winkler_int()+340]
%eax: 0x00000008 %ebx: 0x40fc4ff8 %ecx: 0x0000004f
%edx: 0x00000000 %edi: 0x40ea4844 %esi: 0x0000001c
%esp: 0xbfffb210 %ebp: 0xbfffb268 %eip: 0x0b7e761a
pi_jaro_winkler_int()+328 (0xb7e760e) mov 0xffffffd4(%ebp),%ebx
pi_jaro_winkler_int()+331 (0xb7e7611) mov %esi,0xffffffd0(%ebp)
pi_jaro_winkler_int()+334 (0xb7e7614) mov 0x1c(%ebp),%esi
pi_jaro_winkler_int()+337 (0xb7e7617) mov %edi,0xffffffc0(%ebp)
pi_jaro_winkler_int()+340 (0xb7e761a) movzb (%ebx,%eax),%edxpi_jaro_winkler_int()+344 (0xb7e761e) add $1,%eax
pi_jaro_winkler_int()+347 (0xb7e7621) cmp $49,%edx
pi_jaro_winkler_int()+350 (0xb7e7624) jz 0xb7e7748
pi_jaro_winkler_int()+356 (0xb7e762a) cmp %esi,%eax
The error code "pi_jaro_winkler_int()+340" does not turn up anything from the ORA-00600/ORA-07445 Lookup Tool (https://metalink.oracle.com/metalink/plsql/f?p=130:14:2411138155659266148::::)
Which could mean that this is an undocumented or unpublished bug. It can be very frustrating and time consuming to attempt to resolve such a bug by oneself. I suggest that you download RDA, run it on your instance, and open an iTar with Oracle support, attaching the trace and RDA files.
but i'm logged as sys (sysdba)Well you shouldn't be, but I don't think this has anything to do with Oracle permissions.
ORA-07445 is the generic OS equivalent error to ORA-00600, the generic Oracle internal error. As I understand it SIGSEV (aka segmentation fault) is raised by the OS when an invalid memory reference is made, which rather implies a problem with the C library referenced by this function.
Does it have anything to do with UNICODE? No idea but it may be interesting to narrow down this to specific data examples which provide evidence for your suggestion.
Of course Jaro Winkler is a very cool name for a function and we should all remember to drop it into conversation in development meetings to impress our fellow developers.
I haven't found anything that explicitly states it is supported, but there seems to be a fair bit of information about it, both electronic and paper publications:
Re: double metaphone