|
|
|
|
|
|
| Author |
Message |
Mark D Powell *nix forums Guru
Joined: 23 Apr 2005
Posts: 701
|
Posted: Tue Jul 18, 2006 1:44 pm Post subject:
Re: Problem to arrange a compress on the fly to an export
|
|
|
Frank van Bortel wrote:
| Quote: | etantonio@libero.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 -- |
|
| Back to top |
|
 |
Brian Peasland *nix forums Guru
Joined: 04 Apr 2006
Posts: 301
|
Posted: Tue Jul 18, 2006 12:52 pm Post subject:
Re: Problem to arrange a compress on the fly to an export
|
|
|
etantonio@libero.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@nospam.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 |
|
| Back to top |
|
 |
frank.van.bortel@gmail.co *nix forums Guru
Joined: 11 Sep 2005
Posts: 832
|
Posted: Tue Jul 18, 2006 11:22 am Post subject:
Re: Problem to arrange a compress on the fly to an export
|
|
|
etantonio@libero.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? |
|
| Back to top |
|
 |
etantonio@libero.it *nix forums beginner
Joined: 18 Jul 2006
Posts: 3
|
Posted: Tue Jul 18, 2006 10:19 am Post subject:
Problem to arrange a compress on the fly to an export
|
|
|
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 |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Nov 21, 2008 9:08 pm | All times are GMT
|
|
Outsourcing | Loans | Mortgages | Books | Buy Anything On eBay
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|