Problem:
If there is a need to run Server Express and Java with multiple versions of Oracle on the same machine, how can it run with one installation of Server Express?
There would have to be an rtsora runtime executable created for each release.
How can cobrun or cobjrun access the correct rtsora?
Resolution:
Use rtsora to execute their applications, rather than
cobrun? i.e.
# Make no changes to $COBDIR/bin/rts32* or $COBDIR/bin/rts64*
# User 1:(i.e. Oracle 9)
PATH=oracle[9]home/bin:$PATH
LIBPATH=oracle[9]home/lib:$LIBPATH or SHLIB_PATH or LD_LIBRARY_PATH according to platform
rtsora myapp.int --> will use the rtsora from $ORACLE_HOME/bin
# User 2:(i.e. Oracle 10)
PATH=oracle[10]home/bin:$PATH
LIBPATH=oracle[10]home/lib:$LIBPATH or SHLIB_PATh or LD_LIBRARY_PATH according to platform
rtsora myapp.int --> will use the rtsora from $ORACLE_HOME/bin
To debug, set COBSW= A, and execute rtsora.
To use cobrun: create a callable shared object containing Oracle support. Place the "rtsora_t.so" in the appropriate $ORACLE_HOME/lib or lib32 directory and set the LIBPATH=oraclehome/lib:$LIBPATH or SHLIB_PATH or LD_LIBRARY_PATH according to platform.
To invoke a Java/COBOL application, then per the Knowledge base article 22062 create a callable shared object containing Oracle support.Pllace the "rtsora_t.so" in the appropriate $ORACLE_HOME/lib or $ORACLE_HOME/lib32 directories (for 64-bit and 32-bit
respectively), depending on whether to use the Oracle 9 or Oracle 10 client software and set the
LIBPATH=oraclehome/lib:$LIBPATH or SHLIB_PATH or LD_LIBRARY_PATH according to platform.