暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片
Oracle 12C SQLLoader介绍.pdf
77
11页
2次
2024-01-06
免费下载
Oracle 12C SQL*Loader 介绍
SQL*Loader Oracle 提供的一个非常有用的工具,可以实现批量数据的高速加载,它将数据从外部文件加载到 Oracle 数据库的表中,本篇将
Oracle 12c SQL*Loader 进行简单的介绍和演示。
1 SQL*Loader 介绍
SQL*Loader 的使用,是通过 Oracle 的命令行指令 sqlldr 实现,该指令是客户端工具,可通过 KEY-VALUE 的形式指定对应的选项,或者使用
参数文件和控制文件来实现,下面展示的是 SQL*Loader 的工作原理:
控制文件主要用于控制数据加载的行为,包括在哪里找到数据,如何解析和解释数据,以将数据插入到哪里等等,通常来说,控制文件包括三部分
内容:
会话范围的信息;
表和字段列表信息;
输入数据;
对于数据的加载,
SQL*Loader
提供了三种方法分别是:
传统路径加载;
直接路径加载;
外部表加载;
2 SQL*Loader 指令语法
SQL*Loader 通过指令 sqlldr 实现,输入该命令回车,即可看到该指令对应的选项信息:
[oracle@odd ~]$ sqlldr
SQL*Loader: Release 12.1.0.2.0 - Production on Fri May 8 20:08:37 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
Usage: SQLLDR keyword=value [,keyword =value,...]
Valid Keywords:
userid -- ORACLE username/password
control -- control file name
log -- log file name
bad -- bad file name
data -- data file name
discard -- discard file name
discardmax -- number of discards to allow (Default all)
skip -- number of logical records to skip (Default 0)
load -- number of logical records to load (Default all)
errors -- number of errors to allow (Default 50)
rows -- number of rows in conventional path bind array or between direct path data saves
(Default: Conventional path 64, Direct path all)
bindsize -- size of conventional path bind array in bytes (Default 256000)
silent -- suppress messages during run (header,feedback,errors,discards,partitions)
direct -- use direct path (Default FALSE)
parfile -- parameter file: name of file that contains parameter specifications
parallel -- do parallel load (Default FALSE)
file -- file to allocate extents from
skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
readsize -- size of read buffer (Default 1048576)
external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE
columnarrayrows -- number of rows for direct path column array (Default 5000)
streamsize -- size of direct path stream buffer in bytes (Default 256000)
multithreading -- use multithreading in direct path
resumable -- enable or disable resumable for current session (Default FALSE)
resumable_name -- text string to help identify resumable statement
of 11
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜