zoukankan      html  css  js  c++  java
  • 外部表查询时出现ORA-29913和ORA-29400错误


    create table t_ext_tab(id char(1),name char(6))
    organization external(
    type oracle_loader
    default directory scott_dir
    access parameters(
    records delimited by newline
    fields terminiated by '#')
    location ('ext.tab')
    );


    select * from t_ext_tab;
    *
    第 1 行出现错误:
    ORA-29913: 执行 ODCIEXTTABLEOPEN 调出时出错
    ORA-29400: 数据插件错误KUP-00554: error encountered while parsing access parameters

    KUP-01005: syntax error: found "identifier": expecting one of: "column, enclosed, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, optionally, rtrim,
     reject, terminated"
    KUP-01008: the bad identifier was: terminiated
    KUP-01007: at line 2 column 8
    ORA-06512: 在 "SYS.ORACLE_LOADER", line 19

     

    错误原因——从错误提示信息中可以看到是解析access parameters时出错了。仔细检查发现fields terminiated by '#'中的关键字terminiated写错了。正确的应该是"terminated"。

     

    外部表查询时的ORA-29913和ORA-29400错误,通常是由于其中关键字写错或定义的文件不存在。创建外部表时oracle不会验证其正确性。

     


     

  • 相关阅读:
    bzoj1297 [SCOI2009]迷路
    bzoj1085 [SCOI2005]骑士精神
    bzoj1009 [HNOI2008]GT考试
    uoj#73 【WC2015】未来程序
    bzoj1016 [JSOI2008]最小生成树计数
    bzoj2818 Gcd
    python递归——汉诺塔
    python参数
    python函数
    为什么会出现__pycache__文件夹?
  • 原文地址:https://www.cnblogs.com/toughhou/p/3778801.html
Copyright © 2011-2022 走看看