如何获取有关“无效格式”的更多信息Windows 上的 onpladm 出错?
这是我第一次尝试使用Informix。我有大约 160 个表需要加载,使用管道分隔的文本文件。我们有一系列旧的批处理文件,是以前的开发人员编写的用于加载 Informix 数据的文件,但它们无法与我安装的新版本的 Informix (11.5) 配合使用。我在 Windows 2003 服务器上运行它。
我已修改批处理文件以执行一个文件的 onpladm 命令,因此该批处理文件如下所示:
onpladm create project dif31US-1-table-Load
onpladm create object -F diffdbagidaxsid.dev
onpladm create object -F diffdbagidaxsid.fmt
onpladm create object -F diffdbagidaxsid.map
onpladm create object -F diffdbagidaxsid.job
当我运行此文件时,它成功创建了项目和设备数组, 但我在创建格式时出错。我得到的唯一错误是:
Create object DELIMITEDFORMAT diffile1fmt failed!
Invalid format!
diffdbagidaxsid.fmt 文件如下:
BEGIN OBJECT DELIMITEDFORMAT diffile1fmt
PROJECT dif31US-1-table-Load
CHARACTERSET ASCII
RECORDSTART
RECORDEND
FIELDSTART
FIELDEND
FIELDSEPARATOR |
BEGIN SEQUENCE
FIELDNAME agid
FIELDTYPE Chars
END SEQUENCE
BEGIN SEQUENCE
FIELDNAME axsid
FIELDTYPE Chars
END SEQUENCE
END OBJECT
如您所见,它只有 2 列。它最初在 CHARACTERSET 之后没有任何内容。我已经尝试过使用 ASCII 和 ASCII 的数字代码,但仍然遇到相同的错误。
有没有办法获得更详细的错误消息?
另外,有人可以推荐一个像样的(意味着活跃的社区)Informix 论坛吗?我尝试过旧的 comp.databases.informix 论坛 http://www.dbforums.com IBM DeveloperWorks 上的“官方”论坛,当然也在这里。没有一个有太多的活动。我们必须进行此测试,因为我们有客户(或者可能只有 1 个大客户)使用它,所以我们必须针对它测试我们的数据和 API。
This is my first time trying to use Informix. I have around 160 tables to load, using pipe-delimited text files. We have an older series of batch files that a previous developer wrote to load Informix data, but they're not working with the new version of Informix (11.5) that I installed. I'm running it on a Windows 2003 server.
I've modified the batch file to execute the onpladm commands for one file, so this batch file looks like this:
onpladm create project dif31US-1-table-Load
onpladm create object -F diffdbagidaxsid.dev
onpladm create object -F diffdbagidaxsid.fmt
onpladm create object -F diffdbagidaxsid.map
onpladm create object -F diffdbagidaxsid.job
When I run this, it successfully creates the project and device array,
but I get an error creating the format. The only error I get is:
Create object DELIMITEDFORMAT diffile1fmt failed!
Invalid format!
The diffdbagidaxsid.fmt file is as follows:
BEGIN OBJECT DELIMITEDFORMAT diffile1fmt
PROJECT dif31US-1-table-Load
CHARACTERSET ASCII
RECORDSTART
RECORDEND
FIELDSTART
FIELDEND
FIELDSEPARATOR |
BEGIN SEQUENCE
FIELDNAME agid
FIELDTYPE Chars
END SEQUENCE
BEGIN SEQUENCE
FIELDNAME axsid
FIELDTYPE Chars
END SEQUENCE
END OBJECT
As you can see, it is only 2 columns. It originally had nothing following the CHARACTERSET. I've tried it with ASCII, and with the numeric code for ASCII, and still get the same error.
Is there any way to get a more verbose error message?
Also, can anyone recommend a decent (meaning active community) forum for Informix? I've tried the old comp.databases.informix forum, http://www.dbforums.com, the 'official' forum on IBM DeveloperWorks, and here of course. None have very much activity. We have to do this testing because we have customers (or maybe just 1 big one) who uses it, so we have to test our data and API against it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,我认为没有办法从 onpladm 获取更多信息。
Succinctly, I don't think there is a way to get much more information out of onpladm.