Please tell me what is the use of TNS_ADMIN parameter in Oracle? I am working on Unix using oracle database.
Is this parameter is required to locate the sqlplus. I am executing a script in which a update query is executed on Oracle Database.
The script fails with 127 error code when executed with crontab.
The script contents I suspect (eval) failing are
----------
cmd='sqlplus ${ORALOGIN} < SQLS
----------
eval $cmd
TNS_ADMIN tells sqlplus where to find the tnsnames.ora file.
If you are running sqlplus from a crontab then the normal reason for having difficulty are:
Check these things and other environment related items. It always takes me a number of passes to get crontab and Oracle to work happily together.