Creating External Tables :
Now the further steps should be taken in the grant section of the external table and the steps would be as follows :
Grant the read and write access to the user specified.
1- GRANT READ ON DIRECTORY My_load_dir TO user_name;
2- GRANT WRITE ON DIRECTORY My_load_dir TO user_name;
Code:
create table ext_table_csv (
a Number,
b Varchar2(20),
c Varchar2(20)
)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
)
location ('file.csv')
)
reject limit unlimited;
Bookmarks