SQL> DROP TABLE customers; SQL> CREAT TABLE customers ( 2 name VARCHAR(32), 3 SSN CHAR(10) PRIMARY KEY, 4 no INTEGER CHECK (no >= 0) ); SQL> COMMIT;
shell> sqlldr C##user_id/password@xe control=customers.ctl
shell> cat dbload.sh sqlplus C##user_id/password@xe @create.sql sqlldr C##user_id/password@xe control=customers.ctl shell> sh dbload.sh