Back to Browse

How to access data from file - External Table - Oracle - Query Data from flat files

10.7K views
Feb 11, 2017
11:47

In this video we can see what is the external table, how can we use it.... How to access table from a flat file? We can access data from any type of format loaded by SQL*Loader. Code: create or replace directory External_Dir as 'D:\External'; create table External_Table ( v_num number(5), v_name varchar2(20) ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY External_Dir Access parameters ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY ',' ) LOCATION('Sample_File.txt') );

Download

1 formats

Video Formats

360pmp414.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to access data from file - External Table - Oracle - Query Data from flat files | NatokHD