Can I set skip=1 in control file?

Below is my control file, how can I modify it to skip the first row in my datafile? (the first row is the column header row), I have read some related posts, couldn't find the fix, please help
LOAD DATA
INFILE 'class.data'
BADFILE 'class.bad'
DISCARDFILE 'class.dsc'
APPEND
INTO TABLE class
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(ID,NAME,MAX_ATTENDEES,TYPE,DESCRIPTION,IS_ACTIVE
)

Loading data with newline characters is always a little bit tricky, assuming, your data is always in the format like shown three records, you could do something like this:
SQL> create table CLASS
  2  (
  3    ID            NUMBER,
  4    NAME          VARCHAR2(30),
  5    MAX_ATTENDEES NUMBER,
  6    TYPE          VARCHAR2(30),
  7    DESCRIPTION      VARCHAR2(4000),
  8    IS_ACTIVE        VARCHAR2(1)
  9  );
Table created.
SQL> !cat class.ctl
options (skip=1)
LOAD DATA
INFILE 'class.dat' "str X'220A'"
BADFILE 'class.bad'
DISCARDFILE 'class.dsc'
TRUNCATE
INTO TABLE class
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
ID TERMINATED BY ',' ENCLOSED BY '"',
NAME TERMINATED BY ',' ENCLOSED BY '"',
MAX_ATTENDEES TERMINATED BY ',' ENCLOSED BY '"',
TYPE TERMINATED BY ',' ENCLOSED BY '"',
DESCRIPTION CHAR(4000) TERMINATED BY ',' ENCLOSED BY '"',
IS_ACTIVE POSITION(*+1)
SQL> !cat class.dat
"ID","NAME","MAX_ATTENDEES","TYPE","DESCRIPTION","IS_ACTIVE"
"1","AquaRUNNING","26","cardio","A great cardio-vascular work-out using water based training. Great for recovery and injury rehabilitation. Work at your own level","y"
"2","B.A.T","28","aerobic","Butts Abs & Thighs A shorter high intensity aerobic component is followed by an intense toning & strengthening work-out
concentrating on buttocks, abdominals
& thighs","y"
"3","BodyCOMBAT","35","strength","An energetic group exercise class involving moves & stances developed from a range of self-defence disciplines such as
Karate, Boxing & Tai Chi, which
stimulates the mind & body to work better. It is fast becoming the number one martial arts work-out in the world. TECHNIQUE - We advise beginners to
attend the technique session.
This session highlights correct form & technique before you venture into a BodyCOMBAT class","n"
SQL> !sqlldr userid=scott/tiger control=class.ctl
SQL*Loader: Release 9.2.0.8.0 - Production on Sun Oct 14 20:41:57 2007
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Commit point reached - logical record count 3
SQL> col name for a11
SQL> col type for a10
SQL> col description for a40 wrap
SQL> select * from class;
        ID NAME        MAX_ATTENDEES TYPE       DESCRIPTION                              I
         1 AquaRUNNING            26 cardio     A great cardio-vascular work-out using w y
                                                ater based training. Great for recovery
                                                and injury rehabilitation. Work at your
                                                own level
         2 B.A.T                  28 aerobic    Butts Abs & Thighs A shorter high intens y
                                                ity aerobic component is followed by an
                                                intense toning & strengthening work-out
                                                concentrating on buttocks, abdominals
                                                & thighs
         3 BodyCOMBAT             35 strength   An energetic group exercise class involv n
                                                ing moves & stances developed from a ran
                                                ge of self-defence disciplines such as
                                                Karate, Boxing & Tai Chi, which
                                                stimulates the mind & body to work bette
                                                r. It is fast becoming the number one ma
                                                rtial arts work-out in the world. TECHNI
                                                QUE - We advise beginners to
                                                attend the technique session.
                                                This session highlights correct form & t
                                                echnique before you venture into a BodyC
                                                OMBAT classBest regards
Maxim

Similar Messages

  • Can we change the Paths of Control Files.

    Can we change the Control File Paths.
    I want to move my control file from drive C:\ to Drive D:\
    How much is Risk Envolve?
    Is this better to recreate the Control File rather than to transfer from C:\ to D:\
    Which is the better option?

    Only Change this parameter ( CONTROL_FILES ) in the parameter file or in the spfile and shutdown/startup the instance.
    CONTROL_FILES
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch127.htm#REFRN10021
    Joel Pérez

  • How Can I set QT to open ALL files in Full Screen Automatically?

    Am I missing something obvious here, or is this a major option missing in preferences of QT? I know that you can set this option for EACH movie in the Presentation tab in the movie's Properties, but I have 1000's of clips on my computer. I just want EVERY movie to automatically open up in full screen mode. This seems like it should be an obvious universal option for QT rather than handled individually for each file (with the option to over ride it per file if you wish for some reason).
    Plus setting the option per file is not even practical, because in order to save that option in a file that is not .mov file QT wants to convert it to .mov and save copy of the file...

    I am still pretty sure, say 95%, (do not recall perfectly - to many things on my mind... hihi) that the settings in Quicktime in the Preferences DID work before.
    QT Player "Preference" settings only control how the content is displayed in the "Full Screen" mode -- not how it is activated. Pop-up options include:
    1) Half Size,
    2) Actual Size,
    3) Double Size,
    4) Fit to Screen,
    5) Fill Screen,
    6) Panoramic, or
    7) Current Size
    The options are available individually for "widescreen", "standard", or "other" aspect movie formats. The only other method of I can think of using the QT Player to automatically open in the the "Full Screen" presentation mode would be using a QTL file linked to your original source file but it setting the "Full Screen" option is "boring" for you, then creating QTL files would be even more so.

  • Can't set parameters for embedded audio files using css

    I'm embedding numerous audio files in Dreamweaver CS3 using
    the <embed> tag. I'm using CSS to control the box size and
    other attributes relating to how the file displays on the page, but
    I'd also like to set the parameter "autoplay" to false, and
    controller to "true," for all of the audio files. I've been doing
    this individually for each file (very time consuming), because I
    can't figure out a way to do it with CSS. Is there a way to set
    those parameters in CSS and apply it to all files?

    .oO(teachAA)
    >I'm embedding numerous audio files in Dreamweaver CS3
    using the <embed> tag.
    >I'm using CSS to control the box size and other
    attributes relating to how the
    >file displays on the page, but I'd also like to set the
    parameter "autoplay" to
    >false, and controller to "true," for all of the audio
    files. I've been doing
    >this individually for each file (very time consuming),
    Search & replace exists.
    >because I can't figure
    >out a way to do it with CSS. Is there a way to set those
    parameters in CSS and
    >apply it to all files?
    No. CSS is for presentation, but these parameters belong to
    the HTML and
    have to be written there.
    BTW: The 'embed' element is invalid HTML. If you care about
    valid markup
    and your site doesn't have to be compatible with really old
    browsers
    like NN 4 or IE 5.5, then you should use the valid method
    using 'object'
    elements.
    Micha

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • How can I set-up to receive a file with FTP?

    I want to receive a .pdf file from another, but the file is rejected by my email service provider for size.  What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?  I'm using OS Snow Leopard 10.6.8 with a DSL Internet connection nominally at 10 MBs download.

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • How can I set the location of the files for My Digital Editions?

    When I installed REader for PC it set up as its file location  a location which makes no sense to me and I want to move it nto My Documents.  How do I do this without REader for PC "losing" its files?

    Adding location data is not yet supported in Photos.
    And we do not know, if future updates will  support this feature. It might help, if you send back feedback to Apple with a feature request. You can use this form:  Apple - Photos - Feedback
    As a work-around, use third party apps to add location data before you import the photos to Photos.
    You could, for example, first import to iPhoto, add the locations, batch change the titles and captions, do all the things that are not yet supported in the new Photos, then export the photos from iPhoto and import them to Photos.
    Or use the free exiftool, if you like the Terminal.
    See:  http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#geotagging_exampl es
    To install exiftool: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/install.html
    Other convenient apps are Jetphoto Studio, Geotagalog, there are many more ..
    I use Jetphoto Studio, but it is not free.

  • How can we set default value within html:file

    Hai,
    To set default value to text box i use the following code. It works well.
    <html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
    <html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?

    Hi,
    guess that one option in a RowImpl would be to check if the attribute is null or if the attribute value can be found in the VO that populates the list. If first is true or seconds false (cannot be found) you return the first value of the VO, making it the current attribute value
    Frank

  • How can I set button colors from xml file data?

    I am reading an xml file to create a group of buttons. I am
    also using repeater to create the group of buttons.
    I am getting the buttons created, but am unable to set the
    fill color properly. I keep getting the error "Implicit coercion of
    a value of type String to an unrelated type Array" if I try to plug
    in r.currentItem.value, even when I used an Actionscript function
    to convert from a String to an array of 2 uints. Is there a simple
    type casting solution to this I'm just not getting?
    Any help would be greatly appreciated!
    The xml file has the following format:
    <colors>
    <color>
    <name>Canteloupe</name>
    <value>0xFFCC66</value>
    </color>
    <color>
    <name>Banana</name>
    <value>0xFFFF66</value>
    </color>
    <color>
    <name>Lemon</name>
    <value>0xFFFF00</value>
    </color>
    <color>
    <name>Honeydew</name>
    <value>0xCCFF66</value>
    </color>
    </colors>
    The code I have so far is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="colors.send()" layout="absolute">
    <mx:HTTPService id="colors"
    url="assets/colors_standard.xml" resultFormat="e4x"/>
    <mx:XMLListCollection id="xlc_colors"
    source="{colors.lastResult.color}"/>
    <mx:TabNavigator left="0" top="0" right="0"
    bottom="0">
    <mx:Canvas label="Tab 1" width="100%" height="100%">
    <mx:Accordion width="200" left="0" top="0" bottom="0">
    <mx:Canvas label="Colors" width="100%" height="100%">
    <mx:Label text="Current Color Selection" left="10"
    right="10" top="10" height="20" fontWeight="bold"/>
    <mx:Button label="Update Colors" left="10" right="10"
    top="227" height="22" id="button_colors_update"/>
    <mx:Canvas height="189" left="10" right="10" top="30"
    borderStyle="outset" backgroundColor="#e9e9e9">
    <mx:Tile id="tile_standard" direction="horizontal"
    tileWidth="25" tileHeight="25" horizontalAlign="center"
    verticalAlign="middle" borderStyle="outset" left="10" right="10"
    top="10" height="134" backgroundColor="#ffffff">
    <mx:Repeater id="r" dataProvider="{xlc_colors}">
    <mx:Button toolTip="{r.currentItem.name}" height="15"
    width="15" x="10" y="10"/>
    </mx:Repeater>
    </mx:Tile>
    <mx:Button label="Additional Colors"
    id="button_colors_online" height="22" left="10" right="10"
    bottom="10"/>
    </mx:Canvas>
    </mx:Canvas>
    </mx:Accordion>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Application>

    Thanks atta707!
    If I send an array of 2 uints via a function call that
    converts from String to Number to uint in an Actionscript function
    and try to feed that into fillColors via:
    <mx:Script>
    <![CDATA[
    public function fillcolors (_colorvalue:String):uint {
    return uint(Number(_colorvalue));
    ]]>
    </mx:Script>
    <mx:Button height="15" width="15"
    toolTip="{r.currentItem.name}" x="10" y="10"
    fillColors="[fillcolors({r.currentItem.value}),fillcolors({r.currentItem.value})]"
    I still get the "Implicit coercion of a value of type String
    to an unrelated type Array." on the line that creates the button. I
    have tried returning an Array of two uints with the Actionscript
    funtion and get the same result.
    <mx:Script>
    <![CDATA[
    public function fillcolors (_colorvalue:String):Array {
    return new Array(uint(Number(_colorvalue)),
    uint(Number(_colorvalue)));
    ]]>
    </mx:Script>
    <mx:Button toolTip="{r.currentItem.name}" height="15"
    width="15" x="10" y="10"
    fillColors="[fillcolors({r.currentItem.value})]"/>
    Am I mistaken in my conversion of r.currentItem.value to
    fillColors as arguments? Sorry about the newbie question - the
    error I get makes me think it is a type conversion issue, but I
    can't seem to get this to work/compile. If fillColors is expecting
    an Array, should the Actionscript function returning an Array at
    least get this to compile?

  • Numbers: how can i set an alias to a file in icloud?

    Hi,
    I moved a table into the iCloud so I can sync it across my devices. That works just fine.
    BUT: Since I work with this file quite frequently, I would like to place an alias on my desktop. I am absolutely clueless on how to do this....any suggestions?
    Thanks!
    Peter

    I think Jerry's suggestion is the best practice.  But if for some reason you don't like opening Numbers first and then opening the document, but always want to just click on an alias on the Desktop, then in Finder while holding down the option key you can Go > Library > Mobile Documents > com~apple~Numbers and find your document, create an alias, and drag the alias to the Desktop (ignoring the warning about removing the alias from iCloud).  Thereafter you can click the alias to open the document synced to iCloud.  It might be best to try this with a test document to make sure you really want that approach. 
    SG

  • I can't set Firefox to open PHP files with Firefox (in preferences- applications-php files) Firefox won't accept anything but "always ask" and Preview. I want to preview php files in Bbedit and that requires that Firefox can open it.

    with an open php file in Bbedit (Macintosh) it was possible to preview appearance by chosing "Preview in.." in Bbedit's "Markup" menu. This called Firefox to open and display the file. Now, doing this continually repeats a "Open with (choose)" request.

    Unfortunately this solution doesn't work for me for local files (on my computer). Still I can only choose to open in Notepad or "other". It seems that I can select Firefox, but it won't do anything when I actually select it.... I did NOT have this problem with the previous version of Firefox (before 6.0.2). The only thing that's changed, is the Firefox update from yesterday (September 28th, 2011).

  • Can I set a preference so that files don't open when downloaded?

    I'm downloading a series of video files.  I click on each link and they start downloading.  I might have several that are all downloading at once.  While they download I go on to work on something else.  However, when each file finishes downloading, the program I use to view the video opens and I have to take time to close it and go back to work.  Any suggestions?  I'm sure there is a simple solution.  Thanks.

    Safari Preferences>General: at the bottom of the pane uncheck 'Open "Safe" files after downloading'.

  • Simple question: Where can I set dreamweaver to auto put files on save?

    I know I have seen this on other peoples computers that have
    CS3 and I would like to do that at work but I cannot find where to
    set that up. It is very sweet in situations where I'm testing code
    and continually uploading to a server to do so.

    that option is found in the Remote Info of your site
    definition.
    however, most people here would strongly advise against doing
    that.
    mrbleepa wrote:
    > I know I have seen this on other peoples computers that
    have CS3 and I would
    > like to do that at work but I cannot find where to set
    that up. It is very
    > sweet in situations where I'm testing code and
    continually uploading to a
    > server to do so.
    >
    >

  • How Can i set up a folder to file similar apps in?

    I want to categorise my apps into folders
    Is there a way to do this?

    Yes.
    http://www.youtube.com/watch?v=DI7NGPyvZAs&feature=youtube_gdata_player

  • PDF Encryption using CONTROL File in EBIZ R12 & Decrypting the PDF

    Hi All,
    We are using BI Publisher BURSTING with R12 ebiz.
    We have a requirement to encrypt the file while generating to the filesystem.Then when viewing the File from OAF they went to decrypt before showing to the user.
    As per the Documentation , there are some attributes like pdf-security and encryption level .
    a) Can we set these attributes in control file while using with R12 ? Is there any documentation available for the same ?
    b) Once we encrypt the file , Can we decrypt the file also , any documentation available for the same ??
    Regards,
    Vamsee.

    I can't recommend a solution for that. Tell your management team that this is unnecessary. The file system should be secure, if it's not someone on your unix admin team is in big trouble......
    I mean based on that logic all output files should be secured. By the way OAF is secure too so this really unnecessary as well. If the files need to be secured by a particular user, encryption is still a bad idea. You should just generate a relevant report for the user. Thats how we do security in the apps my friend.

Maybe you are looking for

  • Boot camp on an external hard drive

    Is it possible to use bootcamp and run windows on an external hardrive rather than the built in one with out sacrificing speed. Im looking to get a hard drive for all my windows stuff and I was hoping to be able to run windows straight from it but I

  • User in a windows group - mapping to acs group appears not be working

    I have a user in a windows group, this windows group is mapped to an ACS group but when the user logs in it appears as default group in ACS. Any suggestion?

  • Labview Application missing SubVI's, totally stumped

    Hello. I am working on a VI that is a simple thermocouple datalogger. I have created it in Labview 2013 (latest patch) on a Windows 7 Machine. It works correctly on the development machine with Labview installed. It uses custom drivers for an Advante

  • Upgrade guide to 10.2.0.4

    Hi All, I am looking for the Oracle Upgrade Guide from the 10.2.0.3 to 10.2.0.4. I searched it all over Metalink and otn.oracle.com, but could not locate it anywhere. Could anyone please help me with the link for the same? Thanks so much!!

  • Chameleon?

    I've seen this new application or os for the Android tablet from the developers of Kickstarter (correct me if I'm wrong) that's called "Chameleon". I have to admit it looks very nice and I was wondering if Apple was/is/or already has something to com