Getting error while inserting data from source to the target in the procedures?

Hello

I want to insert the data from the source to the target in the procedures, have the same schema.

For this, I did as follows

Command on the source:

Technologies: oracle

Schema: EDWHCMB

Command:

SELECT COMPANY_NAME, COMPANY_CODE OF

EDWHCMB. DWT_COMAPNY

Command on the target:

Technologies: oracle

Schema: EDWHCMB

command:

INSERT INTO EDWHCMB. TEMP

VALUES)

COMPANY_CODE,

COMPANY_NAME)

I have run the procudere then I got error as follows

ODI-1228: SAMPLE1 (procedure) task fails on ORACLE EDWH connection target.

Caused by: java.sql.BatchUpdateException: ORA-00984: column not allowed here.


How to insert the data from the source to the target in the proceedings?

Please send any document to this...

Please help me.

Thanks in advance,

A.Kavya.

Hi Bruno.

If your tables are on the same schema then why do you use command on the source and the command on the target? You can simply do the following on the command on the target

INSERT INTO EDWHCMB. TEMP

SELECT COMPANY_NAME, COMPANY_CODE OF

EDWHCMB. DWT_COMAPNY


If you really want at all to use the command on the source and target both then I think you need to change the following code on your order on the target

INSERT INTO EDWHCMB. TEMP

VALUES)

: COMPANY_CODE,.

(: COMPANY_NAME)

Hope your TEMP table has only these 2 columns.

Thank you

Ajay

Tags: Business Intelligence

Similar Questions

  • Help with 14400 ORA error while inserting data

    Hi all

    I am facing an error ora-14400 in the following scenario, please help.

    I created a table using the syntax:

    CREATE TABLE insert_table
    (
    NUMBER OF GRPKEY (20, 0) NOT NULL,
    N NUMBER (10, 0),
    JOVAN VARCHAR2 (250 BYTE),
    APC VARCHAR2 (2 BYTE),
    SID VARCHAR2 (65 BYTE),
    RDATETIME VARCHAR2 (BYTE 19),
    NUMBER OF CKEY (20, 0),
    AVER VARCHAR2 (25 BYTE),
    VARCHAR2 (250 BYTE) CVER,
    TNOM VARCHAR2 (50 BYTE),
    SCODE VARCHAR2 (30 BYTE),
    PTAPEZ VARCHAR2 (50 BYTE),
    NUMBER OF FILENUMB (10, 0),
    NUMBER OF LINENUMB (10, 0),
    DATE OF ENTRY_CREATEDDATE
    CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION OF RANGE (ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN (TO_DATE (' 2009-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN ')))
    );


    When I try to insert data using the:


    insert into insert_table values
    (1, null, null, null, null, null, null, null, null, null, null, null, null, null, November 1, 2010 "");

    I get the following error output:
    Error report:
    SQL error: ORA-14400: inserted partition key is not mapped with any partition
    14400 00000 - "inserted partition key is not mapped to any partition.
    * Cause: An attempt was made to insert a record into a beach or a Composite
    Range object, with a concatenated partition key that overflows
    the concatenated partition bound list of the last partition - or-
    An attempt was made to insert a record into a list object with
    a partition key that does not match the specified literal values
    for all partitions.
    * Action: Do not insert the key. Add a partition capable of accepting
    the key, or add values corresponding to the key a partition specification

    Hi Chaitanya,

    Change your table script to

    CREATE TABLE temp_table
    (
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P1 VALUES LESS THAN(MAXVALUE)
    );
    
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    1 row inserted
    

    or refer the question about the "Date of partitioning of a table"
    * 009 *.

    Published by: 009 November 3, 2010 23:29

  • Getting error while deploying ADF Mobile App in the android emulator

    Hi all
    I'm getting following error when the mobile deployment app in the android... emulator I went through google search and I did all the steps as follows...


    1 keytool - genkey - v - keystore debug.keystore - alias androiddebugkey - keyalg RSA - keysize 2048 - validity 10000

    I gave the password, last name, organization, State and country
    2 jarsigner - sigalg MD5withRSA - digestalg SHA1-verbose - keystore /Users/Admin/.android/debug.keystore C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk
    3 / e - platform-tools/adb install - r C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk

    After the above step... I got the SUCCESS message (while performing the steps above in the command prompt).

    Even after this... I get the same error while deploying my application using jdeveloper in the android emulator...


    ERROR:

    [09: 40:02] failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
    [09: 40:02]
    [09: 40:02] command-line execution failed (return code: 0)
    [09: 40:02] run command line: 'E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb' EI setup - r "C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\generalmobileapp.apk".
    [09: 40:02] undeployment.
    [09: 40:02] - incomplete deployment.
    [09: 40:02] deployment failed due to one or more errors returned by "E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb". What follows is a summary of the returned error:
    Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]


    Kind regards
    Nani

    Published by: 962874 on January 12, 2013 06:46

    The emulator can run out of space for applications - so if you have other applications that are deployed to the emulator remove them and then try again.
    Other options here:
    http://StackOverflow.com/questions/2239330/how-to-increase-storage-for-Android-emulator-install-failed-insufficient-Stora

  • Insert data from variables in the Ref Cursor

    I do not know how to return data from ref cursor variables That's what I've tried so far...
    CREATE OR REPLACE type num_obj as object (
      t_number number ,
      t_type varchar2(10) ,
      t_desc varchar2(40)
    ); 
    CREATE OR REPLACE type num_table as table of num_obj; 
    
    procedure get_all_data(p_p1 in varchar2, p_rc OUT SYS_REFCURSOR) is
       l_dat1 number := 2;
       l_dat2 varchar2(10);
       l_dat3 varchar2(40);
       t_num_o num_obj;
       t_num_t num_table;
    begin
      for l_indx in 1..5 loop
         l_dat1 := l_dat1 + l_indx;
         if ( mod(l_dat1,2)=0) then
           l_dat2 := 'EVEN';
         else
           l_dat2 := 'ODD';
         end if;
         l_dat3 := 'Number ' || l_dat1 || ' is ' || l_dat2 || ' number'; 
         l_num_o := num_obj (l_dat1, l_dat2, l_dat3);
         l_num_t := num_table(l_num_o);
      end loop;
      open p_rc for select * from table(l_num_t);
      close p_rc;
    end;
    At the end, to achieve this in Ref Cursor:
    t_number | t_type | t_desc
    ---------------------------------------
    3        | ODD    | Number 3 is ODD number
    5        | ODD    | Number 5 is ODD number
    8        | EVEN   | Number 8 is EVEN number
    12      | EVEN    | Number 12 is EVEN number
    17      | ODD     | Number 17 is ODD number
    Can something like that, where I did wrong?

    BTW. I did this with the function in pipeline, now I want to try a different method.

    The refcursor can not be closed in the procedure - you must return refcursor open to the appellant.
    the appellant must read and then close it.
    There are also some errors in the names of variables and an assignment to the collection.

    Try this version:

    CREATE OR REPLACE
    PROCEDURE GET_ALL_DATA(P_P1 IN VARCHAR2, P_RC OUT SYS_REFCURSOR) IS
       l_dat1 number := 2;
       l_dat2 varchar2(10);
       L_DAT3 VARCHAR2(40);
       L_NUM_O NUM_OBJ;
       l_num_t num_table := num_table() ;
    BEGIN
      for l_indx in 1..5 loop
         l_dat1 := l_dat1 + l_indx;
         if ( mod(l_dat1,2)=0) then
           l_dat2 := 'EVEN';
         else
           l_dat2 := 'ODD';
         end if;
         l_dat3 := 'Number ' || l_dat1 || ' is ' || l_dat2 || ' number';
         L_NUM_O := NUM_OBJ (L_DAT1, L_DAT2, L_DAT3);
         L_NUM_T.EXTEND;
         l_num_t( l_indx ) := l_num_o;
      end loop;
      OPEN P_RC FOR SELECT * FROM TABLE(L_NUM_T);
    END;
    /
    
    SQL> variable xx refcursor
    SQL> execute GET_ALL_DATA( '', :xx );
    
    PL/SQL procedure successfully completed.
    
    SQL> print :xx
    
      T_NUMBER T_TYPE     T_DESC
    ---------- ---------- ----------------------------------------
          3 ODD           Number 3 is ODD number
          5 ODD           Number 5 is ODD number
          8 EVEN       Number 8 is EVEN number
         12 EVEN       Number 12 is EVEN number
         17 ODD           Number 17 is ODD number
    
  • Error while inserting data with DBMS_RANDOM

    Hello
    I tried the following insert command in the link http://www.oracle-base.com/articles/misc/RollupCubeGroupingFunctionsAndGroupingSets.php
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    SQL> INSERT INTO dimension_tab
      2  SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
      3         TRUNC(DBMS_RANDOM.value(low => 1, high => 6)) AS fact_2_id,
      4         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_3_id,
      5         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_4_id,
      6         ROUND(DBMS_RANDOM.value(low => 1, high => 100), 2) AS sales_value
      7  FROM   dual
      8  CONNECT BY level <= 1000;
    SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
                                       *
    ERROR at line 2:
    ORA-00907: missing right parenthesis
    Could you please advice me to get the correct records

    >
    You cannot use named parameters for the function/procedure calls in SQL up to version 11.
    >

    You cannot use a procedure in SQL even in version 11.

    For the OP,.

    The named parameters in the functions not suitable for versions of oracle less than 11 in what Tubby said.

    Try the following.

    INSERT INTO dimension_tab
    SELECT TRUNC(DBMS_RANDOM.value( 1,  3)) AS fact_1_id,
           TRUNC(DBMS_RANDOM.value( 1,  6)) AS fact_2_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_3_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_4_id,
           ROUND(DBMS_RANDOM.value( 1,  100), 2) AS sales_value
    FROM   dual
    CONNECT BY LEVEL <= 1000;
    

    G.

  • How can I insert data from another table into a table containing a timestamp column

    How you insert data from another table in a table if the target table contains a timestamp column. I tried to set the default value of GETDATE() column in the target table, but it does not work.


    I use MS SQL

    Sorry, I managed to get around this by inserting null as the value

  • Insert data from one table to another

    I have two tables SALES_MASTER and SALESMAN_MASTER which is described below.

    SQL > desc SALES_MASTER;
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    NO VARCHAR2 (6)
    NAME VARCHAR2 (20)
    PIN NUMBER (8)
    CITY VARCHAR2 (20)
    VARCHAR2 (20) STATE



    SQL > desc SALESMAN_MASTER;
    Name Null? Type
    ----------------------------------------- -------- -----------------------
    SALESMANNO VARCHAR2 (6)
    SALESMANNAME VARCHAR2 (20)
    ADDRESS1 VARCHAR2 (30)
    ADDRESS2 VARCHAR2 (30)
    CITY VARCHAR2 (20)
    PIN NUMBER (8)
    VARCHAR2 (20) STATE
    SALAMT NUMBER (8.2)
    TGTTOGET NUMBER (6.2)
    YTDSALES NUMBER (6.2)
    REMARKS VARCHAR2 (60)

    I want to insert data from SALESMAN_MASTER (2nnd table) to SALES_MASTER(first table). I want to insert only two columns NO, NAME and PIN code. All of these columns are compatible. I tried this command. But it's not working. Help me.

    SQL > insert into SALES_MASTER
    2 (NO., NAME, PIN CODE)
    3 values
    4. Select SALESMANNO, SALESMANNAME, PIN code
    5 SALESMAN_MASTER;
    Select SALESMANNO, SALESMANNAME, PIN code
    *
    ERROR on line 4:
    ORA-00936: lack of expression
    INSERT INTO SALES_MASTER
       ( NO
       , Name
       , PINCODE )
       SELECT SALESMANNO
            , SALESMANNAME
            , PINCODE
         FROM SALESMAN_MASTER;
    

    Kind regards
    Christian Balz

  • Getting error while creating partitation on hard drive

    Getting error while creating partitation on hard drive

    Attached screenshot for warning msg

    You can have up to four primary partitions. Since you already have four of these partitions, you cannot create a fifth partition. You must do this:

    1. Delete a primary partition.
    2. Create an extended partition.
    3. Create logical partitions as you wish within the extended partition.
  • Am increasing the drive C for XP VM, get error while doing below it please help me.

    error.JPG

    Am increasing the drive C for XP VM, get error while doing below it please help me.

    In this case, the reason is the virtual IDE drive. Increasing the disks IDE is not possible the vSphere client.

    Take a look at KB VMware: conversion of a virtual IDE disk to a virtual SCSI disk to see if this is an option for you.

    André

  • How to insert image from mysql into the table using php and create the checkbox in the table?

    How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...

    WELCOME

    connect_error) {die ("connection failed:".)} $conn-> connect_error); } $sql = "SELECT no, Calon, ID, of course, the Image OF THE candidates." $result = $conn-> Query; If ($resultat-> num_rows > 0) {echo ' '; export data of each line while ($row = $result-> fetch_assoc()) {"echo"}}
    NO Candidate INFO Vote
    " . $row ["no"]. "-" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ['class']. "
    "; } ECHO ' ' ;} else {echo '0 results' ;} $conn-> close();?} >

    hope someone can help me because I am a newbie in this program... need to finish this project... Thank you.

    If you have saved the file name in the database, it's pretty simple.

    echo '' . $row['description'] . '';
    

    Is the same for the box:

    echo '';
    

    If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.

  • Extract data from files of the NRF

    Hello!

    So, I'm working on a project where I have files of data that are written on 12 channels in a .nrf file.  As the NRF seems to be a pretty unique file format I don't come with a better than DIAdem Software for open data.  I'm looking for a way to take data from each of the channels and enter the values programmatically every x number of data points.  I use Visual Studio, written in c#, using the Library COM DIAdem.

    At this point I wrote a very basic program that uses CmdExecuteSync ("DataFileImport (" "+ file.)") FillName + "')"); to import the .nrf file in DIAdem, but from there, I'm lost.  I tried to export the data using the DataFileSaveSel function, but unfortunately the CSV output ends up being almost a gigabyte in size, which is too big for my needs.  I hope there is a way to perform the operation, that I need in tiara and if so someone could help get me pointed in the right direction.

    Thank you very much in advance for any help.

    Hi Kub,

    I recommend you use the loading capacity reduced by tiara, like this:

    n = 10
    SectionBegin = 1
    SectionEnd = 1000
    Call DataDelAll
    Call DataFileLoadRed (FileDlgName, "", "", "IntervalWidth", N, 1, SectionBegin, SectionEnd)

    This will load every nth value from value 1 to the value 1000.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Error: «Please insert a blank disc into the CD drive (E :).» Once Windows Media Player detects a new disc, it will start automatically burning"

    Hi, we are currently running Windows XP SP3.  My daughter tries to download a song from Windows Media Player, she needs for her class dance.  It just download the song bad by accident without problem.  Now she's trying to download the song using the same CD (CD - R80) and it gives sound this error: «Please insert a blank disc in the CD drive (E :).» Once Windows Media Player detects a new disc, it will start automatically burning."  Someone please help.  She needs this to practice his senior dance solo.

    As I understand it, the CD was already burned once, and now she's trying to burn on the same CD again? This is not possible, as the CD - Rs can only be burned once. She will need a new blank CD - R, like the error message.

  • installed pes 2013 on laptop when you select game get error message "video card does not meet the required specifications (GPU:VRAM 128 MB)" can anyone help?

    installed pes 2013 on laptop when you select game get error message "video card does not meet the required specifications (GPU:VRAM 128 MB)" can anyone help?

    This means what he says.  You do not have the minimum required VRAM.
    The minimum specs for the game is listed as 128 MB of VRAM, but is supposed to work
    on the graphics card integrated Intel 2000/3000.
    The amount of VIDEO memory dedicated on laptops is apparently determined by the FAB of the laptop.

    Without knowing which laptop, or if it is one that has a dedicated graphics card, I guess that your laptop uses integrated graphics that devotes too little of VRAM (64 MB?),
    If it does not the minimum requirement of 128 MB of VRAM.

  • Hi, I am trying to install Adobe Creative Cloud and I get error 43. I tried to use the Adobe cleaning tool and uninstall but nothing has changed. What can I do?

    Hi, I am trying to install Adobe Creative Cloud and I get error 43. I tried to use the Adobe cleaning tool and uninstall but nothing has changed. What can I do?

    Hi carlottav39691716,

    Please see the following links:

    Error 43 - I can't download any adobe apps CC or creative cloud Manager

    Creative cloud, re-install-Dungeon error 43

    Error in downloading, installing or updating Adobe Creative Cloud applications

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • How to transfer data from oracle to the web service using ODI with axis2 tech

    Hi all

    Can someone cause a document or markets about 'How to transfer data from oracle to the web service with the help of ODI with AXIS2 technology'
    If any person with a document or markets, please share it with me

    Thank you
    Phani

    I can give you a few examples of web services in ODI, perhaps that you find them useful?
    Try: -.
    http://John-Goodwin.blogspot.com/2009/04/ODI-series-Web-services.html
    http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-3.html
    http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-4.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for