问题描述
你好,汤姆,
我有10000万记录要加载到表中。我是sqlldr这样做。我一直在使用常规负载,但是花了很长时间。在控制文件我有SQL函数子字符串和其他数据操作。我的问题是,即使我在控制文件中有SQL函数,我也可以使用直接加载吗?
我有10000万记录要加载到表中。我是sqlldr这样做。我一直在使用常规负载,但是花了很长时间。在控制文件我有SQL函数子字符串和其他数据操作。我的问题是,即使我在控制文件中有SQL函数,我也可以使用直接加载吗?
专家解答
让我们检查一下:
那就是是的!
SQL> create table t ( 2 c1 varchar2(10) 3 ); Table T created. SQL> SQL> ho type sqlldr.ctl load data infile * append into table t fields terminated by ',' trailing nullcols (c1 "upper(:c1)" ) begindata col1 col2 SQL> SQL> ho sqlldr userid=chris/chris@db control=sqlldr.ctl direct=y SQL*Loader: Release 12.2.0.1.0 - Production on Mon Jun 18 11:30:04 2018 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved. Path used: Direct Load completed - logical record count 2. Table T: 2 Rows successfully loaded. Check the log file: sqlldr.log for more information about the load. SQL> SQL> select * from t; C1 COL1 COL2
那就是是的!
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




