dbTalk Databases Forums  

Problem to arrange a compress on the fly to an export

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Problem to arrange a compress on the fly to an export in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Problem to arrange a compress on the fly to an export - 07-18-2006 , 05:19 AM






Good Morning,
I need to arrange an export and at the same time compress the result,
I want to do this in a shell script, at the moment I use this

exp sc/sc@ab1 PARFILE=exp_param.dat FILE=ciao.dmp LOG=ciaolog.txt
Quote:
compress &
and I also have no result with the following form

exp sc/sc@ab1 compress=y PARFILE=exp_param.dat FILE=ciao.dmp
LOG=ciaolog.txt

Thanks for your help

Antonio D'Ottavio
www.etantonio.it/en



Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Problem to arrange a compress on the fly to an export - 07-18-2006 , 06:22 AM







etantonio (AT) libero (DOT) it schreef:

Quote:
Good Morning,
I need to arrange an export and at the same time compress the result,
I want to do this in a shell script, at the moment I use this

exp sc/sc@ab1 PARFILE=exp_param.dat FILE=ciao.dmp LOG=ciaolog.txt
|compress &

and I also have no result with the following form

exp sc/sc@ab1 compress=y PARFILE=exp_param.dat FILE=ciao.dmp
LOG=ciaolog.txt

Thanks for your help

Antonio D'Ottavio
www.etantonio.it/en
Do NOT use compress=y on the export command line as parameter - it will
ruin your space allocations, not compress your generated output.
What errors do you have?



Reply With Quote
  #3  
Old   
Brian Peasland
 
Posts: n/a

Default Re: Problem to arrange a compress on the fly to an export - 07-18-2006 , 07:52 AM



etantonio (AT) libero (DOT) it wrote:
Quote:
Good Morning,
I need to arrange an export and at the same time compress the result,
I want to do this in a shell script, at the moment I use this

exp sc/sc@ab1 PARFILE=exp_param.dat FILE=ciao.dmp LOG=ciaolog.txt
|compress &

and I also have no result with the following form

exp sc/sc@ab1 compress=y PARFILE=exp_param.dat FILE=ciao.dmp
LOG=ciaolog.txt

Thanks for your help

Antonio D'Ottavio
www.etantonio.it/en

Try exporting to a pipe and then have compress read from the
pipe...similar to the following:

mknod exp.pipe p
exp u/p@tns parfile=my_parfile file=exp.pipe log=exp.log &
compress < exp.pipe > my_dump.compressed &

Alternatively, this works great with gzip. The last line would be:

gzip < exp.pipe > my_dump.gz &

To import, uncompress into the pipe and have imp read from the pipe.

HTH,
Brian

--
================================================== =================

Brian Peasland
dba (AT) nospam (DOT) peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Problem to arrange a compress on the fly to an export - 07-18-2006 , 08:44 AM




Frank van Bortel wrote:
Quote:
etantonio (AT) libero (DOT) it schreef:

Good Morning,
I need to arrange an export and at the same time compress the result,
I want to do this in a shell script, at the moment I use this

exp sc/sc@ab1 PARFILE=exp_param.dat FILE=ciao.dmp LOG=ciaolog.txt
|compress &

and I also have no result with the following form

exp sc/sc@ab1 compress=y PARFILE=exp_param.dat FILE=ciao.dmp
LOG=ciaolog.txt

Thanks for your help

Antonio D'Ottavio
www.etantonio.it/en

Do NOT use compress=y on the export command line as parameter - it will
ruin your space allocations, not compress your generated output.
What errors do you have?
Antonio, the exp parameter compress has to do with how Oracle
calculates the initial extent size in table/index storage clauses. The
default is "compress=y" and this results in Oracle calculating the
initial extent as the full allocated size of the object which can cause
problems when you try to import the file into test environments. I
usually code an explicit compress=n so that if I use the export table
definition and load it the table takles as little space as possible.

To compress the export file either export into a named pipe as another
poster suggested and have the OS compress utility feed off the pipe or
just write the file and run compress on it after the export operation
completes.

HTH -- Mark D Powell --



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.