how to set dynamic variable whose value depends on another variable value
Hello
Greetings
For X7+ & Oracle Linux Server release 7.7+
I want to set up a dynamic variable for OSUser environment..
for Example:
if my DB_NAME is xyz, ORACLE_SIDs i will have is xyz[1-4].. if have multiple databases running on same host every time i switch environment i have to set DB_NAME to go to alert locations & other things..
i would like to set DB_NAME=${ORACLE_SID%?} globally as such that,
if i set ORACLE_SID=xyz2, my DB_NAME gets set to xyz
& if i change ORACLE_SID=abc2, it gets updated to abc
I would like to avoid while loop running infinitely if possible..