Insert 2 million data (how the external table is loaded)

Source: Internet
Author: User
1 Data Source 200w
2 Use the data from the external table to load, import data 1) Create a directory with another DBA user and authorize the directory to the current user (if created with this user, then report ORA-29400: Error opening file D:\XX.log with Data plugin error)
2) Create external table
CREATE TABLE "External_table_test"
(
 ID VARCHAR (),
 NAME VARCHAR ()
)
organization EXTERNAL
(
 TYPE oracle_loader
 DEFAULT DIRECTORY extdir_1
 ACCESS PARAMETERS
 (
  RECORDS delimited by NewLine CHARACTERSET zhs16gbk
  badfile ' extdir ': ' Ldr_case1. Bad '
  LOGFILE ' ldr_case1. Log_xt '
  readsize 1048576
  SKIP 6
  FIELDS terminated by ", optionally enclosed by '" '
  REJECT ROWS with A LL-NULL FIELDS
  (
   "ID" char (255) 
    terminated by ",",
   "NAME" char (255)
    terminated  by ","
  )
 )
 LOCATION
 (
  ' studenttest.csv '
 )
) REJECT LIMIT Unlimited;
3 Execute INSERT INTO Statement Import External table data into a table in library

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.