<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
body{font-family:'Tahoma';font-size:10pt;font-color:'#000000';}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
body{}
--></style>
</head><BODY ><div><SPAN style="font-size:10pt;">Dear Martin,</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-size:10pt;">Yes, I also tried &#160;"expires" and "last_modified" with date type, however it only stored date information, no time information, but on mysql the openser stores both date and time. I dont know if with no time information the openser will work smootly or not.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-size:10pt;">I will try to change something as your recommendation and test again, hope to get something better.</SPAN></div>
<div><SPAN style="font-size:10pt;">I will feedback to you about the test..</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-size:10pt;">Best regards,</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-size:10pt;">Tung<br /><br /></span></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; hi,</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; I think you should set the "expires" and "last_modified" field to</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; date and not timestamp. And also a small hint.....the fields with</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Datatype number - constrain them to a distinct size. username</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; should not be nullable! &#160; hope this helps, otherwise contact me! &#160;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; regards Martin</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; From: Tung Tran [<a href="mailto:tr.tung@gmail.com]">mailto:tr.tung@gmail.com]</a></SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Sent: Wednesday, October 03, 2007 4:15 PM</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; To: Gruber Martin (IFKL IT OS NV)</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Cc: users@openser.org</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Subject: RE: [OpenSER-Users] Error when connect to Oracle via ODBC.</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Hi,</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; This is the structure of my location table.</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; If you need any information please let me know..</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Thanks for your help in advanced</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Regards</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt; Tung</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:navy;">&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Hi,</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; please send me the structure of your location table.</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; regards</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; martin</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; From: Tung Tran [<a href="mailto:tr.tung@gmail.com]">mailto:tr.tung@gmail.com]</a></SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Sent: Wednesday, October 03, 2007 8:55 AM</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; To: Gruber Martin (IFKL IT OS NV)</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Cc: users@openser.org</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Subject: RE: [OpenSER-Users] Error when connect to Oracle via</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; ODBC.</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Dear Martin,</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; I am using Openser 1.2.2 and the odbc lib is libsqora.so.10.1 I</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; also follow the guide on web to batch the unixodbc module and it</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; runs with the error I just report.</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; (<a href="http://openser.org/pipermail/users/2007-August/012532.html">http://openser.org/pipermail/users/2007-August/012532.html</a>)</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Please help,</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Regards</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt; Tung</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:maroon;">&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Hi,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; what version of OpenSER do you use. Seems that something in the</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; source is not running well. Check out the newest version first.</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; If it is not the case let me know!</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; regards</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Martin</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; From: users-bounces@openser.org [<a href="mailto:users">mailto:users</a>-</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; bounces@openser.org] On Behalf Of Tung Tran Sent: Wednesday,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; October 03, 2007 7:18 AM To: users@openser.org</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Subject: [OpenSER-Users] Error when connect to Oracle via ODBC.</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Hi all,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; I am trying to connect Openser with Oracle via odbc. So far I</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; can</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; connect sucessfully to Oracle DB via unixODBC module, I can</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; register and make call,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; However I got this error from Openser debug that I dont know it</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; may effect to Openser operation</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:1:920:[Oracle][ODBC][Ora]ORA-</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 00920: invalid relational operator</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:2:920:[Oracle][ODBC][Ora]ORA-</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 00920: invalid relational operator</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499) db_raw_query: Error while submitting query &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; ERROR:usrloc:get_all_db_ucontacts: raw_query failed &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect, rv=100. Query= delete from location</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; where</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; expires</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; expires!=to_date('1970-01-0107:00:00','YYYY-MM-DD HH24:MI:SS') &#160;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499) unixodbc:SQLExecDirect, rv=-1. Query= select received,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; contact, socket, cflags from location where expires &gt; now() and</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; cflags &amp; 64 = 64 &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:1:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160; &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:2:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499) db_raw_query: Error while submitting query &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; ERROR:usrloc:get_all_db_ucontacts: raw_query failed &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect, rv=-1. Query= select received, contact,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; socket, cflags from location where expires &gt; now() and cflags &amp;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 64 = 64 &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:1:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160; &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:2:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 1(9499) db_raw_query: Error while submitting query &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; ERROR:usrloc:get_all_db_ucontacts: raw_query failed &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect, rv=-1. Query= select received, contact,</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; socket, cflags from location where expires &gt; now() and cflags &amp;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; 64 = 64 &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:1:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160; &#160;1(9499)</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; unixodbc:SQLExecDirect=HY000:2:920:[Oracle][ODBC][Ora]ORA-00920:</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; invalid relational operator &#160; &#160;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Should anyone sucess customize Openser to work smoothly with</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Oracle? please help.</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt;</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Thanks and regards</SPAN></div>
<div><SPAN style="font-size:10pt;color:purple;">&gt;&gt;&gt; Tung</SPAN></div>
</body></html>