How to preserve the "return" char in the datafile imported

Is there any way to preserve the "return" char in the datafile when using SQL*Loader to import data?What I wanted is to keep some format of the original data,the sample datafile as following(with the "|" as the fields-limit)
aaaaa|bbbbbb
cccccc|jjjjj --this is just a physical record
when the 2rd filed data being selected,it should be:
bbbbbb
cccccc
Thanks advanced for any suggestion.
Xiage

You can use "str X'7c0a'" following the INFILE in your control file to specify that a record is terminated by a pipe character (7c) followed by a newline (0a), like this:
LOAD DATA
INFILE 'input_file_name.txt' "str X'7c0a'"
REPLACE INTO TABLE table_name_to_load_into
FIELDS TERMINATED BY '|'
(column_name1,
column_name2,
column_name3)

Similar Messages

  • Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • How to retrieve the return code of the scenario execution

    Hi,
    I do see the return code in the execution tab of the scenarios..
    I need to use those values in a package.
    So how do i retrieve those value and use in a variable..?
    In which table, i find this value?
    Please respond as soona s possible. This is very critical for me.
    thanks,

    Yes, reference the Java API package oracle.odi.domain.runtime.session - this package contains classes for managing Oracle Data Integrator Sessions and related objects.
    In this package is the java class OdiSessionStepLog which has the method getReturnCode() which will do the same as the earlier substitution variable example

  • How to write a Query a table and the return result is the column name

    Hi All
    Pls advise how to write a query whereas the return result is the
    column name.
    I know there is describe <table_name>;
    Is there any other ways?
    Pls advise
    Tj
    Edited by: user600866 on Oct 14, 2008 12:13 AM

    Data Dictionary table user_tab_columns has all the column names. You can query that and get what ever you want.
    To get the column list of a table just query
    select *
      from user_tab_columns     
    where table_name = <your_table>Edited by: Karthick_Arp on Oct 14, 2008 12:18 AM

  • Restricting the return Qty to the Original Invoice qty

    Dear Friends,
    When i'm copying the data from the Invoice to the return sales Order.
    I want to restrict the quantity of the Return Sales Order to the Invoice quantity...
    Please tell me how i can restrict the Return quantity to the Original Invoice quantity.
    Thanks
    Uwanthi

    Hi
    Welcome to SDN
    When i'm copying the data from the Invoice to the return sales Order.
    I want to restrict the quantity of the Return Sales Order to the Invoice quantity...
    T code OVAH message number V4--229 change this message from warning to error
    This will take care of your issue
    Regards
    Raja

  • Processing the multibyte chars in the [b]cluster[/b] environment.

    Hi
    I have a problem while processing the multibyte chars in the cluster environment.
    I have 2 pages(JSP) where one is a handler jsp. I entered the multibyte say HINDHI language chars in one jsp, and in the 2nd jsp I used the request.getParameter() method.
    In non-clustered environment, in the 2nd jsp the chars are shown as (???????) . But in clustered environment, they were shown as "������������������������������������ ���������".
    I have written database interaction code in the 2nd page, the data inserted here is not of expected.
    Note: Database is UTF-8 supported and I tried with all databases(DB2, Oracle,MSSQl and Syabse)
    This problem is occuring in the clustered environment only with J2SE 5.0
    Please provide your thoughts..........
    Thanks in advance,
    Sri

    Hi
    I have a problem while processing the multibyte chars in the cluster environment.
    I have 2 pages(JSP) where one is a handler jsp. I entered the multibyte say HINDHI language chars in one jsp, and in the 2nd jsp I used the request.getParameter() method.
    In non-clustered environment, in the 2nd jsp the chars are shown as (???????) . But in clustered environment, they were shown as "������������������������������������ ���������".
    I have written database interaction code in the 2nd page, the data inserted here is not of expected.
    Note: Database is UTF-8 supported and I tried with all databases(DB2, Oracle,MSSQl and Syabse)
    This problem is occuring in the clustered environment only with J2SE 5.0
    Please provide your thoughts..........
    Thanks in advance,
    Sri

  • Compare the last Char to the First Char in a Sting

    Hello, this should be easy but I'm having problems so here goes.
    I get the user to input a Stirng and I want it to compare the last Char to the first Char. I have writen this but StartWith can take a Char?
    public static void main(String[] args) {
            // TODO code application logic here
            String strA = new String();
            int length = 0;
            char lastLetter;
            System.out.println("Please input your first String: ");
                   strA = EasyIn.getString();
                 length = strA.length()-1;
                   lastLetter = strA.charAt(length);
           if( strA.endsWith(lastLetter))
                System.out.println("The first letter matches the last");
           else
                       System.out.println("They Don't match");
    }I have tried lastLetter.endsWith(strA) but that dosn't work some thing to do with it not taking Char
    From reading you can go strA.startWith("R") and that would look for R but you can't put a char in that would be a single letter.
    I also tried to lastletter to a string but then charAt wouldn't work.

    fixed it I used substring as its a string object any one recomend a better way let me know
    public static void main(String[] args) {
            // TODO code application logic here
            String strA = new String();
            int length = 0;
            String lastLetter;
            System.out.println("Please input your first String: ");
                   strA = EasyIn.getString();
                 length = strA.length()-1;
                   lastLetter = strA.substring(length);
           if( strA.startsWith(lastLetter))
                System.out.println("The first letter matches the last");
           else
                       System.out.println("They Don't match");
    }

  • How to Change the return value for the parameters

    Hi, Can anyone help me with my problem?
    I have a parameter called "P1_Projects" defined in the HTMLDB page, on the report region, there are 2 buttons, one is "Go" button to submit the report on the screen, so user can preview the report, then another button "Export to PDF" can be clicked to generate the report using Oracle Report Services. The "Export to PDF" button will use the same set of parameters submitted for the "Go" button.
    So, the parameter "P1_Projects" is being used by these 2 buttons. and I have to pass a "%" wild card for "All Projects". To make the "Export to PDF" button work, I have to safe encode the return value for "%" to "%25" in order to pass the URL formula, but now my "Go" button doesn't work with "%25", it only recognize the "%" wild card.
    Is there a way to conditionally change the value depends which button is clicked?
    Any hint or help is highly appreciated!
    Hong

    try creating a plsql process which sets the P1_Projects item as required.
    in the plsql you can do:
    if :REQUEST = 'GO' then
    xxx
    else
    xxxx
    end if;
    set the condition to plsql expression:
    :REQUEST in ('GO', 'EXPORT')
    NB. the request value is usually set to the button name when a page is submitted from a button

  • How do I get Unicode chars beyond the ASCII range to display ?

    Hello all.
    I have just recently started to learn Java.
    I want to display the data in a array using Unicode characters, but when I use the unicode code from the code sheet I merely get a ?.
    I looked about the net and understand that Java doesnt support none ASCII characters (by default?) , I think its possible to import various codes but not sure about that.
    Anyways...
    My question is: How do I get the Unicode character 2254 Box Drawing Element to display (also other non standard ASCII ) ? Print("\u2254") results in a ?.
    If you are wondering why:
    I want to store a map for a game into a data array with the entities represented as normal letters and characters, this map will be generated by the program randomly but I want to see the output of the map to test if its obeying the rules I set out for the map generation.
    I figured just read the array and print out the result , but to make it more legible in debugging convert the text characters to box drawing characters.

    Both methods you mentioned just generate a question mark instead of the box drawing element I want.
    I can get all the normal, ie letters and numbers and the common characters... but beyond that and all I get is a '?' in its place.
    Initially I just wanted it to print the character in the legend.
    The code below just prints a few lines of text , the legend to decipher the level display, and calls a class to create a level ..then the last call is to call a debug class to display the level that was created.
    *   Prelim Code for the Random Dungeon Generator       *
    *   used in Dungeon Runner                             *
    *   Created : 03/07/2009                               *
    public class DungeonGenerator {
          public static void main (String[] args) {
          System.out.println(
               "Prelimary code for the Random Dungeon Generator for Dungeon Runner Game\n\n"
                                   );                    // Just a text heading reminder for me
          System.out.println(
               "Test 1 - debug screen - 03 July 2009\n\n"
          System.out.println("Legend: \u2254 = Top Left Corner \t 2 = Top Right Corner");
          System.out.println("        3 = Bot Left Corner \t 4 = Bot Right Corner");
          System.out.println("        L = Left Wall \t\t R = Right Wall");
          System.out.println("        T = Top Wall \t\t B = Bottom Wall");
          System.out.println("        D = Doorway \t\t + = Play Space");
          System.out.println("        E = Exit Entity \t S = Start Entity");
          System.out.println("        . = None Play Space");
          System.out.println("\n----------------------------------------------------\n");
         // Call the LevelGen
         /** This is just a temperary call method
              I am will use another array and a
              loop to call the LevelGen the
              number of levels I decide the
              game will have
         LevelGen levelone = new LevelGen();          // Calls the LevelGen to create a Level
         levelone.displayLevel();                    // Display the level that was generated
                                                 // for debugging only
          }     // End Main method
    }      // End DungeonGenerator class

  • About the return code of the tpcall

    if i run the client one time ,then it's right,
    but if run again and again,
    the server should return 'TPSUCESS' or 'TPFAIL'
    BUT,iSucess got by client will be 64(run the client sencond),128(third),192(fourth)
    i did not know what happend to this
    client:
    long reclen=1024;
    FBFR32* inputbuf=NULL;
    int iSuccess;
    inputbuf = (FBFR32*)tpalloc("FML32",NULL,reclen);
    int count=0;(or some other value,like 5,6..)
    for (int i=0;i<count;i++)
         iSuccess=-1;
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         iSuccess = tpcall("shlr",(char*)inputbuf,0L,(char**)&inputbuf,&reclen,0L);
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         userlog("return==%d",iSucess);
    tpfree((char*)inputbuf);
    server:
    void shlr(TPSVCINFO *rqst)
    int ret=dealfun(rqst);
    FBFR32 * sendbuf=(FBFR32*)tpalloc( "FML32", NULL, 1024);
    if (ret==1)
    tpreturn(TPSUCCESS,0,(char*)sendbuf,0L,0);
    else
    tpreturn(TPFAIL, 0,(char*)sendbuf,0L,0);     
    }

    guorke,
    I suggest you add userlog to the server to see the tpreturn situation and compare with tpcall's return code. iSucess is -1 means something wrong, other values such as 64, 128... means the tpcall's execution scucessfully and they are code related with internal handler index.
    Wayne

  • I can't get my tool bar to get the return arrow or the forward arrow so i can browse. i have to quit the browser and start all over again everytime i go to another site and want to return. not on tool bar and get it on.

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/787149]''
    second time i have had to go through this, so here goes, i can't get the return or forward buttons on the tool bar and can't return to the website i am in have to quit the web site altogether and restart the firefox after viewing any site, as i have no return arrows or forward buttons on the toolbar.

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to read the return values of the API call

    Hi Friends,
    I am trying to access an image on DocumentMall and I am passing the following URL to login to DocumentMall in my ABAP program.
    https://beta-dmapi.documentmall.com/dmapi/login.do?account=NOBLEBETA&appid=39xxxxxxn&username=admin&password=pasxxxxx
    This will inturn return the Session ID as shown below.
    errorcode=0
    sessionid=ae820d5e-a0e9-4d50-ba3e-e2b41ffd3053
    Can you tell me how to capture the session ID in ABAP.
    thanks
    Krishna

    How are you calling it?  Using HTTP_CLIENT?  If so, use the methods of the response object to get the header or body fields.

  • How to show kf and char in the adjecent column

    hi to all
    I am a newbie in the BI..and i have some problem.
    i have 52 weeks in the column and along with that i need to show amount column also.how can it possible.i dont want to see weeks under amount.
    employee |amount||week 1| week 2|...(like this up to 52 weeks) |total days|
    i took employee as the char and amountas kf.for weeks i used 0CALWEEK.
    but the problem is when i am executing the Query,weeks are comeing along with amount also.i need separate amount and weeks .
    could you people please give some clues?
    thanks alot

    Hi gaurav,
    its not the Cumilative amount.
    for exp....
    i have year/weeks and amount along with Employee details
    i need to planify that data.some data will be with input ready cells in planification.
    i need the result like this..
    employee | empname | empoffice | tarif(amount) | week1|  week2 | week3 |....week52| total days|
    how can ido this...i got some result with variable..but its a bit lenghty to creat 52 variables like weeks na.
    so i am looking for a some what good idea.
    i put employee details in Row and tarif and 0calweek in columns.i create filter for version.
    the problem i am facing is when i keep TARIF in column along with 0calweek...the feild is not ready for input.

  • Not allowing a number as the first char in the username

    Is there a particular reason why I am not allowed to create a username with a number
    as the first character? Or is this something that can be changed? If so, how
    can I go about changing it? I have edited the UsermgmtTools.properties to say:
    "disallowFirstCharDigit: false", instead of true... and rebooted the portal, but
    it did not seem to make a difference. Any help in this would be greatly appreciated.
    Thanks

    Oh, I failed to change the field type to "text" in the insert
    record dialogue box as well.

  • The "return" button under the screen of my iPhone 4 does not close the apps

    I have to push on it several ans several times before something happens.
    Is someone able to help me fix this issue please?
    Thx in advance

    Ah, you mean the Home button. If you're having a hardware issue, you should take the phone to Apple and have them look at it.

Maybe you are looking for

  • Error while posting the  Idoc 'Update error, transaction VA01'

    Hi Gurus, When an inbound Idoc for sales order is trying  to post we  are  getting the  error 'Update error, transaction VA01'. Aslo following  are the  details of  the error: Update error, transaction VA01 Message no. 00377 Diagnosis An error occurr

  • Display of DPR details in PO history.

    Dear Friends,    I wanted to display the DPR details in PO history tab. means whenever i do f-47 or f- 48 the PO history tab will be upadted with that and by click on the document will able to see the details. i found on SDN many result were come but

  • Creating a PDF inside of Word

      When I create a PDF inside of Word Doc and save it to my desktop it looks just like another Word Doc so what am I doing wrong?   It should look like a PDF Cion not a Word Doc right?

  • Batch processing in Quark 7 - how to avoid "missing font" interrruptions?

    I have a time scheduled applescript which opens a folder of quark files, does some processing using a quark extension, closes each file and moves it to a separate location. Problem is I get these "Filename uses fonts not installed in your system" dia

  • Volume 100% whenI re-open flash player...

    Hello. After installing the latest flash player for windows I get volume 100%, too loud. In  the previous builds I have selected volume 20%. f-player closed (in  FF3.6). When I have re-opened the player the volume was still 20%.  super! but now I get