HP
asked on
otl_connect.rlogon API call hangs
I am trying to connect to the oracle 11g database using the OTL 4.0 libraries in red hat Linux platform.
After passing the userid/passwd@db to the rlogon method, the otl_connect.rlogon call stucks and never returns. So, the application hangs. The issue is looks like some system library related issue.
Thanks for your help,
After passing the userid/passwd@db to the rlogon method, the otl_connect.rlogon call stucks and never returns. So, the application hangs. The issue is looks like some system library related issue.
Thanks for your help,
Are you calling 'set_connection_mode()' and 'set_program_name()' prior to 'rlogon()'? Also, what happens when you use 'set_timeout()' with an appropriate value?
ASKER
JKR, Thanks for your help.
I am calling the below methods:
otl_connect objConn;
otl_connect::otl_initializ e();
objConn.rlogon(userid/pass wd@db);
In some Linux boxes, the above code hangs. But in other system it works. So I think this issue may be due to the environmental (lib version etc) issue.
I will try your suggestions.
I am calling the below methods:
otl_connect objConn;
otl_connect::otl_initializ
objConn.rlogon(userid/pass
In some Linux boxes, the above code hangs. But in other system it works. So I think this issue may be due to the environmental (lib version etc) issue.
I will try your suggestions.
The environment could well be an issue... so maybe the timeout can help...
ASKER
Thanks jkr,
When I check the binary dependency (LDD), it looks fine. Since the binary was working in all other systems, I don't prefer to change the existing the code.
When I use strace, the below output is keep logging.
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
I am wondering how can I find the root cause of this issue.
When I check the binary dependency (LDD), it looks fine. Since the binary was working in all other systems, I don't prefer to change the existing the code.
When I use strace, the below output is keep logging.
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
times(NULL) = -838950935
I am wondering how can I find the root cause of this issue.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks slightwv.
I think your post will make sense to my problem. I can try updating my build machine with Oracle 11g client, rebuild the binaries and test it.
I think your post will make sense to my problem. I can try updating my build machine with Oracle 11g client, rebuild the binaries and test it.
ASKER
Hi slightwv,
I built my binaries using 11g libaries and it worked. Thank you very much for your solution.
Regards
LolaPet
I built my binaries using 11g libaries and it worked. Thank you very much for your solution.
Regards
LolaPet