Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This is almost guaranteed to be your problem. Bruce describes it well. It is largely an environment (PATH, LD_LIBRARY_PATH ) issue combined with making sqlplus behave as you want. Commented Jan 13, 2015 at 20:47
  • Thanks Bruce, But my .profile indeed contains : PATH=/usr/sbin:$PATH:/sbin:/opt/oracle/product/102010_cl_64/cl/bin:/opt/oracle/product/102010_cl_64/cl/lib:/usr/local/sbin:/opt/oracle/product/102010_cl_64/cl/bin export PATH and ORACLE_HOME=/opt/oracle/product/102010_cl_64/cl export ORACLE_HOME but it is still not setting the variable value. Commented Jan 14, 2015 at 11:48
  • @user3377923 - your .profile may indeed contain that, but your script doesn't source .profile, it executes it. put ". " (dot space) in front of "~/.profile" to get ksh to source .profile rather than execute it. Commented Jan 14, 2015 at 14:52