Oracle SQLLDR Use (fast import, but weak handling of the data itself)

Source: Internet
Author: User

Oracle SQLLDR Use (fast import, but weak handling of the data itself) Blog Category:
    • Db. Oracle
Oraclesql Sqlload.cmd
SQL code
    1. Pause
    2. Sqlldr user/[email protected] control.ctl skip=1 rows=2000 bindsize=8192000
    3. Pause


Control.ctl
SQL code
  1. LOAD DATA
  2. INFILE ' rating201001.csv '
  3. APPEND
  4. into TABLE "Tbl_sell"
  5. Fields TERMINATED by ', ' optionally enclosed by ' "'
  6. --fields TERMINATED by ', '
  7. --NULL is allowed when the table field does not have a corresponding value
  8. TRAILING Nullcols
  9. --The following field order corresponds to the comma-separated field order in the CSV file, and you can refer to the values of other columns by using: Field names
  10. (
  11. Src_type_code,
  12. --Year_month "201002", ignoring the second column value and using a fixed value
  13. Year_month,
  14. P_index,
  15. Province,
  16. City,
  17. Country,
  18. Shop_name "trim (: Shop_name)",
  19. Shop_code,
  20. Brand_Name,
  21. Sell_count,
  22. Sell_money,
  23. Shop_rating,
  24. Type_code "decode (: Src_type_code,10,5,:src_type_code)"
  25. )

Oracle SQLLDR is used (import is fast, but processing of the data itself is weak)

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.