HI,
我正在使用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中发生这种情况?
答案 0 :(得分:3)
正如@JOTN所说,dos2unix命令是你的朋友。应该调用类似
的东西dos2unix the_file_you_want_converted > another_file_to_hold_the_unix_version
分享并享受。