• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

bad sub

Why it says like this
how can we correct this,,

[newuser@newmac ~]$ export LD_LIBRARY_PATH=${/oracle/app/oracle/product/11.2.0/db}/lib:/lib:/usr/lib:/usr/local/lib
-bash: LD_LIBRARY_PATH=${/oracle/app/oracle/product/11.2.0/db}/lib:/lib:/usr/lib:/usr/local/lib: bad substitution
[newuser@newmac ~]$
1 Solution
johnsoneSenior Oracle DBACommented:
It should be:

export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/lib:/usr/lib:/usr/local/lib


export LD_LIBRARY_PATH=/oracle/app/oracle/product/11.2.0/db/lib:/lib:/usr/lib:/usr/local/lib

You cannot have the value of the ORACLE_HOME variable in the brackets, otherwise it is interpreting that as the name of the variable you are trying to substitute.
jcob_lAuthor Commented:
Understood my mistake..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now