oracle导入csv文件

本文介绍了如何使用Oracle数据库的SQL*Loader工具从CSV文件中批量导入数据。首先,创建了一个名为copy.ctl的控制文件,设置了相关参数,并定义了数据字段及分隔符。然后,通过SQL*Loader命令执行导入操作,指定了用户ID、密码、数据库连接及控制文件路径。
摘要由CSDN通过智能技术生成

1.编辑控制脚本copy.ctl

options(skip=1,BINDSIZE=20971520, ROWS=10000, READSIZE=20971520, ERRORS=999999999)
load data
CHARACTERSET utf8
infile '/home/oracle/part-00000-04cf2530-87cb-4f9f-a094-5047baa3366c.csv'
append into table "CK_CREDIT_LOAD_NEW_COPY1"
fields terminated by ',' 
(

id,serial_number,contract_number,name,sex,educational,cart_type,card_number,document_type,identification_number,product_name,phone_number,home_number,home_adress,work_number,work_name,work_address,billing_address,name_of_contact_1,contact_of_contact_1,phone_number_of_contact_1,name_of_contact_2,contact_of_contact_2,phone_number_of_contact_2,spouse_no,other_contact_information,other_contact_phone_number,account_opening_date,account_opening_institution,bill_day,account_status,number_of_overdue_periods,credit_limit,large_amount,credit_line_overdraft_amount,non__amount_of_large_amount,amount_not_apportioned_installment,ove

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值