?
Solved

otl_connect.rlogon API call hangs

Posted on 2014-04-04
7
Medium Priority
?
726 Views
Last Modified: 2014-04-08
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,
0
Comment
Question by:LolaPet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 39978578
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?
0
 

Author Comment

by:LolaPet
ID: 39978726
JKR, Thanks for your help.

I am calling the below methods:

otl_connect objConn;
otl_connect::otl_initialize();
objConn.rlogon(userid/passwd@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.
0
 
LVL 86

Expert Comment

by:jkr
ID: 39979143
The environment could well be an issue... so maybe the timeout can help...
0
Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

 

Author Comment

by:LolaPet
ID: 39979163
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.
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 39979210
Not familiar with the OTL 4 libraries but that error appears to be a known bug in the Oracle 10g client.

Check out:
https://community.oracle.com/message/1110985
0
 

Author Comment

by:LolaPet
ID: 39979262
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.
0
 

Author Comment

by:LolaPet
ID: 39986754
Hi slightwv,

I built my binaries using 11g libaries and it worked. Thank you very much for your solution.

Regards
LolaPet
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question