Home » RDBMS Server » Server Utilities » SQL loader -Control file with header
SQL loader -Control file with header [message #168178] Wed, 19 April 2006 03:47 Go to next message
oracle.g
Messages: 12
Registered: October 2005
Junior Member
Hi,
My control file is like this:
col1|col2|col3
1|a|red
2|b|yellow
The 1st line is the header record col1,col2,col3 are the names of the column of table.
Depending on the header i have to insert.
Should not process based on the delimiter.

Table
-----
col1 col2 col3
1 a red
2 b yellow

Thanks
Re: SQL loader -Control file with header [message #168223 is a reply to message #168178] Wed, 19 April 2006 06:07 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Please rephrase. I do not understand what you are talking about.
Re: SQL loader -Control file with header [message #168225 is a reply to message #168178] Wed, 19 April 2006 06:17 Go to previous messageGo to next message
oracle.g
Messages: 12
Registered: October 2005
Junior Member
Example
-------
Control file:
Name|City|Phone
a|ABC|234
b|DEF|567
c|GHI|899

The 1st record is the header with column names. The table contains the columns
Name
City
Phone

Requirement
Need to load the data based on the header given and not based on delimiter.
In the sense I should insert it looking the header so that in future if we change the delimiter also this is not affected and based only on columns present in headers.

Thanks.

Re: SQL loader -Control file with header [message #168227 is a reply to message #168225] Wed, 19 April 2006 06:20 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
You cannot ignore the delimters ( unless you go for POSITION. Then the data should always be the exactly as in defined POSTIONS).
Re: SQL loader -Control file with header [message #168229 is a reply to message #168227] Wed, 19 April 2006 06:27 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm#1006795
Previous Topic: Importing 10g dump to 9i DB
Next Topic: Overwriting tables using impdp in Oracle 10g XE
Goto Forum:
  


Current Time: Thu Jul 04 19:51:48 CDT 2024