[Oracle] Sql*loader Detailed Usage Tutorials (2)-Command line arguments

Source: Internet
Author: User

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?
  1. Valid Keywords:
  2. UserID-ORACLE Username/password
  3. Control--Control file name
  4. Log--Log file name
  5. Bad-Bad file name
  6. Data--Data file name
  7. Discard--Discard file name
  8. Discardmax--number of discards to allow (Default all)
  9. Skip--Number of logical records to skip (Default 0)
  10. Load--Number of logical records to load (Default all)
  11. Errors--Number of errors to allow (Default 50)
  12. Rows-number of rows in conventional path bind array or between direct path data saves
  13. (default:conventional path, Direct path All)
  14. Bindsize--size of conventional path bind array in bytes (Default 256000)
  15. Silent--Suppress messages during run (header,feedback,errors,discards,partitions)
  16. Direct-use direct path (Default FALSE)
  17. Parfile--Parameter file:name of file that contains parameter specifications
  18. Parallel--Do parallel load (Default FALSE)
  19. FILE--file to allocate extents from
  20. Skip_unusable_indexes--Disallow/allow unusable indexes or index partitions (Default FALSE)
  21. Skip_index_maintenance--Do not maintain indexes, mark affected indexes as unusable (Default FALSE)
  22. Commit_discontinued--commit loaded rows when load is discontinued (Default FALSE)
  23. ReadSize--size of read buffer (Default 1048576)
  24. External_table--Use external table for load; not_used, Generate_only, EXECUTE (Default not_used)
  25. Columnarrayrows--Number of rows for direct path column array (Default 5000)
  26. Streamsize--size of direct path stream buffer in bytes (Default 256000)
  27. Multithreading--use multithreading in direct path
  28. Resumable-Enable or disable resumable for current session (Default FALSE)
  29. Resumable_name--text string to help identify resumable statement
  30. Resumable_timeout--wait time (in seconds) for resumable (Default 7200)
  31. Date_cache--size (in entries) of date conversion cache (Default 1000)
  32. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.