- 浏览: 27380 次
- 性别:
- 来自: 北京
最新评论
1.method of loading
Conventional path: employ SQL inserts on our behalf to load data.
Direct path: does not use SQL in this mode; it formats database blocks directly.
The direct path load allows you to read data from a flat file and write it directly to format-
ted database blocks, bypassing the entire SQL engine, undo generation and, optionally, redo
generation at the same time.
conventional:insert into dept values();
direct: insert /*+ append */ into dept values();
2.tools:SQL*LOADER/exp-imp
SQL*LOADER:
sqlldr userid=hr/hr control=demo.ctl
demo.ctl
load data
infile *
into table dept
FIELDS TERMINATED BY ','
(deptno,dname,loc)
begindata
10,Sales,Virginia
20,Accounting,Virginia
1)Load Delimited Data
一.FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
二.FIELDS TERMINATED BY WHITESPACE
三.FIELDS TERMINATED BY x'09'
(DEPTNO, dummy1 filler, DNAME, dummy2 filler, LOC)
10,Sales,"Virginia,USA"
20,Accounting,"Va, ""USA"""
10 Sales Virginia
2)Load Fixed Format Data
一.( DEPTNO position(1:2),
DNAME position(3:16),
LOC position(17:29),
ENTIRE_LINE position(1:29)
)
二.( DEPTNO position(1:2),
DNAME position(*:16),
LOC position(*:29),
ENTIRE_LINE position(1:29)
)
三.( DEPTNO position(1) char(2),
DNAME position(*) char(14),
LOC position(*) char(13),
ENTIRE_LINE position(1) char(29)
)
10Accounting Virginia,USA
3)Load Dates
LAST_UPDATED date 'dd/mm/yyyy'
10,Sales,Virginia,1/5/2000
4)Load Data Using Functions
TRAILING NULLCOLS
DNAME "upper(:dname)"
ENTIRE_LINE ":deptno||:dname||:loc||:last_updated"
5)Load Data with Embedded Newlines
一.COMMENTS "replace(:comments,'\\n',chr(10))"
二.INFILE demo.dat "fix 80"
10,Sales,Virginia,This is the Sales\nOffice in Virginia
20,Accounting,Virginia,This is the Accounting\nOffice in Virginia
三.INFILE demo.dat "var 3"
05510,Sales,Virginia,This is the Sales
Office in Virginia
06520,Accounting,Virginia,This is the Accounting
Office in Virginia
四.select utl_raw.cast_to_raw('|'||chr(10)) from dual;
UTL_RAW.CAST_TO_RAW('|'||CHR(10))
--------------------------------------------------------------------------------
7C0A
INFILE demo.dat "str X'7C0A'"
10,Sales,Virginia,This is the Sales
Office in Virginia|
20,Accounting,Virginia,This is the Accounting
Office in Virginia|
发表评论
-
from string get number data using pl/sql or sql
2012-02-16 17:32 892declare @aa varchar(80),--- ... -
SQL
2012-02-15 18:01 7341.select sal salary from emp; ... -
modify ip
2012-02-10 17:45 7991.netconfig 2./etc/sysconfig/n ... -
MULTI dbwr or io slaves
2012-02-10 15:21 883thanks dukope of itpub. ... -
FAQS
2012-02-09 15:59 7581.How can I get the largest amo ... -
HOW TO STUDY ORACLE FROM Yong Huang
2012-01-18 14:48 804Assuming you want to study orac ... -
RMAN
2012-01-14 17:07 7081.components of the rman ... -
INSTANCE and CRASH RECOVERY
2012-01-12 10:12 7541.type of checkpoint full c ... -
STARTUP PFILE=
2011-12-31 14:11 12281.vi initdbs.ora spfile=&quo ... -
MANAGE TABLE
2011-12-26 16:50 5751.heap table IOT PARTI ... -
MONITOR redo size
2011-12-21 17:48 6501.set autot on stat 2.unsin ... -
What do rollback and commit
2011-12-21 11:21 746When we COMMIT, all that is lef ... -
What is the schema ?
2011-12-20 15:18 592A schema is a collection of dat ... -
MANAGE UNDOTABS
2011-12-19 17:15 6801.manual undo_management=ma ... -
DBA SQL
2011-12-19 15:21 4401.select a.name,b.status from v ... -
SEGMENT EXTENTS ORACLEBLOCK
2011-12-15 16:11 7991.SEGMENT: allocated fo ... -
MANAGE TABLESPACE AND DATAFILES
2011-12-13 15:28 5801. tablespace,segment,extent,bl ... -
ORACLE NET
2011-12-12 09:49 6881.net_service_name: servive ... -
SQLPLUS TIPS
2011-12-09 17:51 9111.SQLPLUS : a tool that execute ... -
ORACLE ENVIRONMENT VARIABLES
2011-12-09 17:15 660ORACLE_HOME ORACLE_SID : or ...
相关推荐
【船级社】 RINA Rules for loading and unloading arrangements and for other lifting appliances on board ships.pdf
7. **Module Loading and Unloading**:描述了如何使用KMOD(Kernel Module)机制动态加载和卸载驱动程序。 8. **Device Registration**:解释了如何注册设备节点,使其在/dev目录下可见,以便用户空间程序可以访问...
悬链线上车轮装卸机器人的优化设计Catenary line Optimization of wheel loading and unloading robot
Proper packaging can reduce damage, ensure product integrity, and facilitate efficient loading and unloading. 3. **仓储 (Warehousing)** - Warehousing is the temporary storage of goods before they ...
loading and unloading)的效率,同时也优化了存储(C. storing)和运输(D. transport)流程。集装箱化使得不同运输方式之间的转换更为便捷,降低了物流成本,提升了整体供应链的效率。 2. Freight forwarder...
Unloading table: DB_JJ_INFO_TEMP,object ID: 33547 ``` 9. **在线表空间**: 将表空间重新上线。 ```sql SQL> alter tablespace test online; 表空间已更改。 ``` 10. **导入数据**: 使用 `sqlldr` ...
and request empty cars/wagons to be supplied, or full cars/wagons to be sentMOPS replicates loading and unloading times, and ensures that a commodity can only be loaded/unloaded into appropriate cars...
在IT行业中,类卸载(Class Unloading)是Java虚拟机(JVM)内存管理的一个重要概念,尤其是在探讨垃圾收集(Garbage Collection)和应用程序性能优化时。标题" class-un-loading.tar.gz "暗示了这个压缩包可能包含...
装卸搬运的概念分为三个层次:装载(loading and unloading)是指将物品放入运输设备或从设备中卸下,搬运(handling / carrying)是在同一场所内进行的水平移动,而装卸搬运则是指这两者结合的活动,包括堆码、取出...
editing, sorting, filtrations and unloading changed given on the server back. Components do not include drivers to access to server. To ensure functionality of components it is sufficiently to ...
editing, sorting, filtrations and unloading changed given on the server back. Components do not include drivers to access to server. To ensure functionality of components it is sufficiently to ...
Furthermore, the use of advanced technology, such as microelectronics and computer integration, allows for better monitoring, control, and automation of the process, reducing human error and ...
7. **物流的具体构成**:“Logistics consists of warehousing, transportation, loading and unloading, handling, carrying, packaging, processing, distribution and logistics information.” 物流是由多个具体...
Unloading and Finalization of Classes On the CD-ROM The Resources Page 8 The Linking Model Dynamic Linking and Resolution Resolution and Dynamic Extension Constant Pool Resolution Resolution of ...
7.6.1 Loading and Unloading Modules 189 7.6.2 fmd Statistics 191 7.6.3 Con?guration Files 192 7.7 Fault Management Directories 193 7.8 Solaris Fault Management Downloadable Resources 193 7.8.1 Solaris...
It can put the material on a certain conveying line and form a conveying process of material from the initial feeding point to the final unloading point. It can not only carry out the transport of ...
“loading and unloading”指的是装卸货物的活动,而“handling/carrying”可能指搬运,这两项活动是物流过程中对货物理清、装卸和搬运的总称。它们都对成本、效率和安全性有重要影响。 “storing::Inventory”表明...
Loading ... Definition of Shareware Why Register Mask? How to Register Mask ... Distribution Quick Start ----------- In Program Manager, choose 'Run' from the File menu and enter 'x:\path\...