- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using the split command for Oracle export files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 08:58 AM
04-18-2002 08:58 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 09:03 AM
04-18-2002 09:03 AM
Re: Using the split command for Oracle export files
Did you try this:
whatever | split -l 5000 -a 6 - expfile
the -l (el) 5000 tells it to split on every 5000 lines
The -a 6 tells it to use a 6 digit suffix appended to "expfile" name, ie: expfile.000001, expfile.000002, ...
the dash "-" says sepect input from STDIN
and the "expfile" is the output file name PREFIX, ie expfile.000001
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 09:05 AM
04-18-2002 09:05 AM
Re: Using the split command for Oracle export files
Have you tried to export to a pipe and then dd it to a tape???
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 09:08 AM
04-18-2002 09:08 AM
Re: Using the split command for Oracle export files
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 09:09 AM
04-18-2002 09:09 AM
Re: Using the split command for Oracle export files
# split -l 500 myfile newfile
will get files as such "newfileaa , newfileab, nefileac .. and so on".
Take note , the limit of after processed files = 676 files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 05:41 AM
04-19-2002 05:41 AM
Re: Using the split command for Oracle export files
If you use the Oracle 8i, you can in the command exp specify more than one file in the paramater file.
e.g. exp user/password file=file1.exp,file2.exp,... full=y
Of course this functionality is only available on the version 8.1.x or later
Regards,
Xavier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 05:55 AM
04-19-2002 05:55 AM
Re: Using the split command for Oracle export files
From 8.1.x onwards the 2GB limit shouldn't be an issue.
On 8.0.5 and 8.0.6 you have to apply an Oracle patch to fix this.
Check the following matrix:
If you have problems with files >2GB see the following matrix:
Limits apply to HPUX 10.20 and 11.0 except where noted otherwise.
Max Datafile Size
File Raw Async Export/ SQL*Loader
Release System Device I/O Import** (see **)
===========================================================================
8.1.7.x 64Gb 64Gb raw only >2Gb >2Gb
8.1.6.x 64Gb 64Gb raw only >2Gb >2Gb
8.0.6.x 64Gb 64Gb raw only See*1 See*2
8.0.5.x 64Gb 64Gb raw only See*1 <2Gb
8.0.4.x 64Gb 64Gb raw only SIL HPUX10.20 > 2Gb
HPUX-11 <2Gb
8.0.3.x <2Gb <2Gb raw only 2Gb 2Gb
7.3.4.x 64Gb 64Gb raw only SIL 2Gb
>=7.3.3.4.1 64Gb 64Gb raw only SIL 2Gb
7.3.2.3 <2Gb <2Gb raw only 2Gb 2Gb
7.1.6 <2Gb <2Gb raw only 2Gb 2Gb
SIL = System Imposed Limit
Always test on the actual system to ensure large files can be
read / written.
*1 = HPUX 10.20 requires a patch to create >2Gb export files:
8.0.5.0 to 8.0.5.2 inclusive - Get the patch for Bug:872947
8.0.6.0 to 8.0.6.1 inclusive - Get the patch for Bug:1330994
HPUX 11 can export >2Gb on these RDBMS releases.
*2 = HPUX 10.20 requires a patch for > 2Gb SQL Loader files:
8.0.6 - Get the patch for Bug:1344224
HPUX 11 can SQLLoader can read >2Gb files as standard.
** Exp/Imp/Loader
The above matrix indicates the maximum file size
which can be directly handled by exp/imp/loader.
However, it is possible to read/write files >2Gb
using the OS commands.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 05:58 AM
04-19-2002 05:58 AM
Re: Using the split command for Oracle export files
Have attached the matrix instead.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 07:52 AM
04-19-2002 07:52 AM
Re: Using the split command for Oracle export files
mknod exportpipe p
split -b2000m < exportpipe &
exp system/manager file=exportpipe full=y
So somehow in the split command, I am trying to specify meanigful file names instead of the default xaa, xab, xac, etc., that come out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 09:10 AM
04-19-2002 09:10 AM
Re: Using the split command for Oracle export files
I've taken your fifo and integrated it into what Harry suggested above...
split -l 5000 -a 6 - exportpipe &
HTH,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 10:46 AM
04-19-2002 10:46 AM
Re: Using the split command for Oracle export files
mknod orapipe p
/usr/contrib/bin/gzip < orapipe > oracle_export.gz &
exp username/password file=./orapipe full=y log=export.log
rm orapipe
Hope this helps
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 11:00 AM
04-19-2002 11:00 AM
SolutionSorry about the first posts, I was confusing csplit with split - I need a drink!
mknod exportpipe p
split -b2000m -a4 - expfiles_ < exportpipe &
exp system/manager file=exportpipe full=y
THe output file names will be
expfiles_aaaa
expfiles_aaab
expfiles_aaac
...
expfiles_zzzz
I tested the above and it worked for me - although I didn't test an export, but I did use the pipe and split command as shown.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 11:19 AM
04-19-2002 11:19 AM
Re: Using the split command for Oracle export files
Morris