雖然這是一個“特別特別特別”難遇到的報錯,但還是寫出來吧,沒準有同樣和我一樣,好奇外部表可以加載多少文件的童鞋呢。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個外部文件。