On 31.03.2016 17:16, John Landmesser wrote:
Hi,
i developed an application ( Linux ) that need to know where
$ORACLE_HOME points to.
The only way was to start my app with a shell-script, defining:
#! /bin/bash
export ORACLE_HOME=/usr/lib/oracle/....
# run my app
Lazarus_Oracle_app
Had no success defining this variable in bashrc or profile.
But why do i have to define this in my start-script?
Annotation:
perhaps i have to search the sources of ZeosLib, that i'm using
because of german Umlauts-problems in OracleConnection
Thanks for tipps!!
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
i think i found the explanation:
oracle tells me:
3. Set the environment variable LD_LIBRARY_PATH to the appropriate
directory for the Instant Client version, for example:
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib:$LD_LIBRARY_PATH
so $ORACLE_HOME is not needed but on modern Linux
LD_LIBRARY_PATH is ALLWAYS empty, even if its declared in bashrc or profile
I didn't tell you that i defined LD_LIBRARY_PATH in my script and
LD_LIBRARY_PATH is blanked as i remember and testet just now.
Debian Sid.
Uh thats all really tricky and i'm no geek :-))
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus