With this Loader command, you can control the loading of application data into the specified tables.
<fastload_statement> ::=
FASTLOAD [<usage_spec>] TABLE <table_spec> [<load_column_spec_mlt>] <instream_spec>
FASTLOAD with 100 % USAGE
TABLE sqltravel00.customer
cno 1
name 2
zip 3
address 4
INSTREAM 'customer.data'
FASTLOAD commands are processed while the database is running.
When application data is loaded with FASTLOAD, it is entered directly in the pages on the database instance. This command loads data more quickly than the DATALOAD command.However, because it does not write any log entries, you must back up the new data after you have loaded it.You can either back up the corresponding pages (incremental data backup) or all data (complete data backup). The table is write-protected until you have backed up the new application data.
· The target table exists on the database instance. Otherwise, the table can be created using a corresponding SQL statement before the FASTLOAD commands is executed.
· You have logged on to the Loader with the user who is the owner of the target table.
· The data in the data stream to be imported is sorted in ascending order in the sequence of the primary key.
· The target table does not have an index.
· If the target table already contains application data, only those data records whose key values are greater than the largest key value in the target table can be inserted.
· The data that you want to load does not contain LONG columns.
When a FASTLOAD command is started, the target table of the load operation in the database instance is locked so other users cannot write to it.The target table can, however, still be read.
Unrestricted reading and writing is possible in all other tables.
Once a FASTLOAD command has been processed, other write operations triggered with FASTLOAD from the same user can be performed on this table.Once the load operation with FASTLOAD has been completed, all users only have read access for the table.
A backup of the database instance must be created before this table is released again for write operations from other users.
The data from the source table has been loaded to the target table.
If the load operation cannot be ended successfully, the Loader logs the last row that was inserted successfully in the table, the number of rows inserted, and the number of rows rejected in the log file.