1Z0-032-19: Loading data into a database:
用sql*loader进行数据移植。sql的移植工具可以作为oracle的补充。
data loading methods: export/import 用于在oracle DB之间进行参看18章。
direct-load insert: 同一个DB内的表之间进行移植。
sql*loader : 与其他文本之间进行移植。
direct-load insert: 可以并行,也可以串行。对分区表与非分区表都可以。可以产生日志,也可不产生日志。
直接插入到high-water mark以上,所以会产生空间浪费。
insert /*+append */ into emp nologging select * from t_employees ; commit;//串行。
nologging是为了不产生日志 ,在成批数据插入时是有很强的优势。
alter session enable parallel DML;
insert /*+parallel(table1,2) */ into table1 select * from employees;
SQL*Loader: 比较复杂程序;用于不同系统间移植数据。
字段处理---->记录选择-----
当数据量小时,可以写入到controlfile; parameter file 是可选的,但有一定用途。
两种方式:direct path: 不对数据进行cache, 不对数据进行过滤。 data saves; 不一定产生日志;只保持PK,unique,not null,no trigger;no clustered table;不可以进行数据操作,在进行时;
conventional: 同样数据放在high-water之上。需要commit;产生日志;保持所有约束;trigger; clustered table; 可以同时进行数据操作。
control file 是必要的文件:
数据格式(固定长度,可变长,数据流格式);配置方式(memory,);对数据处理;
语法自由;大小写不敏感;用--进行注释。
data loading methods: export/import 用于在oracle DB之间进行参看18章。
direct-load insert: 同一个DB内的表之间进行移植。
sql*loader : 与其他文本之间进行移植。
direct-load insert: 可以并行,也可以串行。对分区表与非分区表都可以。可以产生日志,也可不产生日志。
直接插入到high-water mark以上,所以会产生空间浪费。
insert /*+append */ into emp nologging select * from t_employees ; commit;//串行。
nologging是为了不产生日志 ,在成批数据插入时是有很强的优势。
alter session enable parallel DML;
insert /*+parallel(table1,2) */ into table1 select * from employees;
SQL*Loader: 比较复杂程序;用于不同系统间移植数据。
字段处理---->记录选择-----
当数据量小时,可以写入到controlfile; parameter file 是可选的,但有一定用途。
两种方式:direct path: 不对数据进行cache, 不对数据进行过滤。 data saves; 不一定产生日志;只保持PK,unique,not null,no trigger;no clustered table;不可以进行数据操作,在进行时;
conventional: 同样数据放在high-water之上。需要commit;产生日志;保持所有约束;trigger; clustered table; 可以同时进行数据操作。
control file 是必要的文件:
数据格式(固定长度,可变长,数据流格式);配置方式(memory,);对数据处理;
语法自由;大小写不敏感;用--进行注释。