DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: SEQUENCE QUESTION FOR SQLLOADER

  1. #1
    Join Date
    Jan 2001
    Posts
    20

    Question

    I am loading a table using sqlloader and the the primary key of the table that is being loaded is a sequence. If I don't specify that column in my control file when I do a fixed format field load, will the column generate it's sequence number or do I have to specify something in my control file?

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Yes, you must specify the SEQUENCE keyword in the control file. (See [url]http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a76955/ch04.htm#3100[/url] )
    Jeff Hunter

  3. #3
    Join Date
    Jan 2001
    Posts
    20
    I've been looking through some case studies about sequences
    Even if I'm am appending rows to the table and the sequence parameters are alredy set in the table? Could you show me an example? I don't seem to have access to that site that you gave me?

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    LOAD DATA
    INFILE *
    APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    (empno, ename, job, mgr,
    hiredate DATE(20) "DD-Month-YYYY",
    sal, comm, deptno CHAR TERMINATED BY ':',
    projno,
    loadseq SEQUENCE(MAX,1))
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width