要學的東西很多,一直在努力中............!
希望佛祖赐予我智慧吧!阿门!!!
oracle sql loader 的使用
上一篇 /
下一篇 2008-01-10 10:54:59
/ 个人分类:ORACLE 數據庫管理
学习oracle sql loader 的使用 - ORACLE
一:sql loader 的特点
2u$O]Fn`(Hn0oracle自己带了很多的工具可以用来进行数据的迁移、备份和恢复等工作。但是每个工具都有自己的特点。ITPUB个人空间)\:X*D,n~
比如说exp和imp可以对数据库中的数据进行导出和导出的工作,是一种很好的数据库备份和恢复的工具,因此主要用在数据库的热备份和恢复方面。有着速度快,使用简单,快捷的优点;同时也有一些缺点,比如在不同版本数据库之间的导出、导入的过程之中,总会出现这样或者那样的问题,这个也许是oracle公司自己产品的兼容性的问题吧。ITPUB个人空间]^FVq:n"]-k#K
sql loader 工具却没有这方面的问题,它可以把一些以文本格式存放的数据顺利的导入到oracle数据库中,是一种在不同数据库之间进行数据迁移的非常方便而且通用的工具。缺点就速度比较慢,另外对blob等类型的数据就有点麻烦了。
二:sql loader 的帮助
C:\>sqlldr
SQL*Loader: Release 9.2.0.1.0 - Production on 星期六 10月 9 14:48:12 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
D]r`*B eoq8ERa0用法: SQLLDR keyword=value [,keyword=value,...]
有效的关键字:
userid -- ORACLE username/password
Z#_].m
NQ@)U/h!Q0control -- Control file name
?2k(Tl-dT`
q:ba0log -- Log file name
)I(Yp|%rg?3UV0bad -- Bad file name
;xnBza5KR0data -- Data file nameITPUB个人空间VS,sUm,g$E.RHI
discard -- Discard file nameITPUB个人空间qlM-i-nZ8C2H&u~^,R
discardmax -- Number of discards to allow (全部默认)
rb F{
ZzT0skip -- Number of logical records to skip (默认0)ITPUB个人空间vH_"i)t*I8N
load -- Number of logical records to load (全部默认)ITPUB个人空间#U3@G(QM
YH
errors -- Number of errors to allow (默认50)ITPUB个人空间N2c6}8x
[l
rows -- Number of rows in conventional path bind array or between direct pITPUB个人空间+L1FA%~5M
ath data saves
{V;yN
p
wB0(默认: 常规路径 64, 所有直接路径)ITPUB个人空间t%\)[%k5DJ
bindsize -- Size of conventional path bind array in bytes(默认256000)ITPUB个人空间Sn0Cir
silent -- Suppress messages during run (header,feedback,errors,discards,part
2VK5m5Y4e;v0itions)ITPUB个人空间2a)~}6k V A
direct -- use direct path (默认FALSE)
;v,RuQq3g.Z*R0parfile -- parameter file: name of file that contains parameter specification
0w+qDa
q\0sITPUB个人空间l h {:l1F+W
parallel -- do parallel load (默认FALSE)ITPUB个人空间$?[+Aoc nK2]
x$T
file -- File to allocate extents from