Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 数据库工具错误的进度_Sql_Linux_Progress 4gl_Openedge_Progress Db - Fatal编程技术网

Sql 数据库工具错误的进度

Sql 数据库工具错误的进度,sql,linux,progress-4gl,openedge,progress-db,Sql,Linux,Progress 4gl,Openedge,Progress Db,我试图在我们的数据库上运行ProgressDBTool,但它不起作用。按照我所拥有的文档中的建议,我进入proenv提示符。当我对数据库“access”(这是我们的进度数据库的名称)执行dbtool时 以下是我的步骤: [root@server ~]# cd /usr/dlc10.2B/bin [root@server bin]# ./proenv DLC: /usr/dlc10.2B WRKDIR: /usr/wrk OEM: /usr/oemgmt OEMWR

我试图在我们的数据库上运行ProgressDBTool,但它不起作用。按照我所拥有的文档中的建议,我进入proenv提示符。当我对数据库“access”(这是我们的进度数据库的名称)执行dbtool时

以下是我的步骤:

[root@server ~]# cd /usr/dlc10.2B/bin
[root@server bin]# ./proenv

      DLC: /usr/dlc10.2B
   WRKDIR: /usr/wrk
      OEM: /usr/oemgmt
OEMWRKDIR: /usr/wrk_oemgmt

Inserting /usr/dlc10.2B/bin to beginning of path and
setting the current directory to /usr/wrk.

OpenEdge Release 10.2B04 as of Thu Mar  3 19:14:26 EST 2011

proenv>dbtool access

/usr/dlc10.2B/bin/dbtool: line 2: DLC:: command not found
/usr/dlc10.2B/bin/dbtool: line 3: WRKDIR:: command not found
/usr/dlc10.2B/bin/dbtool: line 4: OEM:: command not found
/usr/dlc10.2B/bin/dbtool: line 5: OEMWRKDIR:: command not found
/usr/dlc10.2B/bin/dbtool: line 7: Inserting: command not found
/usr/dlc10.2B/bin/dbtool: line 8: setting: command not found
/usr/dlc10.2B/bin/dbtool: line 10: OpenEdge: command not found
/usr/dlc10.2B/bin/dbtool: line 12:
/usr/dlc10.2B/bin/dbtool: line 12: root@server:/usr/wrk
/usr/dlc10.2B/bin/dbtool: line 12: root@server:/usr/wrk: No such file or directory

你用的是什么外壳

你编辑过proenv吗

proenv是一个shell脚本。您报告的错误是简单的shell变量分配失败——就好像您在用“sh”以外的东西执行proenv一样。proenv的前几行应该是:

#!/bin/sh # proenv DLC="/usr/dlc" WRKDIR="/usr/wrk" OEM="/usr/oemgmt" OEMWRKDIR="/usr/wrk_oemgmt" PATH=$DLC/bin:$DLC/perl/bin:$PATH PS1="proenv>" export DLC WRKDIR PATH PS1 OEM OEMWRKDIR OEE OEEWRKDIR #cd to the work directory cd $WRKDIR #!/垃圾箱/垃圾箱 #proenv DLC=“/usr/DLC” WRKDIR=“/usr/wrk” OEM=“/usr/oemgmt” OEMWRKDIR=“/usr/wrk_oemgmt” PATH=$DLC/bin:$DLC/perl/bin:$PATH PS1=“proenv>” 导出DLC WRKDIR路径PS1 OEM OEMWRKDIR OEE OEEWKDIR #cd到工作目录 cd$WRKDIR 如果失败了,你要么是在运行一个坏掉的shell,要么是有人把脚本弄乱了

顺便说一下,运行dbtool不需要root用户。运行proenv时,不需要将当前目录置于/usr/dlc10.2B/bin中


实际上,只要定义了DLC并且$DLC/bin在您的路径中,dbtool应该可以在普通的旧命令提示符下正常运行。

我正在使用笔记本电脑上的putty.exe连接ssh。我们的软件供应商刚刚将我们从9.1E升级到10.2B.echo$SHELL ls-l$DLC/bin/proenv,然后是2)ls-l$DLC/bin/proenv这个想法是为了弄清楚您运行的是什么SHELL,并可能确定proenv是否受到了干扰。#echo$SHELL/bin/bash#ls-l$DLC/bin/proenv ls:/bin/proenv:没有这样的文件或目录,我认为这是最好的选择问题谢谢你的帮助。