Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
266 views
in Technique[技术] by (71.8m points)

tivoli work scheduler - TWS job is getting abended

While executing the job, I am getting below error Job.sh is the script - while executing it in tws I am getting below error

path of the script - job.sh: sqlplus: not found

Can any please help on this

Thanks

question from:https://stackoverflow.com/questions/65917533/tws-job-is-getting-abended

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I don't know how Tivoli works, but you are writing to run a "job.sh" script, so I assume it is a shell script. Normally when working with oracle it is a good idea to enter absolute paths, so your script could be

   #!/bin/sh
   $ORACLE_HOME=<your path of oracle installation>
   $ORACLE_SID=<your instance name>
   $PWD=<Position of your sql script>
    ..........
   $ORACLE_HOME/bin/sqlplus login/password @$PWD/script.sql

I hope that's what you were looking for.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...