i want to create a cron job for export.
the command runs properly when executed on shell prompt.
but cron gives exp:0056 and ora:12154 error( tns)
"could not resolve service name"
why should it need tns for local access?
i even created a tns entry just to check but still didn't work.
ok, ok, ok ... so here are some ideas :
1st and most important) CHECK YOUR ENV !!
be VERY careful because when using cron, you rarely have the environment you think you have. if you're using root crontab, what I usually do is, in the crontab, call a shell like :
that way I am sure that my env is correct.
I guess you can do exactly the same using exp instead of sqlplus, the idea is just to be sure that the env is correct
2) check you have enough space left on device to create dump file
3) check that listener.ora file does not contain GLOBAL_DBNAME parameter
Bookmarks