Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with sqlloader 1

Status
Not open for further replies.

rogers42

Technical User
Mar 30, 2007
64
CA
Hi Folks,

Snippet of my ctl file looks as follows

...
PINGABLE CHAR "DECODE('0', 'NON PINGABLE',
'1', 'PINGABLE',
'UNKNOWN')",
....

This particular field is defined as follows in my table

PINGABLE VARCHAR2(15)

While the data is loaded sucessfully, the PINGABLE column is blank.

I have also tried loading the data without using the DECODE function and it works fine.

Can somebody spot anything that I might have missed.

Thanks in advance

rogers42
 
Hi,

I figured out the problem. The correct syntax is as follows

....
PINGABLE CHAR "DECODE:)PINGABLE, '0', 'NON PINGABLE',
'1', 'PINGABLE',
'UNKNOWN')",
....

Thanks

rogers42
 
Rogers,

In addition to figuring out the problem on your own, because of your posting your findings, it made this thread very valuable. (Amazing how important a colon can be, huh! <grin>)

As a result, you deserve a
star.gif
.

Cheers,

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
A fo ben, bid bont.
 
...not that the colon was the only thing missing...The presence of the colon reminds subsequent readers that they must use the colon (signalling a bind-variable reference) when referencing columns as function arguments in SQL*Loader. [smile]

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
A fo ben, bid bont.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top