How to Eliminate Special Character in SQL LOADER Script

How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
example.CSV lile like this
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV file

On Unix/Linux that's very easy, on Windows... I don't know...
$ cat myfile.csv
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
$ tr -d "\057\074\076" <myfile.csv >outfile.csv
$ cat outfile.csv
ABC , 7747
DEF , 7763
NEW , 7779
OLD, 7795
$

Similar Messages

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • How to search special character in searchable PDF Document???

    Hi All,
    Could some one help me out, how to search special character in PDF document? I have attached the screen shot for your reference.
    -Rgds,
    Gnanasekaran

    OK, I found it myself:
    1. Tools - Pages - Edit Page Design - Header & Footer - Add Header & Footer.
    2. Select the font and size, etc, place the cursor on the appropriate site to insert the page number, click the "Insert Page Number" button, and click OK.
    That is!

  • How to export&import data using sql *loader

    Hi all,
    How to export&import data from sql*loader. Give me the clear steps..
    Thanks in Advance

    Hi did you already exported data from SQL SERVER? if not using SQL*LOADER you cannot export data. SQL*LOADER is only mean for importing data from flat files(usually text files) into ORACLE tables.
    for importing data into oracle tables using sql*loader use below steps
    1) create a sql*loader control file.
    it looks like as follows
    LOAD DATA
    INFILE 'sample.dat'
    BADFILE 'sample.bad'
    DISCARDFILE 'sample.dsc'
    APPEND
    INTO TABLE emp
    TRAILING NULLCOLS
    or for sample script of control file search google.
    2) at command prompt issue following
    $ sqlldr test/test
    enter control file=<give control file name which you create earlier>
    debug any errors (if occured)

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • How find the Special Character Table?

    Hi friends.
    i need table for special characters. how find the special character table.
    example : &,@<#<$ -- all are special characters.
    any body please reply immdly.
    regards
    pauldharma

    Hi Raj,
    Check this forum thread:
    Print Currency as symbols in SAPSCRIPT/Smartforms
    Hope this helps.
    Regards,
    Vivek Myadam

  • ORA-00936 error from SQL expression in SQL*Loader script

    I am getting the above error on the following line in my SQL*Loader script:
    DIA_CLM_RES_OID DECIMAL EXTERNAL
    "SELECT N_ORG_ENTY_ID FROM TESTG4.ORG_ENTITY
    WHERE N_USER_ID =
    (SELECT UNIQUE WSR_NT_ID FROM CONV_CLM_RESOURCE
    WHERE CLM_RES_OID = :DIA_CLM_RES_OID)",
    What I am basically trying to do is a 2-table lookup of a value:
    1. Find a row in table CONV_CLM_RESOURCE where the value in column CLM_RES_OID matches the value in the input file in field DIA_CLM_RES_OID.
    2. Take the value of field WSR_NT_ID from that row and use it to find a row in table TESTG4.ORG_ENTITY.
    3. Take the value of field WSR_NT_ID from that row and set it in the target table in field DIA_CLM_RES_OID.
    In other words, I am essentially trying to translate the input value by using two other tables to lookup the value to translate to. However, no matter how I arrange it, I keep getting the "ORA-00936: missing expression" error on this statement.
    Can anyone see what I am doing wrong, or perhaps suggest a better way of accomplishing a two-table translation of a value?
    Thanks!

    Still not sure why this doesn't work, but I was able to create and use a function to do this instead, which is probably a better approach anyway.

  • Sql loader script

    hi all i require a sql loader script
    i have some files that i will have to load to oracle database 11g... i dont know the number of files that will fall on the directory daily
    how do i do this. ?
    my requirement is in_file parameter in the control file should be dynamically populated with the file names and all the files should be processed ... the structure and columns in all the files are same.
    plz let me know if you have code for this.
    regards
    raj

    Raj,
    Here is you can use to generate sqlldr control and you can include this in simple sql script or call it from unix script or batch script. Run this sql from IDE or sqlplus and pass "table name " generate sqlldr control file
    spool &table_name..ctl
    SELECT      'LOAD DATA'
             || CHR (10)
             || 'INFILE '''
             || LOWER (table_name)
             || '.dat'''
             || CHR (10)
             || 'INTO TABLE '
             || table_name
             || CHR (10)
             || 'FIELDS TERMINATED BY '','''
             || CHR (10)
             || 'TRAILING NULLCOLS'
             || CHR (10)
             || '('
      FROM   user_tables
    WHERE   table_name = UPPER ('&table_name');
      SELECT   DECODE (ROWNUM, 1, '   ', ' , ') || RPAD (column_name, 33, ' ')
               || DECODE (
                     data_type,
                     'VARCHAR2',
                     'CHAR NULLIF (' || column_name || '=BLANKS)',
                     'FLOAT',
                     'DECIMAL EXTERNAL NULLIF(' || column_name || '=BLANKS)',
                     'NUMBER',
                     DECODE (
                        data_precision,
                        0,
                        'INTEGER EXTERNAL NULLIF (' || column_name || '=BLANKS)',
                        DECODE (
                           data_scale,
                           0,
                           'INTEGER EXTERNAL NULLIF (' || column_name || '=BLANKS)',
                           'DECIMAL EXTERNAL NULLIF (' || column_name || '=BLANKS)'
                     'DATE',
                     'DATE "&dformat" NULLIF (' || column_name || '=BLANKS)',
                     NULL
        FROM   user_tab_columns
       WHERE   table_name = UPPER ('&table_name')
    ORDER BY   column_id;
    SELECT   ')' FROM DUAL;
    spool offhttp://www.oracleutilities.com/OSUtil/sqlldr.html
    Regards

  • To schedule the SQL loader Script

    How to schedule the SQL loader Script everyday at 6.30PM in windows Server 2003?
    Could you please help me for this query?

    create a text file with your sql loader commands.
    from batch file you can run sqlplus and call this text file.
    add the schedule to your windows server

  • Run SQL Loader script from Unix env

    Hi,
    We are using HP-UNIX server. The control file of SQL Loader is placed in oracle home\bin folder in the unix server. I created Executable for this SQL Loader control file in concurrent program and attached into a request group.
    Then I ran it from a responsibility, I am getting the below error.
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    SQL*Loader-350: Syntax error at line 16.
    Expecting "," or ")", found "TIMESTAMP".
    GL_DATE TIMESTAMP 'yyyy MM dd hh:MI:SS:AM',
    ^
    SQL*Loader: Release 8.0.6.3.0 - Production on Sun Sep 5 15:28:45 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    SQL*Loader-350: Syntax error at line 16.
    Expecting "," or ")", found "TIMESTAMP".
    GL_DATE TIMESTAMP 'yyyy MM dd hh:MI:SS:AM',
    ^
    My Actual Control file is,
    LOAD DATA
    INFILE '/usr/........xyz.txt'
    BADFILE '/usr/........xyz.bad'
    DISCARDFILE '/usr/........xyz.dsc
    APPEND
    INTO TABLE gl_interface_stg
    FIELDS TERMINATED BY "|" TRAILING NULLCOLS
    GL_DATE TIMESTAMP 'yyyy MM dd hh:MI:SS:AM',
    CATEGORY_NAME,
    JOURNAL_DESCRIPTION,
    JOURNAL_NAME,
    BATCH_NAME,
    BATCH_DESCRIPTION,
    ACCOUNT_CODE,
    PROCESSING_STATUS CONSTANT 'N'
    If I run the above control file from my local machine (windows) using SQLLDR username/pwd @servername control='c:/abc.ctl' from the command prompt, then all the records from xyz.txt file pushed into staging table.
    Where as, If I schedule the above control file and trying to run from a GL responsibility, I am getting the above error message.
    Do I need to modify the control file scripts in order to run from UNIX environment?
    Pls advice how to do it from UNIX environment.
    Thanks in advance.

    Hi,
    SQL*Loader-350: Syntax error at line 16.Please see if these docs help.
    SQL*LOADER-350 SYNTAX ERROR [ID 1019271.102]
    LDR-00350 TOKEN LONGER THAN MAX ALLOWABLE LENGTH ERROR WHEN LOADING ASCII FILE [ID 1020091.6]
    Do I need to modify the control file scripts in order to run from UNIX environment?
    Pls advice how to do it from UNIX environment.See these docs.
    How to Use 9i or 10g Features in SQL*Loader for Apps? [ID 423035.1]
    11i FND:How to specify Record Terminator In Sql*Loader type of concurrent program [ID 252850.1]
    Thanks,
    Hussein

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • Using SQL Loader script in a Stored Procedure

    Can I use SQL Loader script in a stored procedure and then execute it from a front-end appl.? The reason for this seemingly convoluted solution is that the users don't want a batch load though the records volume is quite high (around 1 mil). Other loads using ODBC connection or OLE DB seem to be inferior to SQL Loader.

    I would suggest a couple of solutions:
    1. Have a cgi script that can upload the file to the server from a web ui, then have the cgi script call the sql*loader file, and it will insert into the database.
    2. You can try to use External tables. This is avaliable in 9i and onwards. You will be able to make any sql DML on the external table.
    I would normally use sql*loader, move the data to a staging table with nologging, and paralle loading. After it has been loaded into the staging table I would process it into my main tables. Have used this approach with up to 60 million records in one load.
    You can do calls to C procedures, Pro*C procedures through PLSQL, as well as java calls, or use Java stored procedures.
    My experience is that SQL*Loader is the fastest way to load data into the database.

  • How to handle special characters in SQL statements

    How do you handle special charactes in a SQL statement? Here is an example:
    update table
    set notefield = 'This is Waldo's note'
    where keyfield = 7;
    Because the database connectivity vi accepts a string datatype wire, the ' in Waldo's note is seen as the end of string and an error is generated.
    Is there a way to tell labview that the ' is part of the string and not the string delimiter?
    Waldo

    If two single quotes don't work, try backslash single quote, like \'
    The backslash is often used as an escape character, meaning to treat the next character literally.
    - tbob
    Inventor of the WORM Global

  • How to Insert special character like 'Б б В в Г Д  ж Ğ ğ € ₧ š Ž ž'

    Hi All,
    My database NLS_CHARACTERSET is ABLAUT and my sql client setting is AMERICAN_AMERICA.AL32UTF8.
    when i try to insert the special character like 'Б б В в Г Д ж Ğ ğ € ₧ š Ž ž' in oracle it shows question mark or square box
    can any one help me how to insert the above character and view the same in database while retrieving.
    Thanks in advance.
    By
    Chells

    I'm not sure.
    Perhaps UNISTR() or TO_NCHAR() will be helpful.
    select level, unistr(concat('\', TO_CHAR(Level, 'FM000X'))) from dual connect by level < 300;

  • How to eliminate special characters that appear in extracted data files

    Dear all,
    I need your help please,
    I have data files that are extracted via programs from a database db1. Those datafiles appear to have special character in the last record, so the last record in the datafile is entered in the database db2 via sql loader import and it appears in the table as a special character like a square.
    What could I do in the control file to skip the last record in the datafile that contains this special character?
    regards

    is it last row in the file or last field in each row (record)?
    *1. if last field in each row* then it looks like you are running import on unix box and it's dos file. Unix file have end-of-line LF, dos have CRLF
    a. in sql loader add the records terminator to INFILE clause http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/ldr_concepts.htm#sthref718 it's been I while since I used SQL Loader, I believe it would look like this
    INFILE '/myfile.csv' "str '\r\n'"
    b. in external table (this is not your case and you can ignore this comment) you can use RECORDS DELIMITED BY clause like this RECORDS DELIMITED BY '\r\n'
    *2. if it is very last row* in the file, then you can use WHEN clause to filter that row
    a. SQLLDR http://www.orafaq.com/wiki/SQL*Loader_FAQ#Can_one_selectively_load_only_the_records_that_one_needs.3F
    b. external table uses LOAD WHEN clause http://jiri.wordpress.com/2009/03/09/oracle-external-tables-by-examples-%E2%80%A6-part-2-reading-file-with-header-and-footer/

Maybe you are looking for

  • Audio ahead of video

    Hi, I work with low resolution video and graphics. I don't anticipate working with higher resolution at all, I am not going to buy a digital videocamera. I take pictures with my digital still camera at 640x480. My screen resolution is set for the low

  • Count the no. of rows in a column

    I want to count the no. of rows in APR_QTY column that are not equal to zero. SELECT DISTINCT SUPP_NAME, ITEM_NAME, (CASE WHEN BH_CAL_PERIOD=4 THEN TO_NUMBER(BI_QTY || '.' || BI_QTY_LS) ELSE 0 END)APR_QTY, (CASE WHEN BH_CAL_PERIOD=4 THEN BI_RATE ELSE

  • Lumia 925 - No Service, Faulty Antenna?

    I've purchased an unlocked 925 but can't get any signal from either of the SIM cards I have. One card is PAYG and the other is associated with a contract. I'm assuming there is fault with the SIM card slot or the antenna, or maybe both. I also have a

  • Abap guys working on HR module

    hi all, i got a form named- DEVP (Standard remuneration form (India)  ) this form is standard one and in this how i can get the logo of the company. this form is related to HR module for indian payroll. thanks

  • Creative MuVo TX 256 and I-trigue 3

    Hi, i recently purchased a creative i-trigue 3500 and i already own a muvo tx 256. I was lookin forward to using the M-port on the I-trigue to play music, but when i plug the USB part into the Mport and start the device, no music =( The speakers them