Problem with Unix PIPE in my script using oracle export utility
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Problem with Unix PIPE in my script using oracle export utility




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem with Unix PIPE in my script using oracle export utility  
vasant.naidu@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 07:52 AM

hi,

I have been using export utility to take backup of our database. with
the old export utility I used to run the following to successfully take
the export dump and at the same time compress the file to save space in
our filesystem:


USING OLD EXPORT:
/etc/mknod /u07/exp/exp_pipe p

/usr/bin/compress < /u07/exp/exp_pipe > /u07/exp/test.dmp.Z &

exp file=/u07/exp/exp_pipe log=/u07/log/test.log parfile=/u07/.exp_par

But recently we upgraded to Oracle 10g which has the datapump utility
available with it. But since the syntax for the datapump is different I
am finding it difficult to compress the file with the above syntax:


USING EXPORT DATA PUMP:
/etc/mknod /u07/exp/exp_pipe p

/usr/bin/compress < /u07/exp/exp_pipe > /u07/exp/test.dmp.Z &

expdp system/***** directory=dmpdir dumpfile=exp_pipe logfile=test.log
full=y


But when the above statement is fired the expdp starts writing to the
exp_pipe rather than
creating a compressed dump file called test.dmp.Z

so as a workaround I will have to first create the dump and then
compress it. but this is not what i was looking out for since I do have
much space to spare.

any help regarding the same.


regards,
vasant naidu.






[ Post a follow-up to this message ]



    Re: Problem with Unix PIPE in my script using oracle export utility  
Chuck Dillon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 11:04 PM

vasant.naidu@gmail.com wrote:
> hi,
>
> I have been using export utility to take backup of our database. with
> the old export utility I used to run the following to successfully take
> the export dump and at the same time compress the file to save space in
> our filesystem:
>
>
> USING OLD EXPORT:
> /etc/mknod /u07/exp/exp_pipe p
>
> /usr/bin/compress < /u07/exp/exp_pipe > /u07/exp/test.dmp.Z &
>
> exp file=/u07/exp/exp_pipe log=/u07/log/test.log parfile=/u07/.exp_par
>
> But recently we upgraded to Oracle 10g which has the datapump utility
> available with it. But since the syntax for the datapump is different I
> am finding it difficult to compress the file with the above syntax:
>
>
> USING EXPORT DATA PUMP:
> /etc/mknod /u07/exp/exp_pipe p
>
> /usr/bin/compress < /u07/exp/exp_pipe > /u07/exp/test.dmp.Z &
>
> expdp system/***** directory=dmpdir dumpfile=exp_pipe logfile=test.log
> full=y
>
>
> But when the above statement is fired the expdp starts writing to the
> exp_pipe rather than
> creating a compressed dump file called test.dmp.Z

It seems expdp is removing the destination file and then recreating it.
You need to find a way to alter it's behavior so the people you
need to talk to are at Oracle support or an Oracle forum.

-- ced




>
> so as a workaround I will have to first create the dump and then
> compress it. but this is not what i was looking out for since I do have
> much space to spare.
>
> any help regarding the same.
>
>
> regards,
> vasant naidu.
>


--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.





[ Post a follow-up to this message ]



    Re: Problem with Unix PIPE in my script using oracle export utility  
vasant.naidu@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-14-06 12:49 PM

hi chuck,

thanks for your reply, i will look into it.

regards,
vasant






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:07 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register