Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

11

积分

0

好友

3

主题
1#
发表于 2012-6-24 15:58:47 | 查看: 5447| 回复: 2
OS:AIX6.1
DATABASE:11.1.0.6
alter table TBSAMUNAPPORTION nologging;
然后用sqlldr(append)导入数据
LOAD DATA INFILE "TBSAMUNAPPORTION.txt" APPEND INTO TABLE
这样是不是可以减少redo?
如果使用UNRECOVERABLE,在加上:DIRECT=TRUE PARALLEL=true
这样是不是会更快?使用PARALLEL会不会有问题?

[ 本帖最后由 天成 于 2012-6-24 16:10 编辑 ]
2#
发表于 2012-6-24 16:30:11
ODM FINDING:


Minimizing Use of the Redo Log

One way to speed a direct load dramatically is to minimize use of the redo log. There are three ways to do this. You can disable archiving, you can specify that the load is unrecoverable, or you can set the SQL NOLOGGING parameter for the objects being loaded. This section discusses all methods.



Intersegment Concurrency with Direct Path

Intersegment concurrency can be used for concurrent loading of different objects. You can apply this technique to concurrent direct path loading of different tables, or to concurrent direct path loading of different partitions of the same table.

When you direct path load a single partition, consider the following items:

    Local indexes can be maintained by the load.

    Global indexes cannot be maintained by the load.

    Referential integrity and CHECK constraints must be disabled.

    Triggers must be disabled.

    The input data should be partitioned (otherwise many records will be rejected, which adversely affects performance).

Intrasegment Concurrency with Direct Path

SQL*Loader permits multiple, concurrent sessions to perform a direct path load into the same table, or into the same partition of a partitioned table. Multiple SQL*Loader sessions improve the performance of a direct path load given the available resources on your system.

This method of data loading is enabled by setting both the DIRECT and the PARALLEL parameters to true, and is often referred to as a parallel direct path load.

It is important to realize that parallelism is user managed. Setting the PARALLEL parameter to true only allows multiple concurrent direct path load sessions.

回复 只看该作者 道具 举报

3#
发表于 2012-6-24 16:32:13
如果使用UNRECOVERABLE,在加上:DIRECT=TRUE PARALLEL=true
这样是不是会更快?

是的 , 但并行的收益未必很大,如果表没有分区的话

使用PARALLEL会不会有问题?

上面引用的文档介绍了 注意事项:

Local indexes can be maintained by the load.

    Global indexes cannot be maintained by the load.

    Referential integrity and CHECK constraints must be disabled.

    Triggers must be disabled.

    The input data should be partitioned (otherwise many records will be rejected, which adversely affects performance).

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-26 00:21 , Processed in 0.049587 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569