文档解释
ORA-26089: LONG column “string” must be specified last
Cause: A client of the direct path API specified a LONG column to be
* loaded, but the LONG column was not the last column to be
* specified.
Action: Specify the LONG column last.
ORA-26089: LONG column “string” must be specified last.
官方解释
该错误在添加新列(Insert column)时候可能会出现,比如使用ALTER TABLE 来添加新列,LONG 列必须添加到单元格的最后面。
常见案例
CREATE TABLE NAMES (NAME1 VARCHAR2 (25) NOT NULL, ADDRESS1 VARCHAR2 (25) NOT NULL, PHONE1 VARCHAR2 (15), DATE1 DATE, LONG_COLUMN LONG);
一般处理方法及步骤
在上述案例中,应该把LONG列放在最后,正确格式如下:
CREATE TABLE NAMES (NAME1 VARCHAR2 (25) NOT NULL, ADDRESS1 VARCHAR2 (25) NOT NULL, PHONE1 VARCHAR2 (15), DATE1 DATE, LONG_COLUMN LONG);