SQL loader file path control...

Hi all

I run the query through sql loader client machine below...

saved query in the file loader.ctl, which I kept it in the path "D:\loader.ctl" below...

options (skip = 1)
load data
INFILE 'D:\flat.txt '.
in the GL_INTERFACE table
fields ended by ',' optionally surrounded "" "
* (STATUS, LEDGER_ID, USER_JE_SOURCE_NAME, USER_JE_CATEGORY_NAME, ACCOUNTING_DATE, CURRENCY_CODE, DATE_CREATED, CREATED_BY, *)
SEGMENT1, SEGMENT2 SEGMENT3, SEGMENT4, SEGMENT5, ACTUAL_FLAG, ENTERED_DR, ENTERED_CR, GROUP_ID)

Now my doubt is, to run the above, I need to run the command in sql loader below...

sqlldr USERID = apps/apps CONTROL = loader.ctl

In the control file, we have given the path to the data file, but * how the command (SQLLDR) identifies the path of the control file. ? *

What I have to give or...?

Is it possible to run the loader program above in the customer's computer? or we have to run only one server...

Please clarify my doubt.

Thank you and best regards,
Muthu

Hello

The preferred method is, if you use oracle apps, then a simultaneous recording of type sql * loader
the ctl yor file in $/bin. Run the program at the same time to load the data.

I'm just givng you advice, you search on google, that you will get several ways to do the same things.

There are many ways such as the use of the external table, UTL_FILE or Shell Script to do the same thing.

Thank you
Lenora

Tags: Oracle Applications

Similar Questions

  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • Write to file path control

    Hi all.

    I was wondering if it is possible to write to a file of trajectory control. Right now I use control path of file for selectable modules that is then written to a configuration file. From the beginning, I want the config read to write in the same path of file control. Instead, I have to read the configuration of a path of the file indicator file instead which is not ideal. Is it possible that I can write directly to the file control?

    Select this option.

    Right-click the control on the front panel, then select Create the local Variable. Then, drag this variable in the same place you have the led terminals. This will write the value in the control.

    You will hear many people say that you should avoid local variables (race conditions, hard to debug, etc.), but in this case, they are OK. I use all the time to initialize my UI to a config file.

    P.S. Did you put more thought into rewriting the code?

    P.S.S. you took my picture at the school 15 years ago?

  • SQL Loader: Conventional path load

    While loading data using the classic way, is it true that the records are loaded in the order, they are present in the file. If I use the sequence running then it will assign the line numbers for the records in the order that they appear in the file?
  • control file path of strength left in fact justify text on path

    I often find that the paths of files displayed in the file path controls are too long and gets truncated. Problem is that the right side of the lane becomes truncated and one may say is more this file was not selected.

    I'd rather largely aligned left the path so that the left side of the path is truncated and the name of the file is visible.

    I bet that there is no reasonable way to do it. Please prove me wrong.

    Thanks in advance,

    -root

    I just played around with the property "Text.ScrollPos". The wire just a number high enough to him and he will give you everything you want.

    Have fun

    Guenther

  • Import data... Wizard creates the file SQL Loader ctl with columns out of order

    4.1.1.19 SQL Developer version. Connected to Oracle XE to test this.

    I'm trying to understand what the problem with the data in my import file when finally, I realize that the Import Wizard of data did not care how I traced the columns at all. The ctl SQL Loader file generated by the Wizard expects that the columns of data in my file to match the order that they appear in the definition of the table and not how they have been mapped in the wizard. Manually edit the ctl file is a workaround. Has anyone else seen elsewhere?

    I see that this is a bug.

  • Name of dynamic INFILE SQL loader

    Hi all

    I use oracle 10g on windows server.

    I have a log on a remote server. each line in the log file is as below

    LogIN Mar 02/09/2014 10:10:48 ss18 N419FS40 1

    I create a table for that as below;

    Create table free_pc (log_in varchar2(10),log_day varchar2(10),log_date date,log_time date,log_user varchar2(30),log_Lab varchar2(30),log_pc varchar2(30), log_status char(1));
    

    I have two problems;

    1 N419FS40, the N419 is the name of a student in the lab, while FS40 is the name of the computer in this laboratory. I want only the first four characters to be inserted into the column of Log_lab and the rest of characters iin Log_pc column. my control file is less than

    DOWNLOAD THE DATA

    INFILE '\\remote_location\login02_09_14.txt '.

    ADD

    IN THE TABLE free_pc

    FIELDS FINISHED WITH A WHITE SPACE

    (log_in,

    log_day,

    log_date DATE "DD/MM/YYYY",

    log_time DATE "HH24 MI SS."

    LOG_USER,

    log_Lab,

    log_PC,

    log_status

    )

    How to do this?

    2. the log file is generated on the server, every day with a different name, he cancatenate the current date with Word LOGIN, for example login02_09_14.txt, login03_09_14.txt and login04_09_14 etc. in my INFILE tag, how can I put the name, so that it automatically take the name of the remote location?

    Thank you.

    Kind regards.

    1. you can use the SUBSTR function to separate the two values.  You put the fields in the control file in the same order in the data file, with all the columns that are formulated from data in other areas at the end.

    2. There are different ways to do this.  The file name can be in the control file or the SQL * Loader command line.  You can create either using SQL/SQL * Plus or operating system commands.  I tend to prefer change just the line of SQL * Loader command line, instead of the entire control file.  I prefer to do this in a SQL file instead of a file breaks Windows or * ix shell script or something, so that it is independent of the operating system.

    In addition, it is best to store all of your day, date and time in a column, then you can use to_char to display it as you want, in a column, or two or three.

    Please see the example below, in which I have shown above.

    Scott@ORCL >-data file you provided with the name changed to include today's date:

    Scott@ORCL > HOST TYPE 'c:\remote_location\login27_04_15.txt '.

    Opening on Tuesday, September 2, 2014 ss18 N419FS40 1 10:10:48

    Scott@ORCL >-control file with no infile, fields in the order of the data file, using fill for the unused columns,.

    Scott@ORCL >-with forumulated columns, using boundfiller for filling necessary for columns columns drawn up:

    Scott@ORCL > test.ctl TYPE of HOST

    DOWNLOAD THE DATA

    ADD

    IN THE TABLE free_pc

    FIELDS FINISHED WITH A WHITE SPACE

    TRAILING NULLCOLS

    (log_in,

    log_day FILLING,

    log_date BOUNDFILLER,

    log_time BOUNDFILLER,

    LOG_USER,

    log_Lab ' SUBSTR (: log_lab, 1, 4). "

    log_status,

    log_date_time ' TO_DATE (: log_date |: log_time, "MM/DD / YYYYHH24:MI:SS'"). "

    log_PC ' SUBSTR (: log_lab, 5) ')

    Scott@ORCL >-sql script which now enables to get the data and it concatenates the file name with the path of the directory

    Scott@ORCL >- and loads the data running SQL * Loader of SQL * Plus, using the HOST command:

    Scott@ORCL > test.sql TYPE of HOST

    COLUMN data_file new_value data_file

    SELECT 'c:\remote_location\login ' | TO_CHAR (SYSDATE, 'DD_MM_YY'). ".txt" AS data_file FROM DUAL

    /

    HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = '& data_file' LOG = test.log

    CLEAR COLUMN

    Scott@ORCL >-table which includes the date and time in a column, for the day of the week can be extracted:

    Scott@ORCL > create table free_pc

    2 (log_in varchar2 (10))

    3, date log_date_time

    4, log_user varchar2 (30)

    5, log_Lab varchar2 (30)

    6, log_pc varchar2 (30)

    7, log_status char (1))

    8.

    Table created.

    Scott@ORCL >-load data file sql running running SQL * Loader using the control file:

    Scott@ORCL > test.sql START

    Scott@ORCL > data_file new_value data_file COLUMN

    Scott@ORCL > SELECT 'c:\remote_location\login ' | TO_CHAR (SYSDATE, 'DD_MM_YY'). ".txt" AS data_file FROM DUAL

    2.

    DATA_FILE

    ------------------------------------

    c:\remote_location\login27_04_15.txt

    1 selected line.

    Scott@ORCL > HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = '& data_file' LOG = test.log

    SQL * Loader: release 11.2.0.1.0 - Production on my Apr 27 12:00:53 2015

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Commit the point reached - the number of logical records 1

    Scott@ORCL > CLEAR COLUMN

    Scott@ORCL >-results with Date_Time field displayed in the form of day, date and time:

    Scott@ORCL > log_in COLUMN FORMAT A6

    Scott@ORCL > log_day COLUMN FORMAT A7

    Scott@ORCL > log_user COLUMN FORMAT A8

    Scott@ORCL > log_lab COLUMN FORMAT A8

    Scott@ORCL > log_pc COLUMN FORMAT A6

    Scott@ORCL > log_status FORMAT A10 COLUMN

    Scott@ORCL > SELECT log_in,.

    2 TO_CHAR (log_date_time, ' HH24:MI:SS Dy DD-Mon-YYYY ') ' DAY DATE TIME. "

    3 log_user, log_lab, log_pc, log_status

    4 FROM free_pc

    5.

    LOG_IN DAY DATE TIME LOG_USER LOG_LAB LOG_PC LOG_STATUS

    ------ ------------------------------------------ -------- -------- ------ ----------

    LogIN Mar 02 - Sep - 2014 ss18 N419 FS40 1 10:10:48

    1 selected line.

  • SQL * Loader Control path

    Hi all


    I created a sql * simultaneous program of charger with a parameter to pass the path of the data file with file name. Now my question is how does the program know that the control file is in a specific path.

    For example, I kept the control file in the $XXX_TOP/bin and the data file in the $XXX_TOP.

    I have now in the program parameter, pass the path of the data file, but how the program takes the path of the default control file $XXX_TOP/bin.

    Thanks and greetings
    El M

    I created a sql * simultaneous program of charger with a parameter to pass the path of the data file with file name. Now my question is how does the program know that the control file is in a specific path.

    For example, I kept the control file in the $XXX_TOP/bin and the data file in the $XXX_TOP.

    I have now in the program parameter, pass the path of the data file, but how the program takes the path of the default control file $XXX_TOP/bin.

    You can provide information on the data file in the control file, or switch the full directory path and the name of your file as an argument. Concurrent Manager passes the "data = (full path of the data file)" token at query execution time. Without a data file name, the concurrent manager ignores this token and SQL * Loader uses the data file name specified in the control file.

    http://docs.Oracle.com/CD/E18727_01/doc.121/e12897/T302934T458254.htm#4163833

    The control file must be placed in the directory XX_TOP/bin $.

    http://oracleapplications99.blogspot.ca/2011/12/sqlloader-examples.html
    http://imdjkoch.WordPress.com/2010/08/12/registering-SQL-Loader-as-a-concurrent-program/
    http://erpschools.com/articles/SQL-Loader

    Thank you
    Hussein

  • SQL Loader Control file - which represent decimal numbers

    Hello

    I use the version of database Oracle 10.2.0. I will receive a data file delimited pipe I need to load into the table specified below. Can you please suggest me how to represent the last column ERROR_PERCENT in the control file, which is number (3.2) in the table? I tried DECIMAL (3,2), EXTERNAL (3,2) DECIMAL against it and I get errors wasgetting. Help, please.



    CREATE TABLE TRACK_ERRORS
    (
    ACCOUNT_ID NUMBER (7).
    DATESTAMP TIMESTAMP (6).
    SPECIFIC_RISK NUMBER (3).
    STOCK_RISK NUMBER (3).
    ERROR_PERCENT NUMBER (3.2)
    )



    OPTIONS (SKIP = 1)
    DOWNLOAD THE DATA
    INFILE 'C:\Sqlldr\Input\Track_Errors.dat '.
    BADFILE "C:\Sqlldr\Track_Errors.bad."
    DISCARDFILE 'C:\Sqlldr\Track_Errors.dis '.
    ADD
    IN THE TABLE "TRACK_ERRORS.
    fields ended by ' |' SURROUNDED OF POSSIBLY "" "
    TRAILING NULLCOLS
    (Account_Id EXTERNAL INTEGER (7)
    , datestamp 'Rtrim (to_date (:datestamp,'YYYY/MM/DD')).
    Specific_Risk INTEGER EXTERNAL (3)
    Stock_Risk INTEGER EXTERNAL (3)
    ERROR_PERCENT
    )


    Kind regards
    Naveen

    Naveen Kumar C wrote:
    I tried with decimal external. It does not work. The following is the log file

    SQL * Loader: Release 10.2.0.1.0 - Production on Thu Feb 25 10:11:42 2010

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Control file: track_errors.ctl
    Data file: C:\Sqlldr\Input\Track_Errors.dat
    Bad leadership: C:\Sqlldr\Track_Errors.bad
    Delete the file: C:\Sqlldr\Track_Errors.dis
    (Allow all releases)

    Number of loading: ALL
    Number of jump: 1
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table "TRACK_ERRORS', loaded from every logical record.
    Insert the option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ARGUMENT ACCOUNT_ID 7 | O ("") CHARACTER
    DATESTAMP NEXT * | O ("") CHARACTER
    The SQL string for the column: "Rtrim (to_date (:datestamp,'YYYY/MM/DD')).
    SPECIFIC_RISK 3 | O ("") CHARACTER
    STOCK_RISK 3 | O ("") CHARACTER
    ERROR_PERCENT NEXT * | O ("") CHARACTER

    Sheet 1: Rejected - error on the table 'TRACK_ERRORS", the ERROR_PERCENT column.
    ORA-01438: value larger than the precision specified for the column

    Sheet 2: Rejected - error on the table 'TRACK_ERRORS", the ERROR_PERCENT column.
    ORA-01438: value larger than the precision specified for the column

    Sheet 3: Rejected - error on the table 'TRACK_ERRORS", the ERROR_PERCENT column.
    ORA-01438: value larger than the precision specified for the column

    Table "TRACK_ERRORS":
    0 rows successfully loaded.
    3 rows not loaded due to data errors.
    0 rows not loading because all WHEN clauses were failed.
    0 rows not populated because all fields are null.

    The space allocated to bind table: 34432 byte (64 lines)
    Bytes of read buffer: 256000

    Ignored logical records total: 1
    Total logical records read: 3
    Total rejected logical records: 3
    Total logical records ignored: 0

    Run started the Thu Feb 25 10:11:42 2010
    Run finished the game Feb 25 10:11:55 2010

    Time was: 00:00:13.99
    Time processor was: 00:00:00.14

    It does not work because of the data and not + external comma +.
    These mistakes ORA-set out clearly that your data values are larger than the eligible accuracy.

    isotope

  • the formatting of char to number in sql loader control file

    I tried to load a huge csv Excel file into oracle with sql loader database. But a column contains numbers of year as '2014', ' 2015 ". In the control file, I have defined as:

    column_name decimal (38) external "TO_NUMBER (: column_name, ' 9999').

    It awlays say: ORA-01722 invalid number format. I changed the format of different number. All this has not worked. Please help me on this.

    1. the data of table column type is number (38.0)

    2. data csv file looks like this: color is the number of year.

    04/03/15, D_2-15, 10953562, 11116, 27144, 03/03/15,2015

    04/03/15, P_1-58, 1143088, 5262, 12994, 03/03/15,2015

    04/03/15, Q_1-31_Distinct_WWE, 7576633, 22352, 52975, 03/03/15,2015

    Thanks in advance.

    We can not help you unless you provide a sample of documents failed. The sample you provided loads without any problems:

    SQL > CREATE TABLE MY_TABLE)
    2 COLONNE_1 DATE,
    3 COLUMN_2 VARCHAR2 (255 BYTE).
    COLUMN_3 VARCHAR2 (255 BYTE) 4.
    COLUMN_4 VARCHAR2 (255 BYTE) 5.
    6 COLUMN_5 VARCHAR2 (255 BYTE).
    7 COLONNE_6 DATE,
    8 BUSINESS_YR NUMBER(*,0)
    9                      )
    10.

    Table created.

    SQL > home
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\app\xxx\product\11.2.0\dbhome_2\BIN>type c:\temp\xx.ctl
    DOWNLOAD THE DATA
    CHARACTERSET US7ASCII

    INFILE *.
    TRUNCATE
    IN THE TABLE MY_TABLE
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    COLONNE_1 DATE "MM-DD-AA.
    COLUMN_2 CHAR (255),
    COLUMN_3 CHAR (255),
    COLUMN_4 CHAR (255) NULLIF COLUMN_4 = BLANKS,
    COLUMN_5 CHAR (255) NULLIF COLUMN_5 = BLANKS,
    COLONNE_6 DATE "MM-DD-YY."
    BUSINESS_YR EXTERNAL INTEGER (38)
    )
    BEGINDATA
    03/20/15,1P-11,1111.22,,,03/22/15, 2014
    21/03/15, M_XXX-4, 5607817, 0, 0, 03-9/22/15, 2014
    22/03/15, M_DDD-2, 54990, 0, 0, 03-8/22/15, 2014
    23/03/15, R_1-46, 5297481, 24, 24, 03/22/15, 2014
    16/03/15, X_1 - 48 a, 8547274, 13474, 13474, 15/03/15, 2015
    03/17/15,1T-15-dental,2118.12,,,03/15/15, 2015
    18/03/15, 1 S - 1S, 555, 15/03/15, 2015
    19/03/15, P_NNN-7, 7455342, 10941, 10941, 03/15/15, 2015
    C:\app\xxx\product\11.2.0\dbhome_2\BIN>sqlldr control=c:\temp\xx.ctl log=c:\temp\xx.log
    Username:Scott
    Password:

    SQL * Loader: release 11.2.0.3.0 - Production on Sun Apr 5 06:28:06 2015

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Commit the point reached - the number of logical records 7
    Commit the point reached - the number of logical records 8

    C:\app\xxx\product\11.2.0\dbhome_2\BIN>exit

    SQL > column column_2 format a15
    SQL > column column_3 format a10
    SQL > column column_4 format a8
    SQL > column column_5 format a8
    SQL > select * from my_table
    2.

    COLUMN_1, COLUMN_2, COLUMN_3, COLUMN_4 COLUMN_5 COLONNE_6 BUSINESS_YR
    --------- --------------- ---------- -------- -------- --------- -----------
    MARCH 20, 15 1 P - 11 1111.22 2014 22 MARCH 15
    21 MARCH 15 M_XXX-9-4 5607817 0 0 22 MARCH 15 2014
    22 MARCH 15 M_DDD-8-2 54990 0 0 22 MARCH 15 2014
    23 MARCH 15 R_1-46 5297481 24 24 22 MARCH 15 2014
    16 March 15 X_1-48 has 8547274 13474 13474 15 March 15 2015
    March 17, 15 1 t 15-dental 2118.12 15 March 15 2015
    1 S - 1 S 18 MARCH 15 555 2015 15 MARCH 15
    MARCH 19, 15 P_NNN-7 7455342 10941 10941 15 MARCH 15 2015

    SY.

  • Add other fields to sql * source file loader without including them in the control file

    Hello

    We have a file that we receive every day to an external resource. We load the file into Oracle using Sql tables * Loader!

    My question is, if external resources added more fields at the end of the file and I USED to change the control file to load (almost there will be right there without any use!)

    Will I get an error SQL * loader?

    or else, it will be fine!

    Thank you

    /HESI

    In general, SQL * Loader will simply ignore the extra fields at the end of the line.  However, there are exceptions to all rules.  To do a correct delimiter after the last field you load.  The additional fields must dressed not in the next line, unless you have authorized to do this.  If the end of the characters of the line of the source operating system do not match at the end of the characters in the line of the target operating system, then you need to deal with this in one of the various ways.  These are a few examples.

  • Can I use function defined by the user in the control file Sql Loader?

    Hi Master,

    Can I use fuction user-defined in the sql loader control file? Please advise... !!

    If you can provide an example... It's very kind of you.

    Concerning

    AR

    Here are a few examples that should give you clues: Sql loader

    I seriously wonder if why you use the century previous SQL * Loader instead of a external table:

    ORACLE-BASE - external Tables: querying data from flat files in Oracle


  • SQL loader - control files

    Hi all

    I have a file with data. I want to insert only the exp_data < = current data in the control file. My like this.

    DOWNLOAD THE DATA

    INFILE ' D:\sample. DAT'

    TRUNCATE

    IN THE TABLE s_TABLE WHEN (1:6) < = "(to_char(sysdate,'mmddyy')).

    TRAILING NULLCOLS

    (

    eff_data position(1:6).

    name position(7:20)

    )

    During the execution of this I got error like this

    SQL * Loader-350: at line 48 syntax error.
    Illegal combination of nonalphanumeric characters
    IN THE TABLE s_TABLE WHEN (1:6) < = "(to_char (sysdate, e

    If I use with less symbol I receives the data. Is another way to achieve this scenario. If you need more data I'll provide you with.

    Thank you.

    Hello

    Some examples of data.

    011413DBTEST

    011513DBDATAFORTEST

    102313DATA

    Table as:

    Create the table s_TABLE

    (

    eff_data varchar2 (6).

    name varchar2 (20)

    )

  • Option of SQL loader control file

    Hello

    I just started using sql loader and I doubt as a requirement.

    I used to get the first data file with 10 columns excel. We got a table with 10 columns backend and were load this excel file using sql loader.

    but since last week, they changed the data file and are now sending the data in column 8. what my condition is, for the other 2 columns, I want to insert text 'COLUMN_DROPPED' in the backend table. Rest 8 columns must be filled as usual.
    How can I handle files of control for this option?

    I just want to know the option that I why I am not providing control file.

    Thank you
    Puneet

    974647 wrote:
    My requirement is for the other 2 columns, I want to insert text 'COLUMN_DROPPED' in the backend table. Rest 8 columns must be filled as usual.

    First of all, it is only possible if remaining 2 column datatype is string (char/nchar, varchar2/nvarchar2, clob/nclob) and is at least 14 characters long. The rest is easy. Just change 2 last control file fields:

    column9  constant 'COLUMN_DROPPED',
    column10 constant 'COLUMN_DROPPED'
    

    SY.

  • SQL Loader control file (.ctl) given in table

    Hello

    I have a table 'region' in my schema called dss.
    SQL > desc region
    R_REGIONKEY
    R_NAME
    R_COMMENT
    I want to LOAD the data into this table of the region in a file called "region.tbl" located at d:\tpch\region.tbl, using a CONTROL file that is also on the the same place is to say d:\tpch\region.ctl.

    Region.tbl file contains few records. Recording of a SAMPLE of region.tbl is as follows:

    * 1 | AMERICA | HS ironic use, same request. s | *

    Region.CTL file contains the following lines to load data using sql loader:

    DOWNLOAD THE DATA
    INFILE'd:\tpch\region.tbl'
    IN THE REGION OF THE TABLE
    FIELDS TERMINATED BY ' |'
    * (R_REGIONKEY, R_NAME, R_COMMENT) *.

    so I go to the command prompt, navigate to the location of the above files and run the command:
    D:\TPCH > sqlldr control = region.ctl dss/dss = userid
    and get the following error:

    SQL * Loader-128: unable to start session
    ORA-01017: name of user and password invalid. connection refused

    I have the same table under the "system" user creation, but I get a different error with this that is:

    SQL * Loader-941: error when the table REGION describe statement
    ORA-04043: object REGION does not exist

    Using Oracle 11 g on my Windows XP.

    I'll appreciate the valuable suggestion.

    Thank you very much.

    Best regards
    Kam

    You can connect with dss/dss? For example, what

    sqlplus dss/dss
    

    If no, and you are sure that the name of username/password combination is correct, have you checked things like $ORACLE_SID - i.e. it points to the right database?

Maybe you are looking for