Premise: Check sqlload is available, enter sqlldr, suggesting versions can
1, create a test table (existing skip)
Create Table testTable (User VARCHAR2 (255), name VARCHAR2 (255));
Create Table testTable (User VARCHAR2 (255), name VARCHAR2 (255));
2, create a script test.ctl
OPTIONS (skip=1,rows=5)
load data
infile data.del
append into table testTable
(
id char terminated by ',',
name char terminated by whitespace
)
load data
infile data.del
append into table testTable
(
id char terminated by ',',
name char terminated by whitespace
)
3, execute the statement (test.ctl file directory execution)
sqlldr userid = the User / passwd = test.ctl Control
sqlldr userid = the User / passwd = test.ctl Control
Parameter Description:
OPTIONS (skip = 1, rows = 5): [Optional Parameters, skip line 1 and line 5 to make each submission
Infile data.del: Specifies the data source file
append into table testTable: default INSERT, may be into , table, APPEND or REPLACE
terminated by ',': means the fields are separated by commas
terminated by whitespace: Indicates the end of space-separated
userid: the database username / password
control: the script file
Infile data.del: Specifies the data source file
append into table testTable: default INSERT, may be into , table, APPEND or REPLACE
terminated by ',': means the fields are separated by commas
terminated by whitespace: Indicates the end of space-separated
userid: the database username / password
control: the script file