未找到db2命令-tvf - AIX与Linux中的Plink [英] db2 command not found -tvf - Plink in AIX vs. Linux
问题描述
我们有一个名为testsp.sh的简单shell脚本(位于/ home /
userid)
在shell脚本中,调用以下命令:
db2 -tvf callsp.sql
当shell脚本在命令行模式下运行时,它可以作为
预计
。
并在命令行中运行db2 -tvf ...它也可以工作。
使用plink运行时出现问题;
启动plink -pw< pwduserid @ db2_serv02 /home/userid/testsp.sh
确切的plink命令适用于Linux但是在AIX中失败。
错误:找不到db2:命令。
Justin写道:
我们有一个名为testsp.sh的简单shell脚本(位于/ home /
userid)
在shell脚本中,调用以下命令:
db2 -tvf callsp.sql
当shell时脚本在命令行模式下运行,它可以用作预期的
。
并在命令行中运行db2 -tvf ...它也可以工作。
使用plink运行时会出现问题
start plink -pw< pwduserid @ db2_serv02 /home/userid/testsp.sh
确切的plink命令适用于Linux但在AIX中失败。
错误:db2:command not found。
....什么是plink,它做什么以及为什么你认为这样的命令存在于
Aix?
Jan M. Nelken
Justin写道:
我们有一个名为testsp.sh的简单shell脚本(位于/ home /
userid)
在shell脚本中,调用以下命令:
db2 -tvf callsp.sql
当shell脚本在命令行模式下运行时,它的工作原理是
。
并在com中运行db2 -tvf ...它也有效。
使用plink运行时会出现问题
start plink -pw< pwduserid @ db2_serv02 / home / userid / testsp.sh
确切的plink命令适用于Linux,但在AIX中失败。
错误:db2:command not not发现。
不知道plink,但是如果找不到db2,通常是因为
环境设置不正确。在你的
脚本中获取db2profile,即
..~< instanceowner> / sqllib / db2profile
db2 connect to ...
db2 -tvf callsp.sql
....
/ Lennart
Plink是一个从dos启动unix会话的实用程序。这是一个很好的
应用程序。
5月14日上午10:44,Jan M. Nelken < Unknown.U ... @ Invalid.Domain>
写道:
Justin写道:
我们有一个名为testsp.sh的简单shell脚本(位于/ home /
userid)
在shell脚本中,以下命令被称为:
db2 -tvf callsp.sql
当shell脚本在命令行模式下运行时,它可以工作as
预期。
并在命令行中运行db2 -tvf ...它也可以。
使用plink运行时出现问题
start plink -pw< pwduserid @ db2_serv02 /home/userid/testsp.sh
确切的plink命令适用于Linux,但在AIX中失败。
错误:找不到db2:命令。
...什么是plink,它的作用以及为什么你认为这样的命令存在于
Aix?
Jan M. Nelken-隐藏引用文字 -
- 显示引用文字 -
We have a simple shell script called testsp.sh (located at /home/
userid)
Within the shell script, the following command is called:
db2 -tvf callsp.sql
When the shell script is run in command line mode, it works as
expected.
and running db2 -tvf ... in command line it also works.
The issue occurs when running using "plink"
start plink -pw <pwduserid@db2_serv02 /home/userid/testsp.sh
The exact plink command worked with Linux but fails with AIX.
The error: db2: command not found.
Justin wrote:We have a simple shell script called testsp.sh (located at /home/
userid)
Within the shell script, the following command is called:
db2 -tvf callsp.sql
When the shell script is run in command line mode, it works as
expected.
and running db2 -tvf ... in command line it also works.
The issue occurs when running using "plink"
start plink -pw <pwduserid@db2_serv02 /home/userid/testsp.sh
The exact plink command worked with Linux but fails with AIX.
The error: db2: command not found.
.... what is plink, what it does and why you think such command exists in
Aix?
Jan M. Nelken
Justin wrote:We have a simple shell script called testsp.sh (located at /home/
userid)
Within the shell script, the following command is called:
db2 -tvf callsp.sql
When the shell script is run in command line mode, it works as
expected.
and running db2 -tvf ... in command line it also works.
The issue occurs when running using "plink"
start plink -pw <pwduserid@db2_serv02 /home/userid/testsp.sh
The exact plink command worked with Linux but fails with AIX.
The error: db2: command not found.
Dont know plink, but if db2 cant be found its usually because
environment is not setup properly. Tru sourcing db2profile in your
script, I.e.
.. ~<instanceowner>/sqllib/db2profile
db2 connect to ...
db2 -tvf callsp.sql
....
/Lennart
Plink is a utility to launch a unix session from dos. It is a sweet
app.
On May 14, 10:44 am, "Jan M. Nelken" <Unknown.U...@Invalid.Domain>
wrote:Justin wrote:We have a simple shell script called testsp.sh (located at /home/
userid)
Within the shell script, the following command is called:
db2 -tvf callsp.sql
When the shell script is run in command line mode, it works as
expected.
and running db2 -tvf ... in command line it also works.
The issue occurs when running using "plink"
start plink -pw <pwduserid@db2_serv02 /home/userid/testsp.sh
The exact plink command worked with Linux but fails with AIX.
The error: db2: command not found.
... what is plink, what it does and why you think such command exists in
Aix?
Jan M. Nelken- Hide quoted text -
- Show quoted text -
这篇关于未找到db2命令-tvf - AIX与Linux中的Plink的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!