Using mknod during export

PC & Tech Category

Every Friday we have taken the full export backup of one of our databases. This database is used for reporting purpose. Export dump size is around 25 GB. Backup mount point total space is 32 GB. Every weekend I have taken the backup and transfer the export dump (25 GB) to bridge server.

In Bridge server, I have zipped the dump file and again transferred the zip file to the backup server. System support group taken the backup into tape. During this, activity takes more time. So I have planned to zip the export dump file on the same server. I have escalated mail to concern person to allocate the more space to back up mount point. The system support group couldn’t allocate the space due to insufficient space on disk. At that time, my lead told me Raja uses the mknod. I am not aware of the mknod.

Now we see the export backup using mknod.

File Name: exppipe.sh


#!/bin/sh. $HOME/.bash_profilecd /home/oracle/dbatest/raja/mknode/mknod exp_pipe pgzip -cNf exp_data.dmp.gz &exp demo/demo file=exp_pipe log=exp_data.log owner=demo statistics=nonerm -f exp_pipe pfi

File Name: imppipe.sh


#!/bin/sh. $HOME/.bash_profilecd /home/oracle/dbatest/raja/mknode/mknod import_pipe pgunzip -c exp_data.dmp.gz > import_pipe &imp testpipe/testpipe file=import_pipe log=imp_data.log fromuser=demo touser=testpipe statistics=none commit=yrm -f import_pipe pfi

Note

. $HOME/.bash_profile is environment variable file

Instead of doing the export and zip separately, creating an interim dump file (or doing unzip and import), Unix can pipe the output from one program (such as exp) as input to another program (such as GZIP) as they both run in parallel, without having to run the programs sequentially and without having to create interim files.

I hope this article helped you to export using mknod. Suggestions are welcome.

Tags:

Edward Ramamoorthy Avatar

Help Us Grow

If you like this post, please share it with your friends.

You are free to copy and redistribute this article in any medium or format, as long as you keep the links in the article or provide a link back to this page.

Subscribe to Newsletter




Privacy Settings

Privacy & Cookie Overview

Our website uses cookies to provide you with the best user experience possible. These cookies are stored in your browser and perform essential functions such as recognizing you when you return to our website, as well as helping us to understand which sections of the website you find most useful and engaging.

To learn more, you can read our Privacy & Cookie Policy or reach out through our Contact form.

Strictly Necessary Cookies

Strictly Necessary Cookies must always be enabled to ensure the proper functioning of this website and to allow us to provide you with excellent service. These cookies are also essential for saving your cookie preferences.

Google Adsense

We use Google AdSense to keep this site free by displaying relevant ads. AdSense requires essential cookies that cannot be disabled, but you can manage other cookies. We respect your privacy and provide options to control non-essential cookies.

For more details on how Google handles your data, visit Google's Data Usage Policy. Please review our Privacy Policy for more information on how we protect your data.

AddToAny

We use AddToAny for social sharing. It doesn’t store cookies, ensuring a privacy-friendly experience. AddToAny complies with GDPR and CCPA by default.

For more, see their Privacy Policy.

OneSignal

We use OneSignal to send notifications to users who opt in. OneSignal complies with GDPR and is certified under the EU-US and Swiss-US Privacy Shield frameworks.

For more, see their Privacy Policy.

3rd Party Cookies

This website utilizes third-party cookies, which can enhance your experience and support our ongoing efforts to improve our services.

Google Analytics

We use Google Analytics to collect anonymous data, such as visitor numbers and popular pages, to improve user experience and site performance. Keeping this cookie enabled helps us refine the site based on visitor activity.

For more information, see Google’s Privacy Policy.

Discover more from Prime Inspiration

Subscribe now to keep reading and get access to the full archive.

Continue reading