SQL*LOADER Conditional using conventional method

I need load only the registers that have one determined value,
using SQL*LOADER with conventional method.
thanks

Have you looked at the WHEN clause?
eg.
INTO TABLE dept
WHEN recid = 1
( recid ... etc

Similar Messages

  • Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc

    Hi,
    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?
    12.1.4 / 11g db
    Appreciate your inputs.
    Thanks,
    K

    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc. It should work.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, What is the issue you have with R12?
    an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?What was Oracle feedback? Did they say it is certified and can be used?
    Thanks,
    Hussein

  • Sql Loader by using shell script, not able to insert data

    Hi,
    I am trying to dump the data by using shell script.(in shell script i am having sqlldr command)(its a host excutable method cocurrent program)
    When i am loading the data, by placing my files(.ctl,.prog,.csv,symbolink file for .prog) in $Custom_top/bin, it is loading exactly. 17000 records inserted.
    But if i am loading the data by placing my files in $custom_top/custom_folders. unable to insert total data. only 43 records inserting.
    Please any one can help me.
    Thanks in advance.
    Rama.

    Srini, Thanks a lot for ur reply,
    Oracle Apps version R12,
    Microsoft windows XP profissional
    Version 2002 service Pack 3
    My Control file Script is:
    load data
    infile '$XADP_TOP/data/CPIU/in/XXOKS_Price_Increase.csv'
    append
    into table XXOKS_CONTRACT_PRICE_INCR_DTLS
    fields terminated BY ',' optionally enclosed by '"'
    TRAILING NULLCOLS
    (EXCLUSION_FLAG,
    LEGACY_NUMBER,
    CUSTOMER_NUMBER,
    CUSTOMER_NAME,
    REQUEST_ID,
    CONTRACT_NUMBER,
    CONTRACT_START_DATE,
    CONTRACT_END,
    REQUEST_LINE_ID,
    LINE_START_DATE,
    LINE_END_DATE,
    ITEM_NUMBER,
    ITEM_DESCRIPTION,
    UNIT_PRICE,
    QTY,
    NEW_UNIT_PRICE,
    LINE_AMOUNT,
    NEW_LINE_AMOUNT,
    PRICE_INCREASED_DATE,
    PERCENTAGE_INCREASED,
    ORIGINAL_CONTRACT_AMOUNT,
    NEW_CONTRACT_AMOUNT,
    PRICE_INCREASE_AMOUNT)
    My .prog File is: Please fidn that i created symbolink file also for my .prog.
    if [ -z $XADP_TOP ];then
    echo "XADP_TOP environment variable is not set!"
    exit 1
    fi
    cd $XADP_TOP/data/CPIU/in
    DATE=`date +%y%m%d:%H%M`
    i_program_name="$0"
    i_ora_pwd="$1"
    i_user_id="$2"
    i_user_name="$3"
    i_request_id="$4"
    i_ftp_host_name="$5"
    i_ftp_user_name="$6"
    i_ftp_user_password="$7"
    ftp_prog() {
    # FTP Function to reuse the FTP Commands
    if [ $# -ne 6 ];then
    echo "Usage : ftp_prog <Hostname> <User name> <Password> <Remote Directory> <command> <filename>"
    exit 2
    fi
    l_ftp_host_name="$1"
    l_ftp_user_name="$2"
    l_ftp_user_password="$3"
    l_ftpdir="$4"
    l_ftp_command="$5"
    l_ftp_filename="$6"
    ftp -v -n ${l_ftp_host_name} <<EOF
    user ${l_ftp_user_name} ${l_ftp_user_password}
    ascii
    cd ${l_ftpdir}
    ${l_ftp_command} ${l_ftp_filename}
    quit
    EOF
    #exit $?
    # setting the ftp directory
    #ftpdir="/`echo ${TWO_TASK:-$ORACLE_SID}|tr "[A-Z]" "[a-z]"`/CPIU"
    ##ftpdir="/FinTEST/quoting/PS/ar"
    ftpdir="$XADP_TOP/data/CPIU/in"
    # setting the in directory and out directory
    indir="$XADP_TOP/data/CPIU/in"
    outdir="$XADP_TOP/data/CPIU/out"
    ftp_prog ${i_ftp_host_name} ${i_ftp_user_name} ${i_ftp_user_password} ${ftpdir} get XXOKS_Price_Increase.csv
    echo $ftpdir
    echo "Converting the data file into unix mode"
    dos2unix XXOKS_Price_Increase.csv XXOKS_Price_Increase.csv
    chmod 777 XXOKS_Price_Increase.csv
    cd $XADP_TOP/bin
    echo "Trying to excute sqlldr and entering into the into control file"
    $ORACLE_HOME/bin/sqlldr userid=$i_ora_pwd control=XXOKS_PRICE_INCR_LOAD log=$XADP_TOP/log/XXOKS_PRICE_INCR_LOAD_${DATE}.log;
    exit_status=$?
    echo "Checking the status and giving permissions to the data file which in in dir"
    if [ $exit_status -eq 0 ]; then
    cd $XADP_TOP/data/CPIU/in
         chmod 777 XXOKS_Price_Increase.csv
    echo "try to move data file into out dir"
    # Moving the file to out directory
    mv XXOKS_Price_Increase.csv ${outdir}/XXOKS_Price_Increase.csv_${DATE}
    #echo "ready to zip file in out dir step6"
    # Zipping the file
    #gzip -f ${outdir}/XXOKS_Price_Increase.csv_${DATE}
    echo "deleting the file which is in dir"
    # Deleting the file from in directory
    /bin/rm -f ${indir}/XXOKS_Price_Increase.csv
    # Deleting from the remote directory
    ftp_prog ${i_ftp_host_name} ${i_ftp_user_name} ${i_ftp_user_password} ${ftpdir} delete XXOKS_Price_Increase.csv
    echo "sqlloader finished successfully."
    else
    echo "Error in loader"
    ##echo "Loader error in Price Increase Detials File ${i_file}"
    fi
    exit $exit_status
    And My Log file Comments are
    SQL*Loader: Release 10.1.0.5.0 - Production on Thu Dec 3 01:32:08 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: XXOKS_PRICE_INCR_LOAD.ctl
    Data File: /oesapp/applmgr/GIS11/apps/apps_st/appl/xadp/12.0.0/data/CPIU/in/XXOKS_Price_Increase.csv
    Bad File: XXOKS_Price_Increase.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table XXOKS_CONTRACT_PRICE_INCR_DTLS, loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    EXCLUSION_FLAG FIRST * , O(") CHARACTER
    LEGACY_NUMBER NEXT * , O(") CHARACTER
    CUSTOMER_NUMBER NEXT * , O(") CHARACTER
    CUSTOMER_NAME NEXT * , O(") CHARACTER
    REQUEST_ID NEXT * , O(") CHARACTER
    CONTRACT_NUMBER NEXT * , O(") CHARACTER
    CONTRACT_START_DATE NEXT * , O(") CHARACTER
    CONTRACT_END NEXT * , O(") CHARACTER
    REQUEST_LINE_ID NEXT * , O(") CHARACTER
    LINE_START_DATE NEXT * , O(") CHARACTER
    LINE_END_DATE NEXT * , O(") CHARACTER
    ITEM_NUMBER NEXT * , O(") CHARACTER
    ITEM_DESCRIPTION NEXT * , O(") CHARACTER
    UNIT_PRICE NEXT * , O(") CHARACTER
    QTY NEXT * , O(") CHARACTER
    NEW_UNIT_PRICE NEXT * , O(") CHARACTER
    LINE_AMOUNT NEXT * , O(") CHARACTER
    NEW_LINE_AMOUNT NEXT * , O(") CHARACTER
    PRICE_INCREASED_DATE NEXT * , O(") CHARACTER
    PERCENTAGE_INCREASED NEXT * , O(") CHARACTER
    ORIGINAL_CONTRACT_AMOUNT NEXT * , O(") CHARACTER
    NEW_CONTRACT_AMOUNT NEXT * , O(") CHARACTER
    PRICE_INCREASE_AMOUNT NEXT * , O(") CHARACTER
    value used for ROWS parameter changed from 64 to 43
    Table XXOKS_CONTRACT_PRICE_INCR_DTLS:
    43 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255162 bytes(43 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 43
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Thu Dec 03 01:32:08 2009
    Run ended on Thu Dec 03 01:32:08 2009
    Elapsed time was: 00:00:00.19
    CPU time was: 00:00:00.04
    Plz srini help me.
    Thanks in advance
    Rama..

  • SQL Loader - Conditional Data Loading

    Hello Friends,
    I am trying to use SQL Loader to load the following records in to the Emp table (columns being - empno, ename, job, mgr, hiredate, sal, comm, deptno ).
    7876,ADAMS,CLERK,7788,"23-MAY-87",1100,,20
    7900,JAMES,CLERK,7698,"03-DEC-81",950,,30
    7902,FORD,ANALYST,7566,"03-DEC-81",3000,,20
    7934,MILLER,CLERK,7782,"23-JAN-82",1300,,10
    I want to put a condition that the data should be loaded only when the 5th field in the record (i.e, the Hiredate field) should be greater than "01-JAN-82". So with this condition, the only records to be loaded are the 1st, and the 4th one... the other two records have the hiredates being less than "01-JAN-82".
    load data
    infile 'c:\mydata.csv'
    into table emp1
    when .....
    fields terminated by "," optionally enclosed by '"'          
    ( empno, ename, job, mgr, hiredate, sal, comm, deptno )
    I am unable to put the when condition in the control file above and would be grateful if you kindly can give me some pointer as to how to achieve this.
    Thanks and Regards.
    Edited by: user645883 on Dec 29, 2008 12:45 AM

    Hello Friends,
    Thanks for your replies.
    The examples only show the when clauses where we can only use "=" or "<>" in the clause. I am trying to see if we can use ">=" or "<=" in the when clause to load the conditional data. Also trying to find out if date fields can be compared in the when clause. I am unable to do so till now and it throws syntax errors everytime
    I am able to test the when with string literals and with "=" and "<>" conditions though.
    Please help.
    Thanks & Regards.

  • SQL Loader Error using regexp_replace

    Hi Guys,
    i am trying to using sql loader to load data and one column in control file is
    x1 POSITION(718:725) DATE "YYYYMMDD" NULLIF FI_CLM_RCPT_DT = BLANKS,
    XYZ POSITION(736:745) CHAR "regexp_replace(substr(:XYZ,1,9),\'[^1|Y|N|U|W]\',\' \')||regexp_replace(substr(:XYZ,10,1),\'[^Z]\', \' \'))")
    But at last part i am getting error
    SQL*Loader-951: Error calling once/load initialization
    ORA-02373: Error parsing insert statement for table TDESAI_DBA.HAJI_CLM_A.
    ORA-00933: SQL command not properly ended
    I know the error is with XYZ Column but where. Or am i doing something wrong?
    Can you guys help me

    Please see the discussion on the Semantic Technologies OTN form at SQL*Loader error 350 using SDO_RDF_TRIPLE_S constructor

  • SQL*Loader-524 using sqlldr

    I am getting the following error while running sqlldr80 on 8.0.6.3.1 version.
    SQL*Loader-524: partial record found at end of datafile
    I followed metalink note 1058890.6 that tells about the bug 735710.
    The problem gets resolved when I give a line feed end of datafile.
    My problem is the whole system has to be automated where I cannot manually provide a new line in datafile that is automatically placed in a directory from where sqlldr reads it.
    Please advice.

    You can simply process the file by sed on Unix (on Windows you can implement cygwin to add Unix functionality) or by Perl (works on both Windows and Unix) to add that extra linefeed automatically.
    Which obviously is a workaround. You would better upgrade from Oracle 8.0.6, which was desupported many, many years ago.
    Sybrand Bakker
    Senior Oracle DBA

  • Trouble with a If conditional using string methods.

    Hello Everyone,
    I am having trouble with an If statement. I want to compare a string variable to two values using the or operator. I have found the || may not be applied to string.equals. Would neone happen to have a different method? Code below:
    check = ("C".equals(option)) || ("F".Equals(option));

    jverd wrote:
    Please paste in the exact, complete error message.
    One thing that's definitely wrong is the capital E in your second Equals. I don't know if that's causing the problem though.Also note that, once you get it to compile, if you don't remove the semicolon after the if statement, you won't get the behavior you want.

  • SQL*Loader and using nulls, truncate and sysdate.

    Good afternoon,
    I have a control file some of which is below which I need to use to load a CSV file. What I want to know is; how do I truncate fields which are too long and if there is no date specified how do I insert the sysdate as default. For any other fields missing data I want to insert a NULL value, I think that I have the NULL bit sorted.
    LOAD DATA
    INFILE new_employee.csv
    INTO TABLE temp_emp
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    EMP_NO
    LAST_NAME
    FIRST_NAME
    TITLE
    ADD1
    PCODE
    HOME_TEL
    DATE
    )The table I am inserting too is described below
    Name                                      Null?    Type
    EMP_NO                                             NUMBER
    LAST_NAME                                          VARCHAR2(20)
    FIRST_NAME                                         VARCHAR2(20)
    TITLE                                         VARCHAR2(15)
    ADD1                                             VARCHAR2(35)
    PCODE                                              VARCHAR2(10)
    HOME_TEL                                           VARCHAR2(20)
    DATE_STARTED                                       DATECan anyone show me where I put truncate etc in my file and does TRAILING NULL COLS actually insert null when no data is present?
    Cheers

    Hi,
    Thanks for the info.
    I have the SEQUENCE SORTED and I believe that TRAILLING NULLCOLLS works fine too but I cannot seem to seem to find away to insert SYSDATE when no date exists in the flat file. Also, I cannot work out how to trim down the information if its too long for the column I want to insert too.
    My CTL file again is like this
    LOAD DATA
    INFILE new_employees.csv
    INTO TABLE temp_emp
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    EMP_NO       SEQUENCE(MAX, 1),
    LAST_NAME,
    FIRST_NAME,
    TITLE,               
    ADD1,
    PCODE,               -- some pcodes are too long how can I trim them here?
    HOME_TEL,
    DATE_STARTED   -- What can I put here to say if NULL then use SYSDATE
    )I did read the info and learned sequence easy enough but I couldn't find an answer to these last to questions.
    Cheers
    M

  • Executing SQL Loader ----- Using Java & C!!!!!!!!!!!!!

    Hello,
    We r confirmed that to execute SQL Loader,
    One need to write an External Routine.
    So First Step itself need to create a
    'C' file which executes our sql Loader or
    Using Java.
    How Can I execute the SQL Loader (.exe)
    using Java?
    How can I proceed? Waiting ASAP. Thankyou
    Abhay
    null

    I have a nice piece of Java code that allows you to execute OS commands from within a PL/SQL block in Oracle. If you need the code send me an email. I know it works in Unix and it should work on most platforms.

  • SQL*Loader output issue

    Hi,
    When I load a flat file with SQL*Loader (V 8.1.7 on Windows), I get output something like,
    Commit point reached - logical record count 2352
    Commit point reached - logical record count 2364
    Commit point reached - logical record count 2376
    Commit point reached - logical record count 2388
    Commit point reached - logical record count 2400
    If I want to change this, say I want this message for each 1000 records inserted, how can I do that?
    I have tried options line bindsize or rows, but looks like they are for changing internal operation, but not this screen output.
    Off course, I am talking about conventional path load.
    Any ideas?
    Thanks

    set rows=1000 and increase the bindsize drastically.
    From the docs here
    If that size fits within the bind array maximum, the load continues--SQL*Loader does not try to expand the number of rows to reach the maximum bind array size. If the number of rows and the maximum bind array size are both specified, SQL*Loader always uses the smaller value for the bind array.

  • Sql * loader/Utl_file

    Hi all,
    As i know that both the UTL_FILE package and SQL* Loader are used to Load the flat file data into Apps Table.
    My question is
    1) Which one is the Best Method to use.
    2) Advantages and disadvantages by using UTL_FILE and SQL* LOADER ;
    Thanks In Advance
    Goutham Konduru

    Triple posting
    Diffrence b/w UTL_FILE package & SQL Loader
    UTL_FILE package and SQL* Loader

  • SQL Loader and foreign characters in the data file problem

    Hello,
    I have run into an issue which I can't find an answer for. When I run SQL Loader, one of my control files is used to get file content (LOBFILE) and one of the fields in the data file has a path to that file. The control file looks like:
    LOAD DATA
    INFILE 'PLACE_HOLDER.dat'
    INTO TABLE iceberg.rpt_document_core APPEND
    FIELDS TERMINATED BY ','
    doc_core_id "iceberg.seq_rpt_document_core.nextval",
    -- created_date POSITION(1) date "yyyy-mm-dd:hh24:mi:ss",
    created_date date "yyyy-mm-dd:hh24:mi:ss",
    document_size,
    hash,
    body_format,
    is_generic_doc,
    is_legacy_doc,
    external_filename FILLER char(275) ENCLOSED by '"',
    body LOBFILE(external_filename) terminated by EOF
    A sample data file looks like:
    0,2012-10-22:10:09:35,21,BB51344DD2127002118E286A197ECD4A,text,N,N,"E:\tmp\misc_files\index_testers\foreign\شیمیایی.txt"
    0,2012-10-22:10:09:35,17,CF85BE76B1E20704180534E19D363CF8,text,N,N,"E:\tmp\misc_files\index_testers\foreign\ลอบวางระเบิด.txt"
    0,2012-10-22:10:09:35,23552,47DB382558D69F170227AA18179FD0F0,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\leesburgis_á_ñ_é_í_ó_ú_¿_¡_ü_99.doc"
    0,2012-10-22:10:09:35,17,83FCA0377445B60CE422DE8994900A79,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\làm thế nào bạn làm ngày hôm nay"
    The problem is that whan I run this, SQL Loader throws an error that it can't find the file. It appears that it can't interpret the foreign characters in a way that allows it to find that path. I have tried adding a CHARACTERSET (using AL32UTF8 or UTF8) value in the control file but that only has some success with Western languages, not the ones listed above. Also, there is no set of defined languages that could be found in the data file. It essentaially could be any language.
    Does anyone know if there is a way to somehow get SQL Loader to "understand" the file system paths when a folder and/or file name could be in some other langauge?
    Thanks for any thoughts - Peter

    Thanks for the reply Harry. If I try to open the file in various text editors like Wordpad, Notepad, GVIM, andTextpad, they all display the foreign characters differently. Only Notepad comes close to displaying the characters properly. I have a C# app that will read the file and display the contents and it renders it fine. If you look at the directory of files in Windows Explorer, they all are displayed properly. So it seems things like .Net and Windows have some mechanism to understand the characters in order to render them properly. Other applications, again like Wordpad, do not know how to render them properly. It would seem that whatever SQL Loader is using to "read" the data files also is not rendering the characters properly which prevents it from finding the directory path to the file. If I add "CHARACTERSET AL32UTF8" in the control file, all is fine when dealing with Western langauges (ex, German, Spanish) but not for the Eastern languages (ex. Thai, Chinese). So .... telling SQL Loader to use a characterset seems to work, but not in all cases. The AL32UTF8 is the characterset that the Oracle database was created with. I have not had any luck if I try to set the CHARACTERSET to whatever the Thai character set is, for example. There problem there though is that even if that did work, I can't target specific lagauages because the data could come from anywhere. It's like I need some sort of global "super set" characterset to use. It seems like the CHARACTERSET is the right track to follow but I am not sure, and even if it is, is there a way to handle all languages.
    Thanks - Peter

  • Oracle sql loader error

    options (bindsize=400000)
    load data
    infile '1377.bmp' "fix 17"
    append
    concatenate 50000
    into table PER_IMAGES
    (image_id constant 2004,
    image raw(811254),
    parent_id constant 1377,
    table_name constant "PER_PEOPLE_F")
    The above is my control file
    The file I am trying to load is a bmp file of size 811254 bytes
    unfortunately the size is larger than 64 K hence I have to concatenate it
    It cannot be broken into equal pieces
    hence I decided to break it into size 50000 bytes each and tried to load 17 pieces and concatenate it as suggested by
    metalink
    However it does not work
    The error message I get is as follows
    SQL*Loader-501: Unable to read file (1377.bmp)
    SQL*Loader-566: partial record found at end of datafile
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    Any clues ?

    Hi,
    Please see if there documents help.
    Note: 1058890.6 - SQL*LOADER-524 USING SQL*LOADER
    Note: 105582.1 - SQL*Loader-524 When Loading Images
    Regards,
    Hussein

  • SQL Loader Excel Sheet Work book Issue!

    Hi Everyone:
    How can my Excel Sheet convert into CSV or whatever format where I can able to load data into oracle.
    Rigth now I do copy and paste from excel sheet into notepad.
    Please reply me at your earliest convenience.
    Regards,
    Zeeshan

    If you have seperate sheets in your workbook then you're going to have to save each one out as a seperate CSV file and load each one into Oracle either using SQL*Loader or using External Tables (this latter will require that the files are located on the database server).
    Or...
    You could set up an ODBC connection to your Excel workbook and, provided your data is is a suitably table type style and your database is running on a windows server, you will be able to set up an external database connection to the Excel workbook and query each sheet as a table e.g.:
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP

  • Execute SQL*Loader mapping

    Hi all,
    I'm trying to execute a deployed OWB SQL*Loader mapping, using the oem_exec_template.sql script. I've got the following error:
    Stage 1: Decoding Parameters
    | location_name=ORA_LOC_DWH
    | task_type=SQLLoader
    | task_name=MAP_SA_AGGK_FEVO
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 268
    I can execute the mapping out of the OWB client and I'm also have no problems to execute a PLSQL mapping via that script.
    Did anybody use this script for a SQL*Loader mapping before?
    Regards Uwe

    Hi Jean-Perre,
    the names of the location and the mapping should be OK. Only the mapping STEP_TYPE seems to be different (UPPERCASE) to the one which is used inside of your script.
    OMB+> OMBRETRIEVE ORACLE_MODULE 'ORA_DWH_SA' GET REF LOCATION
    ORA_LOC_DWH
    OMB+> OMBCC 'ORA_DWH_SA'
    Context changed.
    OMB+> OMBLIST MAPPINGS
    MAP_SA_AGGK_FEVO MAP_SA_AGGK_KK_KONTO MAP_SA_AGGK_KK_KUNDE MAP_SA_BCV_YT
    OMB+> OMBRETRIEVE MAPPING 'MAP_SA_AGGK_FEVO' GET PROPERTIES (STEP_TYPE)
    SQLLOADER
    The mapping is deployed, otherwise i couldn't execute the mapping out of the OWB client.
    Regards Uwe

Maybe you are looking for

  • I am having a printing problem with reader xi when i try to print a pdf file?

    i am having a problem printing on either of my printers with pdf e-mail attachments. the printer hangs up until i go to device manager to stop it and then it ptints. sometimes i get an error message "an internal error occured". i have reinstalled the

  • What's wrong with this?HELP

    What's wrong with this piece of code: clickhereButton.addActionListener(this);      ^ That's my button's name. Everytime I try to complie the .java file with this code in it it says: Identifier expected: clickhereButton.addActionListener(this); ^ Ple

  • OS Downgrading issues Windows 8 to 7

    I down graded my Toshiba Satellite l855d-s5117, because there was some software that I use that wasn't compatible with 8. I had a couple of issues when I switch over to 7 though. 1. I can't find the driver for the Universal Serial Bus Controller. Fro

  • ITunes stopped playing songs in sequence or in shuffle mode. Help!

    I'm sure I've done something quite simple and stupid. Can anyone tell me how to restore? Thanks.

  • Rows To Columns Or Pivot Table with SQL Model over two tables

    hi @all oracle 10.2.0.4 i have following situation table_1 t1_id   t1_name 1      reggie table_2 t2_id   t2_t1_id   t2_start_date   t2_end_date 1      1      01.01.2008      31.03.2008 2      1      01.06.2008      31.07.2008 cardinality from table_1