ORA-06550 和 PLS-00103

发布于 2024-10-04 02:20:57 字数 765 浏览 0 评论 0原文

你好,

我正在使用 UNIX 操作系统并在 oracle 上工作。我收到下面的错误消息

E ORA-06550: line 1, column 8:
PLS-00103: Encountered the symbol "" when expecting one of the following:

   begin function package pragma procedure subtype type use
   <an identifier> <a double-quoted delimited-identifier> form
   current cursor
The symbol "" was ignored.
ORA-06550: line 2, column 27:
PLS-00103: Encountered the symbol "" when expecting one of the following:

   begin function package pragma procedure subtype type use
   <an identifier> <a double-quoted delimited-identifier> 

在谷歌搜索上,我发现 “问题似乎出在换行符上的 Windows CRLF 字符上。Oracle 不会将其视为空格,而是将其视为空字符串。为了解决此问题,请将 CRLF 字符转换为 LF 字符,Oracle 应该要开心。”

有人知道为什么它会发生在 UNIX/ksh shell 中吗?

HI,

I am using UNIX OS and working on oracle. I am getting the error message below

E ORA-06550: line 1, column 8:
PLS-00103: Encountered the symbol "" when expecting one of the following:

   begin function package pragma procedure subtype type use
   <an identifier> <a double-quoted delimited-identifier> form
   current cursor
The symbol "" was ignored.
ORA-06550: line 2, column 27:
PLS-00103: Encountered the symbol "" when expecting one of the following:

   begin function package pragma procedure subtype type use
   <an identifier> <a double-quoted delimited-identifier> 

On googling, I found
"The problem appears to be with Windows CRLF characters on line breaks. Oracle does not treat this as white space, instead it sees it as an empty string. In order to get round this problem, convert the CRLF characters to LF characters and Oracle should be happy."

Anyone have any idea about why it is happening in UNIX/ksh shell?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝礼 2024-10-11 02:20:57

正如@JOTN 所说,dos2unix 命令是你的朋友。应该调用诸如

dos2unix the_file_you_want_converted > another_file_to_hold_the_unix_version

共享和享受之类的东西。

As @JOTN said, the dos2unix command is your friend here. Should be invoked something like

dos2unix the_file_you_want_converted > another_file_to_hold_the_unix_version

Share and enjoy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文