Re: Export Split Script (FAO LISA)

2003-11-03 Thread Pete Finnigan
Hi

Not sure what the original question was BUT the script offered splits
exports so you may be interested in a tool Kurt van Meerbeeck and
Kugendran Naidoo wrote called Ora*PePi availbale on sourceforge - the
description from there reads:

quote
Ora*PePi is a superset of the Oracle export/import tools - providing
simultaneous synchronised parallel export and import, NET8 load
balancing, at runtime adjustable parallel degree and large table run
ratio, down to partition level.
/quote

The link is http://sourceforge.net/projects/pepi

hth

kind regards
Pete
-- 
Pete Finnigan
email:[EMAIL PROTECTED]
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Pete Finnigan
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: Export Split Script (FAO LISA)

2003-10-30 Thread Robertson Lee - lerobe
Also found this in my archives, courtesy of Rachel.

Regards

Lee

-Original Message-
Sent: 16 May 2001 22:28
To: Multiple recipients of list ORACLE-L


there is a note out on Metalink on how to do this. You can also break the 
export into separate files in later versions of Oracle8i. or you can run the

following script (modified to suit your system, it was last tested on 
Solaris/Oracle 7.3.4)

#!/bin/sh
#
cd $EXPORT_DIR
#
# set maximum file size for each chunk of the export file
#
MAXFILESIZE=2000m
export MAXFILESIZE
#
# create filenames for the parts of the backup... for now let's go to 3
#
FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
#
# save off the old ones
#
mv $FILENAME1 $FILENAME1.old
if [ -f $FILENAME2 ]
then
mv $FILENAME2 $FILENAME2.old
fi
if [ -f $FILENAME3 ]
then
mv $FILENAME3 $FILENAME3.old
fi
mv $LOGFILE $LOGFILE.old
#
# create the pipes
#
mkfifo exportpipeaa
mkfifo exportpipeab
mkfifo exportpipeac
mkfifo wrkpipe
umask 000
#
# start the readers from the pipes to create the export files
#
dd if=exportpipeaa of=$FILENAME1 
dd if=exportpipeab of=$FILENAME2 
dd if=exportpipeac of=$FILENAME3 
#
# start the reader from the wrkpipe to compress and split the export
#
dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
#
# start the export for real
#
exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
#
# clean up after ourselves
#
rm exportpipeaa exportpipeab exportpipeac wrkpipe
#
# if you haven't used all the pipes, the dd may still linger on
# make sure to REALLY clean up
#
ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d; 
\n,$2)}'kill.lst
chmod u+x kill.lst
sh kill.lst
rm kill.lst



now to import from those split files


#!/bin/sh
#
cd $EXPORT_DIR
#
# create filenames for the parts of the backup... for now let's go to 3
#
FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
#
# create the pipe to import from
#
mkfifo wrkpipe
umask 000
#
# start the reader from the import pipe
#
imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
#
# create the import stream coming from the pipes
#
cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
#
# clean up the import pipe
#
rm wrkpipe



From: Armstead, Michael A [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: Export Split Script
Date: Wed, 16 May 2001 13:07:24 -0800

Rajaram,

Please give me details on how to use mknod to split export files larger 
than
2 GB. We have broken our jobs into over 50 separate export jobs on the 
table
level just to keep our files less than 2GB.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

  -Original Message-
  From:   Rajaram [SMTP:[EMAIL PROTECTED]
  Sent:   Wednesday, May 16, 2001 4:31 PM
  To: Multiple recipients of list ORACLE-L
  Subject:RE: Export Split Script
 
  If you are using Oracle on Unix , You may want to use unix pipes ( 
mknod).
  - most people use this method to manage files  2GB.
 
  Rajaram
  (Now that I am at the top of a mountain - I dont know how to get down!)
 
  -Original Message-
  From:   Smith, Ron L. [SMTP:[EMAIL PROTECTED]
  Sent:   Wednesday, May 16, 2001 3:57 PM
  To: Multiple recipients of list ORACLE-L
  Subject:Export Split Script
 
  I tries using a compressed export and the output is still over 2G.  Does
  anyone have the export script that splits the export files into multiple
  files?
 
  Ron Smith
  Database Administration
  [EMAIL PROTECTED]
 
 
  NetZero Platinum
  No Banner Ads and Unlimited Access
  Sign Up Today - Only $9.95 per month!
  http://www.netzero.net
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Rajaram
INET: [EMAIL PROTECTED]
 
  Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
  San Diego, California-- Public Internet access / Mailing Lists
  
  To REMOVE yourself from this mailing list, send an E-Mail message
  to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
  the message BODY, include a line containing: UNSUB ORACLE-L
  (or the name of mailing list you want to be removed from).  You may
  also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Armstead, Michael A
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list

RE: Export Split Script (FAO LISA)

2003-10-30 Thread Rachel Carmichael
you can also use the FILESIZE parameter available in export since 8i
 
(the only docs I have are for 8.1.7 so I'm not sure if it was available
before that release)


--- Robertson Lee - lerobe [EMAIL PROTECTED] wrote:
 Also found this in my archives, courtesy of Rachel.
 
 Regards
 
 Lee
 
 -Original Message-
 Sent: 16 May 2001 22:28
 To: Multiple recipients of list ORACLE-L
 
 
 there is a note out on Metalink on how to do this. You can also break
 the 
 export into separate files in later versions of Oracle8i. or you can
 run the
 
 following script (modified to suit your system, it was last tested on
 
 Solaris/Oracle 7.3.4)
 
 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # set maximum file size for each chunk of the export file
 #
 MAXFILESIZE=2000m
 export MAXFILESIZE
 #
 # create filenames for the parts of the backup... for now let's go to
 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # save off the old ones
 #
 mv $FILENAME1 $FILENAME1.old
 if [ -f $FILENAME2 ]
 then
 mv $FILENAME2 $FILENAME2.old
 fi
 if [ -f $FILENAME3 ]
 then
 mv $FILENAME3 $FILENAME3.old
 fi
 mv $LOGFILE $LOGFILE.old
 #
 # create the pipes
 #
 mkfifo exportpipeaa
 mkfifo exportpipeab
 mkfifo exportpipeac
 mkfifo wrkpipe
 umask 000
 #
 # start the readers from the pipes to create the export files
 #
 dd if=exportpipeaa of=$FILENAME1 
 dd if=exportpipeab of=$FILENAME2 
 dd if=exportpipeac of=$FILENAME3 
 #
 # start the reader from the wrkpipe to compress and split the export
 #
 dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
 #
 # start the export for real
 #
 exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
 #
 # clean up after ourselves
 #
 rm exportpipeaa exportpipeab exportpipeac wrkpipe
 #
 # if you haven't used all the pipes, the dd may still linger on
 # make sure to REALLY clean up
 #
 ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d; 
 \n,$2)}'kill.lst
 chmod u+x kill.lst
 sh kill.lst
 rm kill.lst
 
 
 
 now to import from those split files
 
 
 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # create filenames for the parts of the backup... for now let's go to
 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # create the pipe to import from
 #
 mkfifo wrkpipe
 umask 000
 #
 # start the reader from the import pipe
 #
 imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
 #
 # create the import stream coming from the pipes
 #
 cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
 #
 # clean up the import pipe
 #
 rm wrkpipe
 
 
 
 From: Armstead, Michael A [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: Export Split Script
 Date: Wed, 16 May 2001 13:07:24 -0800
 
 Rajaram,
 
 Please give me details on how to use mknod to split export files
 larger 
 than
 2 GB. We have broken our jobs into over 50 separate export jobs on
 the 
 table
 level just to keep our files less than 2GB.
 
 Michael Armstead
 Application Database Administrator, OCP-Certified
 US Pharmaceuticals IT
 Glaxo SmithKline
 
   -Original Message-
   From: Rajaram [SMTP:[EMAIL PROTECTED]
   Sent: Wednesday, May 16, 2001 4:31 PM
   To:   Multiple recipients of list ORACLE-L
   Subject:  RE: Export Split Script
  
   If you are using Oracle on Unix , You may want to use unix pipes
 ( 
 mknod).
   - most people use this method to manage files  2GB.
  
   Rajaram
   (Now that I am at the top of a mountain - I dont know how to get
 down!)
  
   -Original Message-
   From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]
   Sent: Wednesday, May 16, 2001 3:57 PM
   To:   Multiple recipients of list ORACLE-L
   Subject:  Export Split Script
  
   I tries using a compressed export and the output is still over
 2G.  Does
   anyone have the export script that splits the export files into
 multiple
   files?
  
   Ron Smith
   Database Administration
   [EMAIL PROTECTED]
  
  
   NetZero Platinum
   No Banner Ads and Unlimited Access
   Sign Up Today - Only $9.95 per month!
   http://www.netzero.net
   --
   Please see the official ORACLE-L FAQ: http://www.orafaq.com
   --
   Author: Rajaram
 INET: [EMAIL PROTECTED]
  
   Fat City Network Services-- (858) 538-5051  FAX: (858)
 538-5051
   San Diego, California-- Public Internet access / Mailing
 Lists
  
 
   To REMOVE yourself from this mailing list, send an E-Mail message
   to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and
 in
   the message BODY, include a line containing: UNSUB ORACLE-L
   (or the name of mailing list you want to be removed from).  You
 may
   also send the HELP command

Re: Export Split Script

2001-05-17 Thread Ruth Gramolini

Rachel,

Your scripts are so slick.  I have been using them for 2 years now.  I
haven't tried any of the others  but 'if it's not broke done fix it!'.  I am
going to be on 8.0.6.3 forever because out vendors won't certify the
application for 8i, so yours scripts are a life saver.

Ruth
- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 5:27 PM


 there is a note out on Metalink on how to do this. You can also break the
 export into separate files in later versions of Oracle8i. or you can run
the
 following script (modified to suit your system, it was last tested on
 Solaris/Oracle 7.3.4)

 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # set maximum file size for each chunk of the export file
 #
 MAXFILESIZE=2000m
 export MAXFILESIZE
 #
 # create filenames for the parts of the backup... for now let's go to 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # save off the old ones
 #
 mv $FILENAME1 $FILENAME1.old
 if [ -f $FILENAME2 ]
 then
 mv $FILENAME2 $FILENAME2.old
 fi
 if [ -f $FILENAME3 ]
 then
 mv $FILENAME3 $FILENAME3.old
 fi
 mv $LOGFILE $LOGFILE.old
 #
 # create the pipes
 #
 mkfifo exportpipeaa
 mkfifo exportpipeab
 mkfifo exportpipeac
 mkfifo wrkpipe
 umask 000
 #
 # start the readers from the pipes to create the export files
 #
 dd if=exportpipeaa of=$FILENAME1 
 dd if=exportpipeab of=$FILENAME2 
 dd if=exportpipeac of=$FILENAME3 
 #
 # start the reader from the wrkpipe to compress and split the export
 #
 dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
 #
 # start the export for real
 #
 exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
 #
 # clean up after ourselves
 #
 rm exportpipeaa exportpipeab exportpipeac wrkpipe
 #
 # if you haven't used all the pipes, the dd may still linger on
 # make sure to REALLY clean up
 #
 ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d;
 \n,$2)}'kill.lst
 chmod u+x kill.lst
 sh kill.lst
 rm kill.lst



 now to import from those split files


 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # create filenames for the parts of the backup... for now let's go to 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # create the pipe to import from
 #
 mkfifo wrkpipe
 umask 000
 #
 # start the reader from the import pipe
 #
 imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
 #
 # create the import stream coming from the pipes
 #
 cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
 #
 # clean up the import pipe
 #
 rm wrkpipe



 From: Armstead, Michael A [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: Export Split Script
 Date: Wed, 16 May 2001 13:07:24 -0800
 
 Rajaram,
 
 Please give me details on how to use mknod to split export files larger
 than
 2 GB. We have broken our jobs into over 50 separate export jobs on the
 table
 level just to keep our files less than 2GB.
 
 Michael Armstead
 Application Database Administrator, OCP-Certified
 US Pharmaceuticals IT
 Glaxo SmithKline
 
   -Original Message-
   From: Rajaram [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, May 16, 2001 4:31 PM
   To: Multiple recipients of list ORACLE-L
   Subject: RE: Export Split Script
  
   If you are using Oracle on Unix , You may want to use unix pipes (
 mknod).
   - most people use this method to manage files  2GB.
  
   Rajaram
   (Now that I am at the top of a mountain - I dont know how to get
down!)
  
   -Original Message-
   From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, May 16, 2001 3:57 PM
   To: Multiple recipients of list ORACLE-L
   Subject: Export Split Script
  
   I tries using a compressed export and the output is still over 2G.
Does
   anyone have the export script that splits the export files into
multiple
   files?
  
   Ron Smith
   Database Administration
   [EMAIL PROTECTED]
  
  
   NetZero Platinum
   No Banner Ads and Unlimited Access
   Sign Up Today - Only $9.95 per month!
   http://www.netzero.net
   --
   Please see the official ORACLE-L FAQ: http://www.orafaq.com
   --
   Author: Rajaram
 INET: [EMAIL PROTECTED]
  
   Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
   San Diego, California-- Public Internet access / Mailing Lists
   
   To REMOVE yourself from this mailing list, send an E-Mail message
   to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
   the message BODY, include a line containing: UNSUB ORACLE-L
   (or the name of mailing list you want to be removed from).  You may
   also send the HELP command for other information (like

RE: Export Split Script

2001-05-17 Thread Thater, William

On Wed, 16 May 2001,Rachel Carmichael scribbled on the wall in glitter crayon:

-de nada -- just trying to beat my fan club (thanks Ruth and Bill :)  ) to
-the punch.

Hi, I'm Bill and I'm a Goddess Groupie.;-)

-
-Now. in 8i (not sure which flavor) you can have export do the split as
-part of the export. I don't think it compresses it but it will at least
-break the files down

I'm using it on 8.1.5, and no it doesn't compress the splits, I do that afterward with 
gzip -9.;-)

--
Bill Thater Certifiable ORACLE DBA
Telergy, Inc.[EMAIL PROTECTED]
~~
You gotta program like you don't need the money,
You gotta compile like you'll never get hurt,
You gotta run like there's nobody watching,
It's gotta come from the heart if you want it to work.
~~
BASIC is to computer programming as QWERTY is to typing.  - Seymour Papert

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Thater, William
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Export Split Script

2001-05-16 Thread Smith, Ron L.

I tries using a compressed export and the output is still over 2G.  Does
anyone have the export script that splits the export files into multiple
files?

Ron Smith
Database Administration
[EMAIL PROTECTED]
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Export Split Script

2001-05-16 Thread Thater, William

On Wed, 16 May 2001,Smith, Ron L. scribbled on the wall in glitter crayon:

-I tries using a compressed export and the output is still over 2G.  Does
-anyone have the export script that splits the export files into multiple
-files?
-
-Ron Smith
-Database Administration
-[EMAIL PROTECTED]
-
Go to www.lazydba.com under scripts and get the scripts from Rachel Carmichael to do 
split exports and imports.

--
Bill Thater Certifiable ORACLE DBA
Telergy, Inc.[EMAIL PROTECTED]
~~
You gotta program like you don't need the money,
You gotta compile like you'll never get hurt,
You gotta run like there's nobody watching,
It's gotta come from the heart if you want it to work.
~~
Identical parts aren't. --Beach's Law

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Thater, William
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Scott . Shafer

http://www.oracle.com/oramag/code/tip01168.html

Scott Shafer
San Antonio, TX
210-581-6217

 -Original Message-
 From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 2:57 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  Export Split Script
 
 I tries using a compressed export and the output is still over 2G.  Does
 anyone have the export script that splits the export files into multiple
 files?
 
 Ron Smith
 Database Administration
 [EMAIL PROTECTED]
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Smith, Ron L.
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Export Split Script

2001-05-16 Thread Roy Ferguson

http://www.oracle.com/oramag/code/tips1998/index.html

1/16/98


I tries using a compressed export and the output is still over 2G.  Does
anyone have the export script that splits the export files into multiple
files?

Ron Smith
Database Administration
[EMAIL PROTECTED]
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Roy E. Ferguson II
Intel Sacramento
916-854-1123

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Roy Ferguson
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Export Split Script

2001-05-16 Thread Ruth Gramolini

On the LazyDBA website there are scripts written by Rachel Carmichael on do
a compressed export into files of 2 gig and the corresponding import.  If
you can't find it let me know and I will try to send it to you.  I can
always send you the one I edited.
My email address is below.

Ruth B. Gramolini
ORACLE  DB2  DBA
VT Dept. of Taxes
ph# 802.828.5708
fax# 802.828..3754
[EMAIL PROTECTED]

- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 3:57 PM


 I tries using a compressed export and the output is still over 2G.  Does
 anyone have the export script that splits the export files into multiple
 files?

 Ron Smith
 Database Administration
 [EMAIL PROTECTED]
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Smith, Ron L.
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ruth Gramolini
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Rajaram

If you are using Oracle on Unix , You may want to use unix pipes ( mknod). - most 
people use this method to manage files  2GB.

Rajaram
(Now that I am at the top of a mountain - I dont know how to get down!)

-Original Message-
From:   Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 16, 2001 3:57 PM
To: Multiple recipients of list ORACLE-L
Subject:Export Split Script

I tries using a compressed export and the output is still over 2G.  Does
anyone have the export script that splits the export files into multiple
files?

Ron Smith
Database Administration
[EMAIL PROTECTED]


NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rajaram
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Smith, Ron L.

Thanks to all who replied.  By the way 'I tries' was a typo.  I try.

Thanks!
Ron

-Original Message-
Sent: Wednesday, May 16, 2001 3:17 PM
To: Multiple recipients of list ORACLE-L


http://www.oracle.com/oramag/code/tips1998/index.html

1/16/98


I tries using a compressed export and the output is still over 2G.  Does
anyone have the export script that splits the export files into multiple
files?

Ron Smith
Database Administration
[EMAIL PROTECTED]
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Roy E. Ferguson II
Intel Sacramento
916-854-1123

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Roy Ferguson
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Armstead, Michael A

Rajaram,

Please give me details on how to use mknod to split export files larger than
2 GB. We have broken our jobs into over 50 separate export jobs on the table
level just to keep our files less than 2GB.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

 -Original Message-
 From: Rajaram [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 4:31 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  RE: Export Split Script
 
 If you are using Oracle on Unix , You may want to use unix pipes ( mknod).
 - most people use this method to manage files  2GB.
 
 Rajaram
 (Now that I am at the top of a mountain - I dont know how to get down!)
 
 -Original Message-
 From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 3:57 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  Export Split Script
 
 I tries using a compressed export and the output is still over 2G.  Does
 anyone have the export script that splits the export files into multiple
 files?
 
 Ron Smith
 Database Administration
 [EMAIL PROTECTED]
 
 
 NetZero Platinum
 No Banner Ads and Unlimited Access
 Sign Up Today - Only $9.95 per month!
 http://www.netzero.net
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Rajaram
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Armstead, Michael A
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Rachel Carmichael

there is a note out on Metalink on how to do this. You can also break the 
export into separate files in later versions of Oracle8i. or you can run the 
following script (modified to suit your system, it was last tested on 
Solaris/Oracle 7.3.4)

#!/bin/sh
#
cd $EXPORT_DIR
#
# set maximum file size for each chunk of the export file
#
MAXFILESIZE=2000m
export MAXFILESIZE
#
# create filenames for the parts of the backup... for now let's go to 3
#
FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
#
# save off the old ones
#
mv $FILENAME1 $FILENAME1.old
if [ -f $FILENAME2 ]
then
mv $FILENAME2 $FILENAME2.old
fi
if [ -f $FILENAME3 ]
then
mv $FILENAME3 $FILENAME3.old
fi
mv $LOGFILE $LOGFILE.old
#
# create the pipes
#
mkfifo exportpipeaa
mkfifo exportpipeab
mkfifo exportpipeac
mkfifo wrkpipe
umask 000
#
# start the readers from the pipes to create the export files
#
dd if=exportpipeaa of=$FILENAME1 
dd if=exportpipeab of=$FILENAME2 
dd if=exportpipeac of=$FILENAME3 
#
# start the reader from the wrkpipe to compress and split the export
#
dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
#
# start the export for real
#
exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
#
# clean up after ourselves
#
rm exportpipeaa exportpipeab exportpipeac wrkpipe
#
# if you haven't used all the pipes, the dd may still linger on
# make sure to REALLY clean up
#
ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d; 
\n,$2)}'kill.lst
chmod u+x kill.lst
sh kill.lst
rm kill.lst



now to import from those split files


#!/bin/sh
#
cd $EXPORT_DIR
#
# create filenames for the parts of the backup... for now let's go to 3
#
FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
#
# create the pipe to import from
#
mkfifo wrkpipe
umask 000
#
# start the reader from the import pipe
#
imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
#
# create the import stream coming from the pipes
#
cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
#
# clean up the import pipe
#
rm wrkpipe



From: Armstead, Michael A [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: Export Split Script
Date: Wed, 16 May 2001 13:07:24 -0800

Rajaram,

Please give me details on how to use mknod to split export files larger 
than
2 GB. We have broken our jobs into over 50 separate export jobs on the 
table
level just to keep our files less than 2GB.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

  -Original Message-
  From:   Rajaram [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, May 16, 2001 4:31 PM
  To: Multiple recipients of list ORACLE-L
  Subject:RE: Export Split Script
 
  If you are using Oracle on Unix , You may want to use unix pipes ( 
mknod).
  - most people use this method to manage files  2GB.
 
  Rajaram
  (Now that I am at the top of a mountain - I dont know how to get down!)
 
  -Original Message-
  From:   Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, May 16, 2001 3:57 PM
  To: Multiple recipients of list ORACLE-L
  Subject:Export Split Script
 
  I tries using a compressed export and the output is still over 2G.  Does
  anyone have the export script that splits the export files into multiple
  files?
 
  Ron Smith
  Database Administration
  [EMAIL PROTECTED]
 
 
  NetZero Platinum
  No Banner Ads and Unlimited Access
  Sign Up Today - Only $9.95 per month!
  http://www.netzero.net
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Rajaram
INET: [EMAIL PROTECTED]
 
  Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
  San Diego, California-- Public Internet access / Mailing Lists
  
  To REMOVE yourself from this mailing list, send an E-Mail message
  to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
  the message BODY, include a line containing: UNSUB ORACLE-L
  (or the name of mailing list you want to be removed from).  You may
  also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Armstead, Michael A
   INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

RE: Export Split Script

2001-05-16 Thread Rajaram

1. Create a Pipe , say usr1.pipe. A pipe is a FIFO structure.
/bin/rm /dsk1/usr1.pipe
   /bin/mknod /dsk1.usr1.pipe p
( See your version of UNIX - mknod differs in its usage - i mean the syntax 
- some strains require that u mention -p )

2. Let compress listen at one end of the pipe.
cat /dsk1/usr1.pipe |compress /dsk9/usr1.dmp.Z 
   In the above step while making compress listen to one end of the pipe - 
you are also sending its output to a different file.
   So, compress captures data at one end of the pipe and as and when it 
encounters data it compresses it and sends it to an output file.  Make sure 
to run it in background.

3. Now do an export - in place of the export dump file mention the pipe. By 
doing this exp will be putting data at one end of the pipe ( and compress 
will be taking data at the other end)
   exp / file=/dsk1/usr1.pipe buffer=64000 2 usr1.log

While importing, In a similar fashion, let uncompress listen at one end 
while imp TAKES data at the other end.

Rajaram
The value of an idea lies in the using of it. - Thomas Edison





-Original Message-
From:   Armstead, Michael A [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 16, 2001 4:04 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject:RE: Export Split Script

Rajaram,

Please give me details on how to use mknod to split export files larger 
than
2 GB. We have broken our jobs into over 50 separate export jobs on the 
table
level just to keep our files less than 2GB.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

 -Original Message-
 From: Rajaram [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 4:31 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  RE: Export Split Script

 If you are using Oracle on Unix , You may want to use unix pipes ( 
mknod).
 - most people use this method to manage files  2GB.

 Rajaram
 (Now that I am at the top of a mountain - I dont know how to get down!)

 -Original Message-
 From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 3:57 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  Export Split Script

 I tries using a compressed export and the output is still over 2G.  Does
 anyone have the export script that splits the export files into multiple
 files?

 Ron Smith
 Database Administration
 [EMAIL PROTECTED]


 NetZero Platinum
 No Banner Ads and Unlimited Access
 Sign Up Today - Only $9.95 per month!
 http://www.netzero.net
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Rajaram
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).


NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rajaram
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Export Split Script

2001-05-16 Thread Keith Shum

Hi, all professionals,

I am just wondering why we cannot use the parameter FILE parameter?
With this parameter and FILESIZE, data will be split to multiple files
automatically...

Armstead, Michael A wrote:

 Rajaram,

 Please give me details on how to use mknod to split export files larger than
 2 GB. We have broken our jobs into over 50 separate export jobs on the table
 level just to keep our files less than 2GB.

 Michael Armstead
 Application Database Administrator, OCP-Certified
 US Pharmaceuticals IT
 Glaxo SmithKline

  -Original Message-
  From: Rajaram [SMTP:[EMAIL PROTECTED]]
  Sent: Wednesday, May 16, 2001 4:31 PM
  To:   Multiple recipients of list ORACLE-L
  Subject:  RE: Export Split Script
 
  If you are using Oracle on Unix , You may want to use unix pipes ( mknod).
  - most people use this method to manage files  2GB.
 
  Rajaram
  (Now that I am at the top of a mountain - I dont know how to get down!)
 
  -Original Message-
  From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
  Sent: Wednesday, May 16, 2001 3:57 PM
  To:   Multiple recipients of list ORACLE-L
  Subject:  Export Split Script
 
  I tries using a compressed export and the output is still over 2G.  Does
  anyone have the export script that splits the export files into multiple
  files?
 
  Ron Smith
  Database Administration
  [EMAIL PROTECTED]
 
 
  NetZero Platinum
  No Banner Ads and Unlimited Access
  Sign Up Today - Only $9.95 per month!
  http://www.netzero.net
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Rajaram
INET: [EMAIL PROTECTED]
 
  Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
  San Diego, California-- Public Internet access / Mailing Lists
  
  To REMOVE yourself from this mailing list, send an E-Mail message
  to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
  the message BODY, include a line containing: UNSUB ORACLE-L
  (or the name of mailing list you want to be removed from).  You may
  also send the HELP command for other information (like subscribing).

 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Armstead, Michael A
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).

--
Keith Shum


iLux Corporation
(510) 226-5635
[EMAIL PROTECTED]


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Keith Shum
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Export Split Script

2001-05-16 Thread Armstead, Michael A

Thanks, Rachel. You're a sweetheart.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

 -Original Message-
 From: Rachel Carmichael [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 16, 2001 5:28 PM
 To:   Multiple recipients of list ORACLE-L
 Subject:  RE: Export Split Script
 
 there is a note out on Metalink on how to do this. You can also break the 
 export into separate files in later versions of Oracle8i. or you can run
 the 
 following script (modified to suit your system, it was last tested on 
 Solaris/Oracle 7.3.4)
 
 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # set maximum file size for each chunk of the export file
 #
 MAXFILESIZE=2000m
 export MAXFILESIZE
 #
 # create filenames for the parts of the backup... for now let's go to 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # save off the old ones
 #
 mv $FILENAME1 $FILENAME1.old
 if [ -f $FILENAME2 ]
 then
 mv $FILENAME2 $FILENAME2.old
 fi
 if [ -f $FILENAME3 ]
 then
 mv $FILENAME3 $FILENAME3.old
 fi
 mv $LOGFILE $LOGFILE.old
 #
 # create the pipes
 #
 mkfifo exportpipeaa
 mkfifo exportpipeab
 mkfifo exportpipeac
 mkfifo wrkpipe
 umask 000
 #
 # start the readers from the pipes to create the export files
 #
 dd if=exportpipeaa of=$FILENAME1 
 dd if=exportpipeab of=$FILENAME2 
 dd if=exportpipeac of=$FILENAME3 
 #
 # start the reader from the wrkpipe to compress and split the export
 #
 dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
 #
 # start the export for real
 #
 exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
 #
 # clean up after ourselves
 #
 rm exportpipeaa exportpipeab exportpipeac wrkpipe
 #
 # if you haven't used all the pipes, the dd may still linger on
 # make sure to REALLY clean up
 #
 ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d; 
 \n,$2)}'kill.lst
 chmod u+x kill.lst
 sh kill.lst
 rm kill.lst
 
 
 
 now to import from those split files
 
 
 #!/bin/sh
 #
 cd $EXPORT_DIR
 #
 # create filenames for the parts of the backup... for now let's go to 3
 #
 FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
 FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
 FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
 LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
 #
 # create the pipe to import from
 #
 mkfifo wrkpipe
 umask 000
 #
 # start the reader from the import pipe
 #
 imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
 #
 # create the import stream coming from the pipes
 #
 cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
 #
 # clean up the import pipe
 #
 rm wrkpipe
 
 
 
 From: Armstead, Michael A [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: Export Split Script
 Date: Wed, 16 May 2001 13:07:24 -0800
 
 Rajaram,
 
 Please give me details on how to use mknod to split export files larger 
 than
 2 GB. We have broken our jobs into over 50 separate export jobs on the 
 table
 level just to keep our files less than 2GB.
 
 Michael Armstead
 Application Database Administrator, OCP-Certified
 US Pharmaceuticals IT
 Glaxo SmithKline
 
   -Original Message-
   From: Rajaram [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, May 16, 2001 4:31 PM
   To:   Multiple recipients of list ORACLE-L
   Subject:  RE: Export Split Script
  
   If you are using Oracle on Unix , You may want to use unix pipes ( 
 mknod).
   - most people use this method to manage files  2GB.
  
   Rajaram
   (Now that I am at the top of a mountain - I dont know how to get
 down!)
  
   -Original Message-
   From: Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, May 16, 2001 3:57 PM
   To:   Multiple recipients of list ORACLE-L
   Subject:  Export Split Script
  
   I tries using a compressed export and the output is still over 2G.
 Does
   anyone have the export script that splits the export files into
 multiple
   files?
  
   Ron Smith
   Database Administration
   [EMAIL PROTECTED]
  
  
   NetZero Platinum
   No Banner Ads and Unlimited Access
   Sign Up Today - Only $9.95 per month!
   http://www.netzero.net
   --
   Please see the official ORACLE-L FAQ: http://www.orafaq.com
   --
   Author: Rajaram
 INET: [EMAIL PROTECTED]
  
   Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
   San Diego, California-- Public Internet access / Mailing Lists
   
   To REMOVE yourself from this mailing list, send an E-Mail message
   to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
   the message BODY, include a line containing: UNSUB ORACLE-L
   (or the name of mailing list you want to be removed from).  You may
   also send the HELP command for other information (like subscribing

RE: Export Split Script

2001-05-16 Thread Rachel Carmichael

de nada -- just trying to beat my fan club (thanks Ruth and Bill :)  ) to 
the punch.

Now. in 8i (not sure which flavor) you can have export do the split as 
part of the export. I don't think it compresses it but it will at least 
break the files down



From: Armstead, Michael A [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: RE: Export Split Script
Date: Wed, 16 May 2001 14:05:29 -0800

Thanks, Rachel. You're a sweetheart.

Michael Armstead
Application Database Administrator, OCP-Certified
US Pharmaceuticals IT
Glaxo SmithKline

  -Original Message-
  From:   Rachel Carmichael [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, May 16, 2001 5:28 PM
  To: Multiple recipients of list ORACLE-L
  Subject:RE: Export Split Script
 
  there is a note out on Metalink on how to do this. You can also break 
the
  export into separate files in later versions of Oracle8i. or you can run
  the
  following script (modified to suit your system, it was last tested on
  Solaris/Oracle 7.3.4)
 
  #!/bin/sh
  #
  cd $EXPORT_DIR
  #
  # set maximum file size for each chunk of the export file
  #
  MAXFILESIZE=2000m
  export MAXFILESIZE
  #
  # create filenames for the parts of the backup... for now let's go to 3
  #
  FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
  FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
  FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
  LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
  #
  # save off the old ones
  #
  mv $FILENAME1 $FILENAME1.old
  if [ -f $FILENAME2 ]
  then
  mv $FILENAME2 $FILENAME2.old
  fi
  if [ -f $FILENAME3 ]
  then
  mv $FILENAME3 $FILENAME3.old
  fi
  mv $LOGFILE $LOGFILE.old
  #
  # create the pipes
  #
  mkfifo exportpipeaa
  mkfifo exportpipeab
  mkfifo exportpipeac
  mkfifo wrkpipe
  umask 000
  #
  # start the readers from the pipes to create the export files
  #
  dd if=exportpipeaa of=$FILENAME1 
  dd if=exportpipeab of=$FILENAME2 
  dd if=exportpipeac of=$FILENAME3 
  #
  # start the reader from the wrkpipe to compress and split the export
  #
  dd if=wrkpipe|compress|split -b $MAXFILESIZE - exportpipe 
  #
  # start the export for real
  #
  exp / file=wrkpipe full=y compress=n buffer=4096000 LOG=$LOGFILE
  #
  # clean up after ourselves
  #
  rm exportpipeaa exportpipeab exportpipeac wrkpipe
  #
  # if you haven't used all the pipes, the dd may still linger on
  # make sure to REALLY clean up
  #
  ps -ef|grep exportpipe|grep -vi grep|awk '{printf (kill -9 %d;
  \n,$2)}'kill.lst
  chmod u+x kill.lst
  sh kill.lst
  rm kill.lst
 
 
 
  now to import from those split files
 
 
  #!/bin/sh
  #
  cd $EXPORT_DIR
  #
  # create filenames for the parts of the backup... for now let's go to 3
  #
  FILENAME1=$EXPORT_DIR/backup1_$ORACLE_SID.dmp
  FILENAME2=$EXPORT_DIR/backup2_$ORACLE_SID.dmp
  FILENAME3=$EXPORT_DIR/backup3_$ORACLE_SID.dmp
  LOGFILE=$EXPORT_DIR/backup_$ORACLE_SID.log
  #
  # create the pipe to import from
  #
  mkfifo wrkpipe
  umask 000
  #
  # start the reader from the import pipe
  #
  imp / file=wrkpipe full=y commit=y buffer=4096000 LOG=$LOGFILE 
  #
  # create the import stream coming from the pipes
  #
  cat $FILENAME1 $FILENAME2 $FILENAME3 | uncompress | dd of=wrkpipe
  #
  # clean up the import pipe
  #
  rm wrkpipe
 
 
 
  From: Armstead, Michael A [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
  Subject: RE: Export Split Script
  Date: Wed, 16 May 2001 13:07:24 -0800
  
  Rajaram,
  
  Please give me details on how to use mknod to split export files larger
  than
  2 GB. We have broken our jobs into over 50 separate export jobs on the
  table
  level just to keep our files less than 2GB.
  
  Michael Armstead
  Application Database Administrator, OCP-Certified
  US Pharmaceuticals IT
  Glaxo SmithKline
  
-Original Message-
From:   Rajaram [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 16, 2001 4:31 PM
To: Multiple recipients of list ORACLE-L
Subject:RE: Export Split Script
   
If you are using Oracle on Unix , You may want to use unix pipes (
  mknod).
- most people use this method to manage files  2GB.
   
Rajaram
(Now that I am at the top of a mountain - I dont know how to get
  down!)
   
-Original Message-
From:   Smith, Ron L. [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 16, 2001 3:57 PM
To: Multiple recipients of list ORACLE-L
Subject:Export Split Script
   
I tries using a compressed export and the output is still over 2G.
  Does
anyone have the export script that splits the export files into
  multiple
files?
   
Ron Smith
Database Administration
[EMAIL PROTECTED]
   
   
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com

Re: Export Split Script - reply from NT-Land

2001-05-16 Thread Paul Drake

Rachel Carmichael wrote:
 
 de nada -- just trying to beat my fan club (thanks Ruth and Bill :)  ) to
 the punch.
 
 Now. in 8i (not sure which flavor) you can have export do the split as
 part of the export. I don't think it compresses it but it will at least
 break the files down
 

the export parameter FILESIZE maximum size of each dump file in bytes
in conjunction with a list of files in FILE=(file1,file2,...,filen)
works great.

for Compression - for NT/W2K:

PowerArchiver has command-line support for compressing files - provided
that they are less than 2 GB.
http://ipsoft.cjb.net/
check out the section on command-line support.

PACOMP.EXE
ARJ is great - but its not free.
Also, if you don't like reading man pages - this one is real short.

Usage:
--

  PACOMP {-commands -commands ...} {d:}{\path\}filespec.ext {files ...}

Commands:
-

   a   : add files to archive (default)
   u   : update files to archive
   m   : move files to archive (files only)

   p|P : store relative Pathnames|store full Pathnames
   c0..2 : set compression level (0 - store; 1 - normal ; 2 -
maximal)
   spassword : scramble with password (must be given)
   o   : store date using the current system's date


my example:

destination source

pacomp -a -c1 d:\ZipFiles\DEV\EXP\dev_dat.zip
D:\Oracle\Admin\DEV\exp\dev_dat.*

yum.

Now you have NO reason for not keeping a backup set on disk.

Paul
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Drake
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).