虽然这是一个“特别特别特别”难遇到的报错,但还是写出来吧,没准有同样和我一样,好奇外部表可以加载多少文件的童鞋呢。oracle官方文档是这样解释的:
ORA-30659: too many locations specified for external table
Cause: An attempt was made to create an External Organized table with more than the maximum allowable (32767) locations specified.
Action: Don't do that, use fewer location clauses. Either consider concatenating the input files, or, creating two external tables with the input files split between them.
并且我已经测试过了(手动捂脸),最多可以同时加载32767个外部文件。
博客讲述了一个少见的Oracle报错ORA - 30659,即外部表指定位置过多。官方解释是创建外部表时指定位置超过最大允许数量(32767),建议减少位置子句,可考虑拼接输入文件或拆分创建两个外部表,博主测试最多可同时加载32767个外部文件。

被折叠的 条评论
为什么被折叠?



