| 修改时间 20-JUL-2010 类型 HOWTO 状态 PUBLISHED | |||||
In this Document
Goal
Solution
References
Since Datapump Export is optimized to work from within the server,
the export dumpfile information is no longer processed in a sequential
manner.
As a result, sequential media, such as tapes and pipes,
are no longer supported with Export DataPump (expdp) and Import DataPump
(impdp).
So, There is no way to do this with DataPump, as you cannot use named pipes with datapump, so there
is
no way to pass the dumpfile to the gzip command through a pipe. You can
only compress the dump file after the export is complete. It cannot be
done during the export itself.
The only option would be to add
disk space, or nfs mount a large enough filesystem to the server and use
that as the export destination, do the DataPump export to that
destination, then use GZIP to compress the output file.
In Oracle
10.2 release, Data Pump by default supports compressing the system
metadata ( grants, schemas, roles, types, etc.) that's written to the
dump file. This can be manually enabled/disabled using the compression
parameter.
For example,
expdp userid/password DIRECTORY=dpump_dir DUMPFILE=scott SCHEMAS=scott
COMPRESSION=METADATA_ONLY
explicitly
indicates that the system metadata be compressed. This is the default
behavior. Using "COMPRESSION=NONE" would explicitly disable compression.
In 11.1 release of Oracle the feature was enhanced to allow for
the compression for table data. The "compression" parameter now accepts
the following values:
NONE
METADATA_ONLY
DATA_ONLY
ALL
For example,
expdp userid/password DIRECTORY=dpump_dir DUMPFILE=scott SCHEMAS=scott
COMPRESSION=ALL
will compress all system metadata and all table data in the dumpfile.
11g, needs the Advanced Compression Option license (extra costs) for compression = ALL or DATA_ONLY. It is also needed for the import it these options were used during expdp.
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/161195/viewspace-1055069/ ,如需转载,请注明出处,否则将追究法律责任。