Importing *.csv with a default SYS_GUID() column

How do I import data from a *.csv file into a table with a primary key of type RAW(16)  DEFAULT  SYS_GUID()?  I am wanting Oracle to generate the sys_guid().

M@
LVL 4
willcode4coffeeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Not sure what the problem is.

table def:
-------------------------
drop table tab1;
create table tab1(
      col1 raw(16) default sys_guid(),
      col2 varchar2(50),
      col3 varchar2(50)
);

sqlldr control file:
---------------------------
load data
infile 'q.dat'  
into table tab1
fields terminated by ',' optionally enclosed by '"'
(col2 char,
 col3 char)


q.dat:
---------------------------
hello,world
james,bond


Command line:
-----------------------------
sqlldr <username>/<password> control=q.ctl

results:
------------------------------
SQL> select * from tab1;
F1483D1C48D24A0EA22F4BC8C2E6565C
hello
world

D258B94FD519422EBF0D9A347D2075A6
james
bond
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.