我正试图在我们的数据库上运行Progress dbtool,但它不工作。我按照我所拥有的文档的建议到达了提示符。当我对我们的数据库"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
您使用的是什么shell ?
你编辑过proenv了吗?
proenv是一个shell脚本。您报告的错误是简单的shell变量赋值失败——就好像您在执行proenv时使用的不是"sh"。proenv的前几行应该是:
<>之前# !/bin/sh# proenvDLC = "/usr/DLC"WRKDIR = "/usr/wrk"OEM = "/usr/oemgmt"OEMWRKDIR = "/usr/wrk_oemgmt"路径= $ DLC/bin: DLC/perl/bin:美元的道路PS1 = " proenv>"导出DLC WRKDIR路径PS1 OEM OEMWRKDIR OEE OEEWRKDIR#cd到工作目录cd WRKDIR美元之前要失败,你要么运行了一个坏的shell,要么有人把脚本弄乱了。
顺便说一下——运行dbtool不需要以root用户身份。当您运行proenv时,您不需要将当前目录放在/usr/dlc10.2 b/bin中。
实际上,只要定义了DLC,并且$DLC/bin在您的PATH中,dbtool应该在普通的旧命令提示符中运行得很好。