进度dbtool错误

时间:2011-09-08 13:20:41

标签: sql linux progress-4gl openedge progress-db

我正在尝试在我们的数据库上运行Progress dbtool,但它无法运行。我按照我的文档建议进入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

1 个答案:

答案 0 :(得分:2)

你使用的是什么外壳?

你编辑了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

要失败,你要么是在运行破壳,要么是某人搞乱了这个脚本。

顺便说一句 - 你不应该是root用户来运行dbtool。当你运行proenv时,你不需要在/usr/dlc10.2B/bin中拥有当前目录。

实际上dbtool应该从普通的旧命令提示符运行得很好,只要定义了DLC并且$ DLC / bin在你的PATH中。