Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Index Range Scan Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Implementing Listener Security Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Another export with Query Oracle
  • Session_info.ksh Linux/Unix
  • Histogram information Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • TNSNAMES entries details Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • get_vmstat_solaris Oracle
  • find_cons.sql Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Rollback force for distributed transactions Oracle

Export Oracle data and Compress at same time

Posted on 23-Aug-2005 By Admin No Comments on Export Oracle data and Compress at same time

If one cannot afford to buy extra disk space one can run the export and compress utilities simultaneously. This will prevent the need to get enough space for both the export file AND the compressed export file. Eg:

# Make a pipe

mknod expdat.dmp p # or mkfifo pipe

# Start compress sucking on the pipe in background

compress < expdat.dmp > expdat.dmp.Z &

# Wait a second or two before kicking off the export

sleep 5

# Start the export

exp scott/tiger file=expdat.dmp

Or export accross the network directly into the target database:

Host A:

mknod FIFO.dmp p

exp u/p FILE=FIFO.dmp rest_of_parameters…

Host B:

mknod FIFO2.dmp p

rsh host1 dd if=FIFO.dmp > FIFO2.dmp &

imp u/p FILE=FIFO2.dmp rest_of_parameters

Oracle, SQL scripts

Post navigation

Previous Post: How does one overcome the Unix 2 Gig file limit?
Next Post: Oracle Data Direct to TAPE

Related Posts

  • cache buffer chain latch Oracle
  • Oracle Connections expire_time and firewall Oracle
  • SYSOPER Mystery Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Transfer SQL Profiles from One database to other database. Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • rm_backup_arch_file.ksh Linux/Unix
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • PLSQL Table Syntax 2 Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • Absolute file number and relative file number Oracle
  • sess_server.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme