暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle SP2-0743和SP2-0042

askTom 2016-10-21
1713

问题描述

你好,先生,

从文档中:
SP2-0042未知命令command_name -忽略行的其余部分
原因:输入的命令无效。
操作:检查所使用命令的语法,以获得正确的选项。

SP2-0734未知命令开始命令名称... -忽略行的其余部分
原因:输入的命令无效。
操作:检查所使用命令的语法,以获得正确的选项。

它们似乎是相同的错误,为什么有两个错误代码( 0042和0734 ) ?

SQL> foobar a
SP2-0042: unknown command "foobar a" - rest of line ignored.
SQL> foobar a.sql
SP2-0734: unknown command beginning "foobar a.s..." - rest of line ignored.
SQL>


SQL*Plus如何处理两个未知的命令"foobar a"和"foobar a.sql" ?

谢谢,
小河

专家解答

我联系了我们内部的SQL*Plus专家之一Luan Nim,他是这方面的专家。他说:

The reason for the different between these errors is that for SP-743, it tries to indicate there are more text in the command line, but ignored, where as for SP2-0042 is for less than 10 characters.

Some commands might be longer, and we don't want to print out the whole text, therefore, SP2-00743 is to truncate command lines that > 10 characters and SP2-0042 is for < 10 characters. (This behavior as resulted of bug 812337 fixed back in 8.1)


「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论