I am creating a script to extract the data from one DB and inserting the rows to another DB using the sql loader. I have developed all the scripts and compiled in the .ksh file and need to run the file but before I need to set the environment for using the tnsnames.ora file. Earlier, I had been manually giving the setenv command to set environment but I tried to set using the command in the .ksh file
set TNS_ADMIN = /abc/tnsnames.ora; export TNS_ADMIN
but the environment is not getting set.
I have started the shell using #!/bin/ksh
but no avail.
SHELL = /bin/csh