我創建了下面的外部表,但我無法使用select * from emp檢索數據,因爲我得到下面的錯誤。外部表語法錯誤ORA-29913
你能幫我解決這個問題嗎?
ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-00554: error encountered while parsing access parameters KUP-01005: syntax error: found "identifier": expecting one of: "compression, encryption, logfile, nologfile, version" KUP-01008: the bad identifier was: RECORDS KUP-01007: at line 1 column 1
我的SQL是:
create or replace directory dit as 'C:\Hi'
GRANT READ ON DIRECTORY dit TO sys;
GRANT WRITE ON DIRECTORY dit TO sys;
GRANT SELECT ON dba_directories TO sys;
CREATE TABLE emp(ename char(20), sal number)
ORGANIZATION EXTERNAL
(TYPE ORACLE_DATAPUMP
DEFAULT DIRECTORY dit
ACCESS PARAMETERS
(RECORDS DELIMITED BY NEWLINE
NOBADFILE
LOGFILE 'Hi.log'
FIELDS TERMINATED BY ','
(ename char(20), sal number)
)
LOCATION('Hi.txt')
);
謝謝你爲你的迴應....但仍然得到相同的錯誤信息...任何人都可以請幫我出來 – MANA
Oracle_loader是不支持數字數據類型...其工作後我將其更改爲char數據類型.... – MANA
'oracle_loader'驅動程序支持的數據類型列於[docs.oracle.com/cd/B19306_01/server.102/b14215/et_params.htm](https://docs .oracle.com/CD/B19306_01/server.102/b14215/et_params.htm#sthref1759)。沒有'號碼',但有'整數','雙','浮動'等。 –