Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default SQL Bulk Loader

    How do I trigger the ORACLE 10g Bulk Loader from within CF? I tried with the
    following code but am told it is an invalid SQL statement.

    thanks!

    <cfquery name="qCatalogImport" datasource="ACS">
    LOAD DATA
    INFILE #DateFileName#
    INTO TABLE PARTS_IMPORT
    FIELDS TERMINATED BY '|'
    (PART_NUM,LIST_PRICE,DESCRIPTION CHAR(750),DISCOUNT_CODE,Mfr_ID,ISREMAN)
    </cfquery>

    acsdirect Guest

  2. Similar Questions and Discussions

    1. Bulk eMailing
      How could it be possible to automatically delete subscriber?s email address and its associated record from an Access database after two successive...
    2. send out bulk e-mails
      I have a couple of databases. In both of these databases I have an e-mail field. I would like to send out an e-mail to every address in those...
    3. newbie: bulk mail with php
      Hello All, I want to send email to a list of about a thousand people from a mysql database. Putting the mail() function in a loop takes forever....
    4. bulk loading
      Pete McCutchen wrote: I used to do it. Don't remember the brand of the loader, but it was the one with a light trap rather than felt lips...
    5. too many rows by bulk fetch
      Hi guys, i have a problem, i want to fetch many rows per bulk fetch. so i took the manual from IBM and coded as it is described. But when...
  3. #2

    Default Re: SQL Bulk Loader

    Your statement isn't actually valid SQL, as it appears to be the control
    parameter, of contents of a CONTROL file, that you would reference when
    executing the SQL*Loader (sqlldr).

    I've never tried this, but you might experiment with putting this into a
    PL/SQL stored procedure using dynamic SQL (NDS).

    From Oracle documentation:

    <i>When you invoke SQL*Loader, you can specify certain parameters to establish
    session characteristics. Parameters can be entered in any order, optionally
    separated by commas. You specify values for parameters, or in some cases, you
    can accept the default without entering a value.

    For example:

    SQLLDR CONTROL=foo.ctl, LOG=bar.log, BAD=baz.bad, DATA=etc.dat
    USERID=scott/tiger, ERRORS=999, LOAD=2000, DISCARD=toss.dis,
    DISCARDMAX=5

    The command to invoke SQL*Loader is operating system-dependent. </i>

    Phil

    paross1 Guest

  4. #3

    Default Re: SQL Bulk Loader

    thanks alot phil
    acsdirect Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139