Home » Developer & Programmer » Precompilers, OCI & OCCI » Problem In Running OCCI program on Linux
Problem In Running OCCI program on Linux [message #454587] Thu, 06 May 2010 06:36
sujata_batra
Messages: 2
Registered: February 2005
Junior Member
Hi,
I am tring to execute my occi program on linux and it is compling successfully but m getting runtime error. please can somebody help me.

m giving the following commandline to complie my program

g++ myocci.cpp -I/usr/lib/oracle//xe/app/oracle/product/10.2.0/server/rdbms/public -L/usr/liv/oracle/xe/app/oracle/product/10.2.0/server/lib -locci -lclntsh -lnnz10

./a.out
Error:
a.out: error while loading shared libraries :/usr/liv/oracle/xe/app/oracle/product/10.2.0/server/lib libnnz10.so: cannot restore segment prot after reloc: Permission Denied

and if m chaging my command line to
g++ myocci.cpp -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public -L/usr/liv/oracle/xe/app/oracle/product/10.2.0/server/lib -lnnz10 -lclntsh -locci

./a.out
Error:
a.out: error while loading shared libraries :/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib libocci.so.10.1: cannot restore segment prot after reloc: Permission Denied

and again if m chaging my command line to
g++ myocci.cpp -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public -L/usr/liv/oracle/xe/app/oracle/product/10.2.0/server/lib -lnnz10 -locci -lclntsh

./a.out
Error:
a.out: error while loading shared libraries :/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib libclntsh.so.10.1: cannot restore segment prot after reloc: Permission Denied

Can anybody please help me.

Thanks
Previous Topic: Pro*C structure (record) used as a rowtype parameter for an Oracle package?
Next Topic: Redefinition error when precompile more than one .pc file in a VC++ project
Goto Forum:
  


Current Time: Thu Mar 28 09:51:52 CDT 2024