Wednesday, 20 March 2019

Linux: Set Environment Variable

Step -1

Need to vi (Editor) to .bashrc

vi .bashrc










Step -2

Add the environment variable which we want to add like

export my_path=/home/user

Now save and exit

Esc
:wq!










Now update the .bashrc

. .bashrc  enter










Now check echo $my_path








All Steps -

1. vi .bashrc
2. export my_path=/home/user
3. Esc :wq!
4.  . .bashrc
5. echo $my_path

Thanks
DB Tech Solutions

Prerequisite Check “CheckActiveFilesAndExecutables” Failed

While applying a patch to oracle binary using opatch utility, got below error. Error -  $ORACLE_HOME/OPatch/opatch apply Oracle Interim Patc...