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

Similar Messages

  • 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.

  • Deploy sql loader mapping

    Hi,
    I have a problem with OWB when I try to start a mapping (sql loader) after deploy. The problem is that when I start the execution of the mapping, the control file of the sql loader is created not in Unix (where I have defined the location of both input file and control file) but in the pc with my OWB client. For this reason the execution fail because it doesn't find the input file (that i have put in the unix machine).
    Is there a configuration for the client or for the server?
    Thanks

    I start the control center from my pc, but with the credential of the server unix (Host, port, username, password and service name).
    Is it correct or must i start the control center from the unix machine?
    Thanks for the replay.

  • How do I incorporate the 'WHEN' operator in a SQL*Loader  mapping?

    Environment:
    OWB 10g
    Repository: 9.2.0.4
    Target: 9.2.0.4
    O/S: AIX 5.2
    I have the need to incorporate the WHEN clause in a flat file mapping to eliminate some unneeded rows in the flat file.
    I can't seem to find the configuration option or property setting or whatever it takes to get that done.
    I thought it would be part of the FILTR operator but I kept getting an 'Invalid expression' error message.
    In this case I want to ignore any rows that have a 'M', 'D' or 'S' in the first column.
    Many thanks for all your help.
    Gary

    Jean-Pierre
    Thanks very much for your quick response.
    One last point and we should drop this in favor of other more urgent issues we both ahve to deal with.
    The data is coming from a comma delimited (CSV) file using a comma ',' and optional quotes (") as field separators.
    The first column of 'good' data is read as an INTEGER EXTERNAL because of course it is a number. However, the 'bad' rows I want to eliminate have character text in them where I would normally find numbers and they all start with 'D','M' or 'S'.
    I don't have an actual column in the data file or resulting table definition that represents that first character that I'm trying to test on. Hence my use of (1) to reporesent the 1st character of data on the line regardless of whether its numeric or character.
    As I stated, the syntax works fine in SQL*Loader when I typed the WHEN clause in manually.
    I guess if there was a way to define a pseudo column that could be defined using the POSITION notation and everything else using the variable length delimited notation I could test on that psuedo column. I don't want the pseudo column to appear in my resulting table so that seems to be an issue. Enough.
    Since I've worked around it using external tables for this issue I'm not going to spend any more time on it today.
    As usual, many thanks for your help.
    Have a great day! I'll be back soon with another issue :-)>
    Gary

  • Execute SQL Loader through PL/SQL Block

    I want to run Sql Loader through PL/SQL Block. So Pls. give me solutions.

    It's the same as running any other OS command from PL/SQL - you can only do it by using Java. Check out the AskTom site for a good tutorial.
    rgds, APC

  • Sample code of how to execute sql loader from visual basic

    Hi,
    Can anyone please provide me with sample code of how to
    run sql loader from inside a visual basic 6.0 application with Oracle 8.1.7.3 database or please point me to documentation/tech books containing such examples?
    Thanks very much
    John

    You have to use the command shell to activate a file.bat. The Shell command has the following parameters :
    Shell(Pathname, Windows Style )
    [email protected]
    Joel P�rez

  • Sql*loader map multiple files to multiple tables

    Can a single control file map multiple files to multiple different tables? If so, what does the syntax look like? I've tried variations of the following, but haven't hit the jackpot yet.
    Also, I understand that a direct load will automatically turn off most constraint checking. I'd like to turn this back on when I'm done loading all tables. How/when do I do that? I can find multiple references to 'REENABLE DISABLED CONSTRAINTS', but I don't know where to say that.
    TIA.
    LOAD DATA
    INFILE 'first.csv'
    TRUNCATE
    INTO TABLE first_table
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (a,b,c)
    INFILE 'second.csv'
    TRUNCATE
    INTO TABLE second_table
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (x,y,z,xx,yy,zz)
    etc.

    Here you go what you want..
    http://www.psoug.org/reference/sqlloader.html
    LOAD DATA
    INFILE 'c:\temp\demo09a.dat'
    INFILE 'c:\temp\demo09b.dat'
    APPEND
    INTO TABLE denver_prj
    WHEN projno = '101' (
    projno position(1:3) CHAR,
    empno position(4:8) INTEGER EXTERNAL,
    projhrs position(9:10) INTEGER EXTERNAL)
    INTO TABLE orlando_prj
    WHEN projno = '202' (
    projno position(1:3) CHAR,
    empno position(4:8) INTEGER EXTERNAL,
    projhrs position(9:10) INTEGER EXTERNAL)
    INTO TABLE misc_prj
    WHEN projno != '101' AND projno != '202' (
    projno position(1:3) CHAR,
    empno position(4:8) INTEGER EXTERNAL,
    projhrs position(9:10) INTEGER EXTERNAL)
    Thanks
    Aravindh

  • Default extension of source file in sql loader map

    Hi
    I created a map having a flat file as source. The file name is X. When Ran the map, these was error message said that 'Cannot find file X.dat'
    Is the '.dat' a default extension when no extension is defined?
    Thank you
    Sozy

    >
    Is the '.dat' a default extension when no extension is defined?
    Yes

  • Calling Sql*Loader from oracle Form builder

    How do i call sql* loader from my forms to import the external data in different formats into my existing database?
    Specify the flexibility of sql* loader to import external data from .txt files or .xls files.
    Would be thankful if certain examples are given along with the answer.

    Hi,
    1. First you have to create seperate ctl (Control files) which maps to different file formats
    2. Using Oracle Forms,
    2a) You can use the 'HOST' command to execute the command line ie. In this case executing
    SQL*Loader script
    2b) You also have the feature in ORACLE forms to read text files and load the data into
    ORACLE db.
    This can be achieved by using TEXT_IO package which comes with ORACLE Forms.
    Hope this helps
    Ta
    Shailender

  • OWB 9.0.4 :SQL*Loader: Operator POSTMAPPING does not support

    Hi,
    While trying to poulate Analytical Workspace using WB_LOAD_OLAP_CUBE, I got the following validation error
    The analysis of the mapping is not successful under all supported languages and operating modes. Detail is as follows:
    SQL*Loader: Operator POSTMAPPING does not support SQL*Loader generation.
    ABAP: Operator AWPARAMS does not support ABAP generation.
    I dont know what that means. Your help will be appreciated. Do I need apply some post 9.2.0.3 patch?. If yes, please let me know the patch number if available.
    FYI: I am using Oracle9i with 9.2.0.3 patch
    Thanks
    Panneer

    Panneer,
    Does the regular process load from a flat file into a table? This would be implemented as SQL loader mapping... in which case a PL/SQL call cannot be implemented.
    What you could do:
    - Use an external table to read from the flat file.
    - Use the transformation in a process flow. I.e. you first execute the SQL loader mapping and then execute the transformation.
    Mark.

  • How to pass a parameter into execute sql task and later use it into dataflow task?

    i am in a situation, where i have a logging table in which i have a primary key called ETL_log_ID which is an identity column and acts as a foreign key for various fact table and dimension tables which are populated using SSIS packages. Now i wanna use the
    ETL_log_ID as a parameter in the execute sql task which populates the log table and pass the same value in the data flow task which populates the facts and dimension. Can you let me know how to pass the parameter in a step by step procedure.
    Thanks,
    Nikhil
      

    Nikhil,
    You can check the following :
    http://www.programmersedge.com/post/2013/03/05/ssis-execute-sql-task-mapping-parameters-and-result-sets.aspx
    http://stackoverflow.com/questions/7610491/how-to-pass-variable-as-a-parameter-in-execute-sql-task-ssis
    Regarding the usage in Dataflow task, Can you elaborate on that a little?
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • SQL Loader Not Loading Data

    According to sql loaders log file, I was successful in loading my data into a table. However the table does not show any values loaded - all empy.
    Here's my table:
    SQL> desc patients
    Name Null? Type
    PATIENT_ID NOT NULL NUMBER(38)
    MEDSUBSCRIBERID VARCHAR2(200)
    MEDMEMBERID VARCHAR2(50)
    MEDDEPSEQDESC VARCHAR2(50)
    MEDMEMBERGENDER VARCHAR2(50)
    MEDMEMBERDOB DATE
    MEDDEPSEQCODE VARCHAR2(50)
    NETWORKID NUMBER(38)
    NETWORKCODE VARCHAR2(50)
    PATIENTAGE NUMBER(38)
    PATIENTNAME VARCHAR2(50)
    PATIENTLASTNAME VARCHAR2(50)
    PATIENTSEX VARCHAR2(50)
    PATIENTSSN VARCHAR2(50)
    INTMEDSUBSCRIBERID VARCHAR2(50)
    DATE_VALUE_ID NUMBER(38)
    DOB VARCHAR2(50)
    AGE_GROUP_ID NUMBER(38)
    ORGANIZATIONNETWORK_ID NUMBER(38)
    ORGANIZATION_ID NUMBER(38)
    ORGANIZATIONCODE VARCHAR2(50)
    NETWORKID_HOLD NUMBER(38)
    PATIENTRELATION VARCHAR2(50)
    Here's my SQL Loader Control File:
    LOAD DATA
    INFILE 'patients.dat'
    APPEND
    INTO TABLE PATIENTS
    FIELDS TERMINATED BY '|'
    TRAILING NULLCOLS
    PATIENT_ID INTEGER(8) NULLIF(PATIENT_ID=BLANKS)
    , MEDSUBSCRIBERID CHAR NULLIF(MEDSUBSCRIBERID=BLANKS)
    , MEDMEMBERID CHAR NULLIF(MEDMEMBERID=BLANKS)
    , MEDDEPSEQDESC CHAR NULLIF(MEDDEPSEQDESC=BLANKS)
    , MEDMEMBERGENDER CHAR NULLIF(MEDMEMBERGENDER=BLANKS)
    , MEDMEMBERDOB DATE "YYYY-MM-DD HH24:MI:SS" NULLIF(MEDMEMBERDOB=BLANKS)
    , MEDDEPSEQCODE CHAR NULLIF(MEDDEPSEQCODE=BLANKS)
    , NETWORKID INTEGER(8) NULLIF(NETWORKID=BLANKS)
    , NETWORKCODE CHAR NULLIF(NETWORKCODE=BLANKS)
    , PATIENTAGE INTEGER(8) NULLIF(PATIENTAGE=BLANKS)
    , PATIENTNAME CHAR NULLIF(PATIENTNAME=BLANKS)
    , PATIENTLASTNAME CHAR NULLIF(PATIENTLASTNAME=BLANKS)
    , PATIENTSEX CHAR NULLIF(PATIENTSEX=BLANKS)
    , PATIENTSSN CHAR NULLIF(PATIENTSSN=BLANKS)
    , INTMEDSUBSCRIBERID CHAR NULLIF(INTMEDSUBSCRIBERID=BLANKS)
    , DATE_VALUE_ID INTEGER(8) NULLIF(DATE_VALUE_ID=BLANKS)
    , DOB CHAR NULLIF(DOB=BLANKS)
    , AGE_GROUP_ID INTEGER(8) NULLIF(AGE_GROUP_ID=BLANKS)
    , ORGANIZATIONNETWORK_ID INTEGER(8) NULLIF(ORGANIZATIONNETWORK_ID=BLANKS)
    , ORGANIZATION_ID INTEGER(8) NULLIF(ORGANIZATION_ID=BLANKS)
    , ORGANIZATIONCODE CHAR NULLIF(ORGANIZATIONCODE=BLANKS)
    , NETWORKID_HOLD INTEGER(8) NULLIF(NETWORKID_HOLD=BLANKS)
    , PATIENTRELATION CHAR NULLIF(PATIENTRELATION=BLANKS)
    Here's data file that I'm trying to load:
    2|001321666|00132156801||M|1944-01-22 00:00:00||42|7215||Donald|Duck||||52616|19440666|4|42|2|WELLS|42|E
    3|001321999|00132156802||F|1951-09-01 00:00:00||42|7215||Mickey|Mouse||||55395|19510999|3|42|2|WELLS|42|W
    4|001363888|00136366201||M|1955-05-22 00:00:00||42|7215||Daffy|Duck||||56754|19550777|3|42|2|WELLS|42|E
    And, my log file after executing sql loader successfully but the data does not load:
    Table PATIENTS:
    3 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: 251776 bytes(64 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 3
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Wed Aug 20 11:51:51 2008
    Run ended on Wed Aug 20 11:51:57 2008
    Elapsed time was: 00:00:05.47
    CPU time was: 00:00:00.02

    Very strange.
    Did you connect as the same user as SQL*Loader when you checked the table?
    Is it possible that someone else deleted the data?

  • SQL Loader Messages in Java (What do they mean?)

    Hi,
    I have been able to execute SQL Loader from a Servlet and I have also been able to retrieve the exit code by calling
    {returnCode = process.waitFor()}.
    I know that a "0" in the exit code indicates a successful execution. However what do the values larger than "0" mean? Does anyone know where I can find out more about these messages.? My servlet container is WebLogic 7.1 on Windows 2000.
    Thanks,
    Jimmy

    indeed it was. no one mentioned a region pitch number, but that doesn't mean anything, of course, people fail to mention all kinds of important bits.
    Still the OP said he just dropped a loop in the timeline.
    ::shrug:: i dunno

  • SQL Loader Username in control file

    Hi,
    Im using SQL Loader to load data. Im going to execute this from a UNIX shell script.
    Here, I have to pass UNIX user name and Oracle user name in the control file.
    How and I do it?.
    Thanks,
    Kannan

    Prashant Tejwani wrote:
    Yup.
    Now i get it.
    You want to load the username of the person who is executing sql loader to load the data in table.
    Right?
    Well, for Oracle Username you can use:
    EMP_ID CHAR(10),
    EMP_NAME CHAR(40),
    UPD_DATE "SYSDATE",
    ORACLE_USER_NAME "user",
    UNIX_USER_NAME "????????"
    I am not sure if we can pass UNIX username because once we execute SQL loader, control file will be executed in Database environment and i dont think any unix syntaxes will hold good there.To achieve the unix username would require the unix script to generate the control file on-the-fly providing the unix username as a fixed value in the control file before it calls sql*loader with that generated control file.

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

Maybe you are looking for

  • HP Smart Web Printing 4.6 is incompatible with Firefox 4.0.1.

     Are there any updates to HP Smart Web Printing?

  • How to move the pages and reports from one dashboard to another

    hi all can please any one tel me hw to copy the reports along with pages from one dashboard to another Thanks

  • Older apple TV stopped working...

    My apple TV (generation previous to new ATV) will not provide HDMI to tv anymore? it has worked for a year or so and then one day decided not to. I've tried switching the HDMI input on tv and also using a different HDMI cord and still no dice. Any ad

  • Dynamic background color

    Hi, I am trying to show a color strip. Color is stored as text (yellow,green etc..) in table. When the select list is submitted the color should change. I have created an item "Display as Text". I am setting "HTML Table Cell Attributes" to bgcolor= :

  • Software component versions

    While creating the SWCV we have the field production state.It is having the options like planned,started...etc.what is the difference between them. How it will effect in the design,config and transport? Thank you, regards, kar