dbTalk Databases Forums  

Fastunload utility for oracle - Unloading a huge table(partitioned)to a file - Can we concatenate columns?

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Fastunload utility for oracle - Unloading a huge table(partitioned)to a file - Can we concatenate columns? in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
poojam
 
Posts: n/a

Default Fastunload utility for oracle - Unloading a huge table(partitioned)to a file - Can we concatenate columns? - 06-14-2009 , 10:28 AM






Hi,
We have a huge table (approx ~300 million rows) with ~150 columns in
the table.
This table is partioned in 8 partitions.
We need to extract one file per partition.

We were planning to use Fast unload for the same. But as we need data
in specific format we saw few constraints.
File delimiter has been specified in the control file as caret = ^
And we want to extract using an sql like this, but it does not work:
select column1 , column2, column3, column4 || '|' || column5 || '|' ||
column6 from table
It gives a syntax error saying that || are not recognized.

How can we concat 2 columns in Fastunload? Is it possible or not?
Are there any documents where we can refer. I could find no technical
documents on fast unload on web.

---------
If fasunload does not support concatenating the above, should we go
for Pro-C or Perl? Which one will be better?
More details:
We extracted the data of the table using fast unload and avreage row
size is approx. 700 bytes.
---------

Please suggest as this is urgent for one of our tasks,
Thanking you in advance,
Pooja

Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Fastunload utility for oracle - Unloading a hugetable(partitioned) to a file - Can we concatenate columns? - 06-15-2009 , 05:47 PM






On Jun 14, 10:28*am, poojam <poojama... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
We have a huge table (approx ~300 million rows) with ~150 columns in
the table.
This table is partioned in 8 partitions.
We need to extract one file per partition.
[]
If fasunload does not support concatenating the above, should we go
for Pro-C or Perl? Which one will be better?
More details:
We extracted the data of the table using fast unload and avreage row
size is approx. 700 bytes.
---------

Please suggest as this is urgent for one of our tasks,
Thanking you in advance,
Pooja
I have no experience with fasunload.

If this is a one-time extraction, I'd go right to PERL. If this is a
production requirement (i.e., this will be done as a regular job,
repeatedly), then I'd still prefer PERL over Pro-C. Go for Pro-C if
your skill in it is much greater than your skill in PERL.

Ed
(trailing comments about using appropriate tools can be assumed here.
8^)

Reply With Quote
  #3  
Old   
ddf
 
Posts: n/a

Default Re: Fastunload utility for oracle - Unloading a hugetable(partitioned) to a file - Can we concatenate columns? - 06-16-2009 , 02:03 PM



On Jun 14, 9:28*am, poojam <poojama... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
We have a huge table (approx ~300 million rows) with ~150 columns in
the table.
This table is partioned in 8 partitions.
We need to extract one file per partition.

We were planning to use Fast unload for the same. But as we need data
in specific format we saw few constraints.
File delimiter has been specified in the control file as caret = ^
And we want to extract using an sql like this, but it does not work:
select column1 , column2, column3, column4 || '|' || column5 || '|' ||
column6 from table
It gives a syntax error saying that || are not recognized.

How can we concat 2 columns in Fastunload? Is it possible or not?
Are there any documents where we can refer. I could find no technical
documents on fast unload on web.

---------
If fasunload does not support concatenating the above, should we go
for Pro-C or Perl? Which one will be better?
More details:
We extracted the data of the table using fast unload and avreage row
size is approx. 700 bytes.
---------

Please suggest as this is urgent for one of our tasks,
Thanking you in advance,
Pooja
Apparently you haven't tried using the concat() function:

http://download.oracle.com/docs/cd/B...htm#sthref1161


David Fitzjarrell

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.