|
From: Goodwin, M. <Mal...@hp...> - 2006-07-21 13:58:17
|
I have an application that interacts with an oracle database. The
application is written in=20
C++ and uses embedded sql to interact with the database.
I would like to run this appliation with valgrind, but it gives me a
problem when the=20
application is connecting to the oracle database, oracle gives an error
as follows.
ORA-12546: TNS:permission denied (-4)
When I run the app as I normally would, the appliation has no problem
establishing a=20
db-connection and it runs fine.
I wonder if the application run under a different user when executing
under valgrind?
Browsing though the list I do see references to Oracle - I must not be
the first one trying this.
I am running with valgrind V3.2, Using RedHat Linux, Oracle version is
currently 9.206
>> valgrind --version
valgrind-3.2.0
>> gcc -v
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
>> proc -v
Pro*C/C++: Release 9.2.0.6.0=20
Regards
Malin Goodwin
|
|
From: Ivan S. <isj...@i1...> - 2006-07-23 10:28:15
|
On Friday 21 July 2006 15:58, Goodwin, Malin wrote: > I have an application that interacts with an oracle database. The > application is written in > C++ and uses embedded sql to interact with the database. > I would like to run this appliation with valgrind, but it gives me a > problem when the > application is connecting to the oracle database, oracle gives an error > as follows. > > ORA-12546: TNS:permission denied (-4) > > When I run the app as I normally would, the appliation has no problem > establishing a > db-connection and it runs fine. > > I wonder if the application run under a different user when executing > under valgrind? > Browsing though the list I do see references to Oracle - I must not be > the first one trying this. I am not sure that it is helpful to you, but I have successfully run Oracle programs under Valgrind. Oracle 10.1 linux, Valgrind 3.1, program is using Pro*C The only issue I had was that Oracle's libclntsh is using some entropy-gathering to handle the authentication, and random uninitialized bits cause a lot of warnings in Valgrind, and needs at least 14 supression rules to quiet. Come to think of it - I may have run the program as root. due to other issues. Maybe that has avoided the problem you see. Regards, Ivan |