SQLLDR Tools
The Sql*loader client tool is Sqlldr, enter SQLLDR under the command line of the operating system, and then do not take any parameters, and the Help information shown below (a simple description of all command-line arguments and their default values), so you do not need to memorize the following parameters, and when you forget them, You can quickly query this way.
[Plain]View PlainCopyprint?
- Valid Keywords:
- UserID-ORACLE Username/password
- Control--Control file name
- Log--Log file name
- Bad-Bad file name
- Data--Data file name
- Discard--Discard file name
- Discardmax--number of discards to allow (Default all)
- Skip--Number of logical records to skip (Default 0)
- Load--Number of logical records to load (Default all)
- Errors--Number of errors to allow (Default 50)
- Rows-number of rows in conventional path bind array or between direct path data saves
- (default:conventional path, Direct path All)
- Bindsize--size of conventional path bind array in bytes (Default 256000)
- Silent--Suppress messages during run (header,feedback,errors,discards,partitions)
- Direct-use direct path (Default FALSE)
- Parfile--Parameter file:name of file that contains parameter specifications
- Parallel--Do parallel load (Default FALSE)
- FILE--file to allocate extents from
- Skip_unusable_indexes--Disallow/allow unusable indexes or index partitions (Default FALSE)
- Skip_index_maintenance--Do not maintain indexes, mark affected indexes as unusable (Default FALSE)
- Commit_discontinued--commit loaded rows when load is discontinued (Default FALSE)
- ReadSize--size of read buffer (Default 1048576)
- External_table--Use external table for load; not_used, Generate_only, EXECUTE (Default not_used)
- Columnarrayrows--Number of rows for direct path column array (Default 5000)
- Streamsize--size of direct path stream buffer in bytes (Default 256000)
- Multithreading--use multithreading in direct path
- Resumable-Enable or disable resumable for current session (Default FALSE)
- Resumable_name--text string to help identify resumable statement
- Resumable_timeout--wait time (in seconds) for resumable (Default 7200)
- Date_cache--size (in entries) of date conversion cache (Default 1000)
- No_index_errors--Abort load on any index errors (Default FALSE)
Two other ways to configure command-line arguments
If you have to enter parameters in the Sqlldr every time, it's annoying, so Oracle provides two ways to store common parameters for easy reuse.
The first method is to use the parameter file, write the common parameters in the parameter file, and then specify the parameter file in Sqlldr with Parfile.
The second method is to write the general parameters in the options clause of the control file and specify the control file in Sqlldr.
I usually use the second method, because it can save the parameter file, more convenient.
And if the same parameter is configured on all three of the above, who has a big priority? Sqlldr command line > Parameters file > Control file.
Import data to a remote database
Sql*loader is imported to the local database by default, but it also supports importing to a remote database, as long as the "@ Remote database connection string" is behind username, as follows:
> Sqlldr control=ulcase1.ctlusername: [Email Protected]password:password
Command line Parameters detailed description
1. Specify file name: control, bad, log, data, discard, parfile
2. Traditional path loading: direct=false (default); Direct path loading: direct=true
3. Maximum allowable errors: errors; Number of records allowed to discard: Discardmax; maximum allowable number of records to load: Load
4. Parameters that can only be used under direct path loading: no_index_errors (default = False, if True indicates that index is not set to unusable during loading); Parallel (false by default, True if parallel loading is enabled); Skip_index_maintenance (False if true means that the maintenance of the index is stopped during the loading process)
5. Rows: Indicates how many rows to commit, default (traditional path load 64, direct path load all)
6. Skip: Omit the most previous record count
[Oracle] Sql*loader Detailed Usage Tutorials (1)-Overview [Oracle] Sql*loader Tutorial (2)-command line parameters [Oracle] sql*loader Detailed tutorial (3)-Control file
[Oracle] Sql*loader Detailed Usage Tutorials (4)-field list
[Oracle] Sql*loader Detailed Usage Tutorials (2)-Command line arguments