RE: External Tables question

2003-11-05 Thread Jamadagni, Rajendra
Title: RE: External Tables question



Thanks everyone ... appreciate your input.
 
Raj
 
Rajendra dot Jamadagni at nospamespn dot 
com All Views expressed in this email 
are strictly personal. QOTD: Any clod 
can have facts, having an opinion is an art ! 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 
  05, 2003 3:29 PMTo: Multiple recipients of list 
  ORACLE-LSubject: RE: External Tables 
  question
  Raj, here is an example of control file: 
  load data into table 
   truncate (piece recnum 
  ... ) 
  Alex. 
  -Original Message- From: 
  Jamadagni, Rajendra [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, November 05, 2003 8:25 AM 
  To: Multiple recipients of list ORACLE-L Subject: External Tables question 
  I am trying to use external tables, but can't seem to find one 
  thing that I'd like (I have already RTFM'd but may have missed some 
  part).
  Is there a way I could load the line number of the text file 
  as a column in the table? line number isn't hard coded but can record number 
  be used (somehow)?
  Any ideas? TIA Raj  
  Rajendra dot Jamadagni at nospamespn dot com 
  All Views expressed in this email are strictly 
  personal. QOTD: Any clod can have facts, having an 
  opinion is an art ! 
  ** 
  This e-mail message is confidential, intended only for the 
  named recipient(s) above and may contain information that is privileged, 
  attorney work product or exempt from disclosure under applicable law. If you 
  have received this message in error, or are not the named recipient(s), please 
  immediately notify corporate MIS at (860) 766-2000 and delete this e-mail 
  message from your computer, Thank you.
  **4 
  **This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.**5


RE: External Tables question

2003-11-05 Thread Alexander . Feinstein
Title: RE: External Tables question






Raj, here is an example of control file:


load data
into table  truncate
(piece recnum
...
)


Alex.



-Original Message-
From: Jamadagni, Rajendra [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 05, 2003 8:25 AM
To: Multiple recipients of list ORACLE-L
Subject: External Tables question



I am trying to use external tables, but can't seem to find one thing that I'd like (I have already RTFM'd but may have missed some part).

Is there a way I could load the line number of the text file as a column in the table? line number isn't hard coded but can record number be used (somehow)?

Any ideas? TIA 
Raj 
 
Rajendra dot Jamadagni at nospamespn dot com 
All Views expressed in this email are strictly personal. 
QOTD: Any clod can have facts, having an opinion is an art ! 


**
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

**4 





RE: RE: External Tables question

2003-11-05 Thread Khedr, Waleed
select * 
from
(Select rownum m_id, table_name
 from dba_tables)

-Original Message-
Sent: Wednesday, November 05, 2003 12:10 PM
To: Multiple recipients of list ORACLE-L


cant you use rownum with a 'merge'? 
> 
> From: "Khedr, Waleed" <[EMAIL PROTECTED]>
> Date: 2003/11/05 Wed AM 11:34:33 EST
> To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> Subject: RE: External Tables question
> 
> What about rownum?
>  
> Waleed
> 
> -Original Message-
> Sent: Wednesday, November 05, 2003 11:25 AM
> To: Multiple recipients of list ORACLE-L
> 
> 
> 
> I am trying to use external tables, but can't seem to find one thing that
> I'd like (I have already RTFM'd but may have missed some part).
> 
> Is there a way I could load the line number of the text file as a column
in
> the table? line number isn't hard coded but can record number be used
> (somehow)?
> 
> Any ideas? TIA 
> Raj 
>

>  
> Rajendra dot Jamadagni at nospamespn dot com 
> All Views expressed in this email are strictly personal. 
> QOTD: Any clod can have facts, having an opinion is an art ! 
> 
> 
>

> **
> This e-mail message is confidential, intended only for the named
> recipient(s) above and may contain information that is privileged,
attorney
> work product or exempt from disclosure under applicable law. If you have
> received this message in error, or are not the named recipient(s), please
> immediately notify corporate MIS at (860) 766-2000 and delete this e-mail
> message from your computer, Thank you.
>

> **4 
> 
> 
> 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Khedr, Waleed
  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: RE: External Tables question

2003-11-05 Thread ryan_oracle
cant you use rownum with a 'merge'? 
> 
> From: "Khedr, Waleed" <[EMAIL PROTECTED]>
> Date: 2003/11/05 Wed AM 11:34:33 EST
> To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> Subject: RE: External Tables question
> 
> What about rownum?
>  
> Waleed
> 
> -Original Message-
> Sent: Wednesday, November 05, 2003 11:25 AM
> To: Multiple recipients of list ORACLE-L
> 
> 
> 
> I am trying to use external tables, but can't seem to find one thing that
> I'd like (I have already RTFM'd but may have missed some part).
> 
> Is there a way I could load the line number of the text file as a column in
> the table? line number isn't hard coded but can record number be used
> (somehow)?
> 
> Any ideas? TIA 
> Raj 
> 
>  
> Rajendra dot Jamadagni at nospamespn dot com 
> All Views expressed in this email are strictly personal. 
> QOTD: Any clod can have facts, having an opinion is an art ! 
> 
> 
> 
> **
> This e-mail message is confidential, intended only for the named
> recipient(s) above and may contain information that is privileged, attorney
> work product or exempt from disclosure under applicable law. If you have
> received this message in error, or are not the named recipient(s), please
> immediately notify corporate MIS at (860) 766-2000 and delete this e-mail
> message from your computer, Thank you.
> 
> **4 
> 
> 
> 
Title: External Tables question



What about 
rownum?
 
Waleed

  -Original Message-From: Jamadagni, Rajendra 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 05, 
  2003 11:25 AMTo: Multiple recipients of list 
  ORACLE-LSubject: External Tables question
  I am trying to use external tables, but 
  can't seem to find one thing that I'd like (I have already RTFM'd but may have 
  missed some part).
  Is there a way I could load the line number 
  of the text file as a column in the table? line number isn't hard coded but 
  can record number be used (somehow)?
  Any ideas? TIA Raj  
  Rajendra dot Jamadagni at nospamespn dot 
  com All Views expressed in this 
  email are strictly personal. QOTD: 
  Any clod can have facts, having an opinion is an art ! 
  **This 
  e-mail message is confidential, intended only for the named recipient(s) above 
  and may contain information that is privileged, attorney work product or 
  exempt from disclosure under applicable law. If you have received this message 
  in error, or are not the named recipient(s), please immediately notify 
  corporate MIS at (860) 766-2000 and delete this e-mail message from your 
  computer, Thank 
  you.**4 




Re: External Tables question

2003-11-05 Thread Mladen Gogala
You can't load line number into the table except in the case where line number is
actually contained in the table as a column. External tables are great for loading 
things into the proper realtional tables but cannot  be used for much otherwise.
You cannot index an external table. The best thing to do is something like 
insert /*+ append */ into real_table select /*+ parallel(ext,4) */ select * from 
external_table ext;

On 11/05/2003 11:24:32 AM, "Jamadagni, Rajendra" wrote:
> I am trying to use external tables, but can't seem to find one thing that I'd like 
> (I have already RTFM'd but may have missed some part).
> 
> Is there a way I could load the line number of the text file as a column in the 
> table? line number isn't hard coded but can record number be used (somehow)?
> 
> Any ideas? TIA
> Raj
> 
> Rajendra dot Jamadagni at nospamespn dot com
> All Views expressed in this email are strictly personal.
> QOTD: Any clod can have facts, having an opinion is an art !
> 
> 
> **
> This e-mail message is confidential, intended only for the named recipient(s) above 
> and may contain information that is privileged, attorney work product or exempt from 
> disclosure under applicable law. If you have received this message in error, or are 
> not the named recipient(s), please immediately notify corporate MIS at (860) 
> 766-2000 and delete this e-mail message from your computer, Thank you.
> **4
> 

Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, 
proprietary or legally privileged information.  No confidentiality or privilege is 
waived or lost by any mistransmission.  If you receive this message in error, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender.  You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to 
monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where 
the message states otherwise and the sender is authorized to state them to be the 
views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  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: External Tables question

2003-11-05 Thread Khedr, Waleed
Title: External Tables question



What about 
rownum?
 
Waleed

  -Original Message-From: Jamadagni, Rajendra 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 05, 
  2003 11:25 AMTo: Multiple recipients of list 
  ORACLE-LSubject: External Tables question
  I am trying to use external tables, but 
  can't seem to find one thing that I'd like (I have already RTFM'd but may have 
  missed some part).
  Is there a way I could load the line number 
  of the text file as a column in the table? line number isn't hard coded but 
  can record number be used (somehow)?
  Any ideas? TIA Raj  
  Rajendra dot Jamadagni at nospamespn dot 
  com All Views expressed in this 
  email are strictly personal. QOTD: 
  Any clod can have facts, having an opinion is an art ! 
  **This 
  e-mail message is confidential, intended only for the named recipient(s) above 
  and may contain information that is privileged, attorney work product or 
  exempt from disclosure under applicable law. If you have received this message 
  in error, or are not the named recipient(s), please immediately notify 
  corporate MIS at (860) 766-2000 and delete this e-mail message from your 
  computer, Thank 
  you.**4