Hi
I am following the guidelines to add the Oracle variables in the program.
However, it does not work.
Here is my program:
#!/bin/ksh
# the next line restarts using tclsh \
exec /usr/bin/tclsh "$0" "$@"
lappend auto_path /usr/share
set ::env(ORACLE_BASE) /usr/vendor/pkg/oracle
set ::env(ORACLE_HOME) /usr/vendor/pkg/oracle/product/current
set ::env(LD_LIBRARY_PATH) /usr/vendor/pkg/oracle/product/current/lib
package require Oratcl
exit 0
The error I get is:
Oratcl_Init(): Failed to load /usr/vendor/pkg/oracle/product/current/lib/libclntsh.so with error libnnz11.so: cannot open shared object file: No such file or directory
while executing
"load /usr/share/Oratcl4.5/
libOratcl4.5.so"
("package ifneeded Oratcl 4.5" script)
invoked from within
"package require Oratcl"
(file "./ora.tcl" line 24)
The took the assigned values from the shell.
When these variables are set and exported in the shell, everything works well.
OS: RHEL 6.4 x86_64
Oracle client: 11.2.0.2.0
Oratcl: 4.5
What am I doing wrong?
Thanks
Avi