SQL Loader: loading data from Fixed Length files into Oracle database
SQL-Loader to load fixed length files: ------------------------------------------------------------------------ Step1: ----------- create a text file and convert it into .dat file and copy it to the required directory. [oracle@pavanorcl101 sqlloader]$ ls customerfix.dat 01 pavan bhimavaram 02 harish vijayawada 03 patty guntur 04 bhanu vijayawada 05 thrilok pulivendhula First Open the file in a text editor and count the length of fields, for example in our fixed length file, id number is from 1st position to 2nd position, name is from 4th position to 10th position, City is from 12th position to 23rd position. Step2: ----------- Creating table with name customer with columns id, name and city which is required to load the data from .dat file [oracle@pavanorcl101 sqlloader]$ sqlplus scott/tiger SQL> create table customerfix (id number(5), name varchar(50), city varchar(30)); Table created Step3: ------...