ODI-1228. ORA-00936: lack of expression

Hi all

I have an existing map where I load data flatfile Hyperion Essbase 11.

This is achieved in the 2 interfaces.

1. 1 flat file, 1 table Oracle to Oracle (staging)

2. oracle (Staging) to Hyperion Essbase

I am currently working on interface 1 that has 2 sources: a flat file and an oracle with a join condition table and an oracle target. The change is the addition of 2 new columns. I added 2 new columns in the flat file. I added these 2 columns to the target oracle table also. I changed all the MILES that are:

1. oracle to SQL file

2. LKM SQL for Oracle

3 control of the IKM SQL add - Mindstream - DataQuality - tests

Diff of the target staging area is not checked.

Data are not be fulfilled to target oracle table. I get the following error.

Error: ODI-1228: data_V2 load TXT_ORA 7B (integration) task fails on the target of ORACLE ORA_HYPTEST connection.

Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression

I tested the connection in the scheme physical and is very well. I am able to see the structure of the table also under the mapping tab with which I think that I am connected to the target.

Kindly advice.

Thank you

Hello

Can you please open the step failed ODi operator and goto code tab and copy and paste the code into the SQl command prompt and run manually and see the same error message comes or not, if there is error coming on yesy interface map.

hope this will help you follow the question

Kind regards
Phanikanth

Tags: Business Intelligence

Similar Questions

  • ERROR: ORACLE prepare error: ORA-00936: lack of expression

    Hello

    I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.

    The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.

    Thank you very much in advance for any help.

    Jeff
    _______________________________________

    1; *'; * « ; * / ; Quit; execution risk;
    2 OPTIONS NUMPAGE = MIN;
    3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
    6% LET _SASPROGRAMFILE =;
    7
    8 ODS CLOSE SUBJECT;
    NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
    drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
    9 OPTIONS DEV = ACTIVEX;
    10 EGHTML TEMP FILE NAME;
    NOTE: Writing, body HTML (EGHTML) file: EGHTML
    11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
    11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
    11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
    11.
    12
    gaccessible 13%;
    14 /********************************************************/
    15 * RX_BIPLR_V3. SAS;
    16 /********************************************************/
    17
    18 dm 'journal clearly out; delete ";
    19 linesize options = 120;
    20 option obs = 0 NoReplace;
    21
    22 ****************************************************************************************;
    23 * date reviewed programmer in WHICH WAS MADE;
    24 *----- -------------- ------------ -----------------------------------------;
    25 * 2005 creation of David Boyd program to the test population;
    26 *;
    27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
    28 *;
    29 * 20/07/2006 Ivon Jones identified the holdout data elements;
    30 * or inclusion in the consolidation with;
    31 * Robin report;
    32 *;
    33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
    34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
    35 ****************************************************************************************;
    36
    37
    38
    39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
    40% would let begdate ='01 SEP 2009;
    41% let enddate = 30 SEP 2009 would be;
    42% let q = %str(%');
    43
    44
    45 data _null_;
    46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
    47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
    48, run;

    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    2 the system SAS 11:44 Friday, October 30, 2009

    time CPU 0.01 seconds


    49
    50
    51
    52 **************************************************************;
    53 *? Data _null_ stage allows to create a macro variable to;
    54 * year and month, based on the macro ldos variable in the data;
    55 * step up? ;
    56 **************************************************************;
    57
    58
    59 data _null_;
    If 60 months ("& ldos" d) < 10
    61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
    62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
    63 to run;

    NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
    61:39 61:64 62:39 62:57
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    time processor 0.01 seconds


    64
    65 * make % & biplr_dx;
    position 66% & begdate;
    ' 01 SEP 2009 would be
    67% put & enddate;
    30 SEP 2009 would be
    68% put & fdos;
    JUNE 1, 2007
    69% put & ldos;
    SEPTEMBER 30, 2009
    70% put & q;
    '
    71
    72
    73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
    NOTE: Libref BIPLR has been awarded with success as follows:
    Engine: V9
    Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
    74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
    NOTE: Libref ROSDWP has been awarded with success as follows:
    Engine: ORACLE
    Physical name: rosdwp
    75
    work.biplr_up_v1 76 data;
    mbr_id length 77 attrib = $ 26;
    78 the value biplr.biplr_ubh_med_v1;
    79 to be performed;

    NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
    NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    3 the system SAS 11:44 Friday, October 30, 2009

    time processor 0.01 seconds


    80
    81 proc content;
    82 to be performed;

    NOTE: PROCEDURE used CONTENT (total duration of processes):
    time real 0.03 seconds
    time CPU 0.03 seconds


    83
    84 proc datasets
    85 = rosdwp nolist library.
    86. delete biplr_up_v1;
    87 of quitting;

    NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    time real 3.74 seconds
    time CPU 0.03 seconds


    88
    89 proc datasets
    90 = work nolist library.
    copy 91 = rosdwp move;
    92 select biplr_up_v1;
    93 of quitting;

    NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
    NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
    NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    real 0.32 seconds
    time CPU 0.04 seconds


    94
    95
    96
    97 *****************************************************************************;
    98
    99 * execute (commit) by rosdwp
    100 ******************************************************************************;
    101
    102
    103 proc SQL noprint.
    104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
    104. preserve_comments);
    run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
    CREATE table biplr_rx like 106
    107 SELECT
    mrb_id 108,
    pcp_spc 109,
    rx_date 110,
    4 the system SAS 11:44 Friday, October 30, 2009

    Mark 111,
    generic, 112
    113 ahfs_cd
    ahfs_dsc 114,
    lbl 115,
    strngth 116,
    UNT 117,
    spc_tx_cls_cd 118,
    119 spc_tx_cls_dsc,
    GCN 120,
    rx_num 121,
    rx_ingrd 122,
    rx_paid 123,
    rx_cnt 124,
    rx_qty 125,
    rx_day 126
    127 rosdwp CONNECTION
    128 (SELECT
    129, middle of the year. UNIQ_MBR_ID as mrb_id,
    130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
    FCP 131. LAST_SRVC_DT as rx_date,
    132 JJ. BRAND_NAME as mark,
    133 JJ. GNRC_NAME as generic,
    134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
    DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
    136 JJ. LABEL_NAME as lbl,
    137 JJ. STRNGTH_NUM as strngth
    138 JJ. STRNGTH_UNIT_DESC as unt,
    139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
    140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
    141 JJ. GCN_NUM as gcn,
    FCP 142. PRSCRPTN_NUM as rx_num,
    SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
    SUM of 144 (FCP. PD_AMT) as rx_paid,
    $ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
    SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
    SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
    148
    149 PHRMCY_CLM_FACT pcf,
    150 MBR_ID_DMNSN environment,
    151 DRUG_DMNSN dd,
    152 PRVDR_DMNSN pd,
    153 biplr_up_v1
    154. WHERE THE
    (155)
    156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
    163)
    164 Group By
    165 mi. UNIQ_MBR_ID,
    166 pd. PRVDR_SPCLTY_DESC,
    FCP 167. LAST_SRVC_DT,
    168 JJ. BRAND_NAME,
    5 the system SAS 11:44 Friday, October 30, 2009

    169 JJ. GNRC_NAME,
    170 JJ. AHFS_THRPTC_CLS_CD,
    171 JJ. AHFS_THRPTC_CLS_DESC,
    172 JJ. LABEL_NAME,
    173 JJ. STRNGTH_NUM,
    174 JJ. STRNGTH_UNIT_DESC,
    175 JJ. SPECF_THRPTC_CLS_CD,
    176 JJ. SPECF_THRPTC_CLS_DESC,
    177 JJ. GCN_NUM,
    FCP 178. PRSCRPTN_NUM
    179);
    ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
    RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
    DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
    strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
    spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
    as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
    OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
    (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
    PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
    and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
    DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
    DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
    NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
    180 run (drop table biplr_up_v1) in rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    181 disconnect of rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    182 of quitting;
    NOTE: The SAS system is stopped at this stage of processing errors.
    NOTE: PROCEDURE used SQL (total duration of processes):
    time real 0.14 seconds
    time CPU 0.03 seconds

    183
    184

    (1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
    2) there are two tables in the WHERE clause that do not appear in the FROM clause:

    PHRMCY_FINL_CLM_DMNSN
    MBR_BNFT_DMNSN

    user12142482 wrote:
    Hello again,

    Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:

    «ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)

    -The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.

    -L' preparation error always appears at the end of the internal SELECTION.
    -L' error of preparation remain, with or without the GROUP BY clause.

    Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.

    Any suggestions are greatly appreciated. Thank you to all the world very much.

    Jeff
    150 OF
    151 PHRMCY_CLM_FACT pcf,


    152 MBR_ID_DMNSN environment,
    153 DRUG_DMNSN dd,
    154 PRVDR_DMNSN pd,
    155 BIPLR_UP_V1 BLPR2
    156. WHERE THE
    157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
    (164);
    ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement:

  • ORA-00936: lack of expression

    Hello

    11.2.0.3 I have the following error:

    SELECT name, value of the parameter $ v whose name as a "listener %" or "%Name%".

    SQL error: ORA-00936:

    00936 00000 - "missing expression.

    Any idea?

    Thanks for help.

    Select the name, the value of v$ parameter where name like '% listener %' or NAME like '% name % ';

    Please... avoid this kind of questions...

  • Need help with ORA-00936: lack of expression

    11.2.0.3
    desc killsessionlog
     Name                                                  Null?    Type
     ----------------------------------------------------- -------- --------------
     KILLTIME                                              NOT NULL DATE
     USERNAME                                              NOT NULL VARCHAR2(30)
     SID                                                   NOT NULL NUMBER
     SERIAL#                                               NOT NULL NUMBER
     CTIME                                                 NOT NULL NUMBER
     MACHINE                                                        VARCHAR2(64)
     TERMINAL                                                       VARCHAR2(30)
     PROGRAM                                                        VARCHAR2(48)
     ACTION                                                         VARCHAR2(64)
     MODULE                                                         VARCHAR2(64)
    to test the code to kill the blocker
    SQL> create or replace procedure killblocker
      2  is
      3  stmt varchar2(1000);
      4  cursor c1 is 
      5  select  s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
    ,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
      6      from v$lock l1, v$session s1, v$lock l2, v$session s2
      7      where s1.sid=l1.sid and s2.sid=l2.sid
      8      and l1.BLOCK=1 and l2.request > 0
      9      and l1.id1 = l2.id1
     10      and l2.id2 = l2.id2 
     11      and l1.ctime >0;
     12  begin
     13  for i in c1 loop 
     14  EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
     15  stmt := 'insert into killsessionlog values ('||i.killtime||','|| i.username||','||i.sid||','||i
    .serial#||','||i.ctime||','||i.machine||','||i.TERMINAL||','|| i.PROGRAM||','||i.ACTION||','||i.MODU
    LE||')'
     16  ;
     17  EXECUTE IMMEDIATE stmt;
     18  dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
     19    END LOOP; 
     20  END; 
     21  /
    
    Procedure created.
    created the blocker and blocked the sessions.
    SQL> exec killblocker
    BEGIN killblocker; END;
    
    *
    ERROR at line 1:
    ORA-00936: missing expression
    ORA-06512: at "NN.KILLBLOCKER", line 17
    ORA-06512: at line 1
    worked the first EXECUTE IMMEDIATE for the murder of the session, but the 2nd EXECUTE IMMEDIATE for insertion failed as above. Not able to understand the problem.

    TIA
    SQL> create or replace procedure killblocker
      2  is
      3  stmt varchar2(1000);
      4  cursor c1 is
      5  select  s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
    ,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
      6      from v$lock l1, v$session s1, v$lock l2, v$session s2
      7      where s1.sid=l1.sid and s2.sid=l2.sid
      8      and l1.BLOCK=1 and l2.request > 0
      9      and l1.id1 = l2.id1
     10      and l2.id2 = l2.id2
     11      and l1.ctime >0;
     12  begin
     13  for i in c1 loop
     14  EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
     15  stmt := 'insert into killsessionlog values (:killtime, :username, :sid, :serial#, :ctime, :machine, :TERMINAL, :PROGRAM, :ACTION, :MODULE)'
     16  ;
     17  EXECUTE IMMEDIATE stmt using i.killtime, i.username, i.sid, i.serial#, i.ctime, i.machine, i.TERMINAL, i.PROGRAM, i.ACTION, i.MODULE;
     18  dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
     19    END LOOP;
     20  END;
     21  / 
    

    Gerard

  • ORA-00936: lack of Expression when using separate

    Hello

    I am writing a piece of code that works fine until I put the function separate on the third line, and then I get oracle error: ORA-00936: missing Expression.

    Someone understands where I'm wrong?
          select
                customer_id,
                *distinct* substr(old_system_id, instr(old_system_id, ':') +1, 4),
                substr(old_system_id, 1, instr(old_system_id,':')-1),
                old_system_id
          from
                ph1_ca_load
          inner join
                ph1_site_map_load
          on
                substr(old_system_id, 1, instr(old_system_id,':')-1) = site_code
          inner join
                customer
          on
                name = billing_customer
    ;
     Select     Distinct
                customer_id,
                 substr(old_system_id, instr(old_system_id, ':') +1, 4),
                substr(old_system_id, 1, instr(old_system_id,':')-1),
                old_system_id
          from
                ph1_ca_load
          inner join
                ph1_site_map_load
          on
                substr(old_system_id, 1, instr(old_system_id,':')-1) = site_code
          inner join
                customer
          on
                name = billing_customer
    ;
    
  • SQL error: ORA-00936: lack of expression

    Hi all

    Sorry I can't speak English very well

    I would like to know what is the problem on my code
    CREATE TABLE MOB (MOBILE VARCHAR2(20));
    Insert into EXPORT_TABLE (MOBILE) values ('0124873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0184873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0174873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0120141115');
    Insert into EXPORT_TABLE (MOBILE) values ('0104873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0164873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0194873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0114873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0144873214');
    Insert into EXPORT_TABLE (MOBILE) values ('0122257278');
    My select statement works fine but I have problem with update
    SELECT CASE (SUBSTR(MOBILE,1,3))
           WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10) 
           WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10)
           WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10)
           WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10)
           WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10)
           WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10)
           WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10)
           WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10)
           END "NEW MOB"
    FROM   MOB
    
    RESULT
    
    NEW MOB      
    --------------
    01224873214    
    01284873214    
    01274873214    
    01220141115    
    01004873214    
    01064873214    
    01094873214    
    01114873214    
    01144873214    
    01222257278    
    
     10 rows selected 
    I have a problem with the update
    UPDATE MOB 
    SET    MOBILE = ANY( CASE (SUBSTR(MOBILE,1,3))
           WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10) 
           WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10)
           WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10)
           WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10)
           WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10)
           WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10)
           WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10)
           WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10)
           END "NEW MOB";
           --FROM   MOB);
    COMMIT;
    I thank all

    What exactly is the problem?

    UPDATE MOB
    SET    MOBILE = CASE SUBSTR(MOBILE,1,3)
           WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10)
           WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10)
           WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10)
           WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10)
           WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10)
           WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10)
           WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10)
           WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10)
           ELSE MOBILE
           END;
    
  • ORA-00936: lack of Interface STEP expression for update flag lines

    Hello world!

    We have an interface that retrieves data of essbase and the load into a table target Oracle.

    We use the Modules (KM) following Knowledge:

    LKM Hyperion Essbase DATA SQL

    IKM SQL incremental update

    When we run the interface, at the stage of 'flag to update lines', we get the following error

    Stage: 'make update'

    Error: ORA-00936: lack of expression

    This is definition message tab:

    ODI-1228: Exportar Presupuesto General (integration) task fails on ORACLE ODI_STAGE connection target.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    This is CODE tab:


    Update HYP_INT. I _TRG_PRESUPUESTO_ESS_GENERAL $

    Set IND_UPDATE = 'U '.

    When there is)

    Select 'X '.

    of HYP_INT. TRG_PRESUPUESTO_ESS_GENERAL T

    where

    )

    We do not know why query created the interface has some missing statements when the sql is created. Do you think that a lack or settings or just something worng or a bug?

    The ODI client version is ODI_11.1.1.7.0_GENERIC_130128.1205


    You give us any suggestions to fix this?

    Any suggestions would be very helpful!


    Thank you


    Ivan Lemus

    Since you're using IKM of SQL incremental update, you must mark a logical key on the fields of your target.

    This key allows the comparison for insert and update.

  • Automated row Fetch on Table with synonym causes ORA-00936: lack of expr.

    Hello!

    I have a form that displays a database record.
    To select which record I want to see, I drop-down box that returns the primary key.

    The elements in the form are populated by a standard automated row Fetch.

    Everything works well, even if I replace the table with a point of view on this table or replace it with a local view of a view in a different schema. (I do this by changing the name of 'table' in the FRA process.)

    When I define a synonym on the table or the view I get

    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 9: PL/SQL: statement ignored

    -which is a complete mystery to me.

    Does anyone have a tip for me?
    Many thanks in advance,
    Sabine


    If you want to see the effect (login: demo/demo):
    Table:
    [http://apex.oracle.com/pls/otn/f?p=17361:3 | http://apex.oracle.com/pls/otn/f?p=17361:3]
    Synonym:
    [http://apex.oracle.com/pls/otn/f?p=17361:4 | http://apex.oracle.com/pls/otn/f?p=17361:4]

    Sabine,

    What a view of the synonym?

    See Re: Automated line Fetch of Public synonym error to learn more.

    Greg

  • Error Type 2 SCD: ODI - 1228:ORA - 01747: invalid column, table.column, or user.table.column specification

    ODI error. When you try to import.

    Error Type 2 SCD: ODI - 1228:ORA - 01747: invalid column, table.column, or user.table.column specification

    It is a common question.

    Allow your SCD SCD table column properties if you do not select "crush on change."
    This property simply

    -Online CPC IKM goto => select ignore option error on update of existing lines.

  • ORA-00936: missing expression when adding virtual column

    I am having this error when you add virtual column am in database 11 g

    having error

    ORA-00936: lack of expression

    in select superior

    My sql is

    Employees ALTER TABLE ADD (user name (select upper (substr (first_name, 1, 1)) | initcap (last_name) user name of employees));

    http://docs.Oracle.com/CD/E11882_01/server.112/e41084/statements_3001.htm#sthref3374

    Adding a column of Table virtual: example, the following statement adds a copy of the hr.employees table a column named income , which is a combination of salary more commission. Wages and the commission are NUMBER columns, so the database creates the virtual column as a NUMBER same column if the data type is not specified in the statement:

    CREATE TABLE emp2 AS SELECT * FROM employees; ALTER TABLE emp2 ADD (income AS (salary + (salary*commission_pct)));
    

    ALTER TABLE ADD employees (AS username (upper (substr (first_name, 1, 1)) | initcap (last_name)));

    Concerning

    Etbin

  • SQL syntax exception: lack of expression?

    I got following exception during execution:

    public HolidayDAO locateByDate (local channel, Date date) {}
    .........
    Dim queryString As String = "select o o HolidayDAO where o.locale = '" + local + "' and o.date =: date;
    Ask selectQuery = em.createQuery (queryString);
    selectQuery.setParameter ("date", date, TemporalType.DATE;)
    ...........
    }

    I've stated in the HolidayDAO class:

    @Column (name = "DATE")
    @Temporal (TemporalType.DATE)
    private date;



    Exception [EclipseLink-4002] (Eclipse - 2.3.0.v20110604 persistence Services - r9504): org.eclipse.persistence.exceptions.DatabaseException
    Inner exception: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression

    Error code: 936
    Call: SELECT HOLIDAY_ID, DATE, PLACE, YEAR OF ORA47111. S_HOLIDAY WHERE ((LOCALE =?)) AND (DATE =?))
    link = > [2 bound parameters]
    Query: ReadAllQuery (referenceClass = HolidayDAO sql = "SELECT HOLIDAY_ID, LOCAL DATE, YEAR OF ORA47111. S_HOLIDAY WHERE ((LOCALE =?)) AND (DATE =?)) »)
    at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:333)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:644)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:535)
    at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1702)
    at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:646)
    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2592)
    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2551)
    at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:418)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1097)
    at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:829)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1056)
    at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:390)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1144)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2863)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1501)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1483)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1457)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:485)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:742)
    at projapis.projrollup.beans.ManagedHolidayDAOBean.locateByDate(ManagedHolidayDAOBean.java:96)
    at projapis.ms.project.ExtractProjectPlan.autoResourceMapping(ExtractProjectPlan.java:716)
    at projapis.ms.project.ExtractProjectPlan.extract(ExtractProjectPlan.java:542)
    at projapis.ms.project.ExtractProjectPlan.main(ExtractProjectPlan.java:994)
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:862)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:931)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:607)
    ... 25 more

    'DATE' and 'YEAR' are SQL reserved keywords. You will need to use identifiers delimited for these names @Column("\"DATE\"") columns or change the name of the column: H_DATE

  • ORA-20001 &amp; ORA-00936 "Next day" filter on any column of Date IR

    When you select the filter 'Next day' on any date in any interactive report column, you get:
    ORA-20001: get_dbms_sql_cursor error ORA-00936: lack of expression

    This applies to the IRs application and also any request of manufacturer IRs.

    I find it also strange that there is no filter 'Today' in the list.

    Sorry, I forgot the version banner:

    Request Express 4.0.1.00.03
    Apex listener 1.10.230.17.38
    Containers for J2EE 10 g (10.1.3.5.0) Oracle (build 090727.2000.36696)
    Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

    g.

    Published by: gabs on Aug 30, 2010 04:48

    Gabs,

    Please let us know. A bug is saved for this problem. We will try to fix it in the next version.

    Kind regards
    Christina

  • ORA-00936 when you do mergeTable or refreshTable

    Hello!

    We are facing a serious and strange problem when merging or refresh a certain table.
    It is the output:

    ORA-00936: lack of expression
    ORA-06512: in "SYS.LT", Line 7139

    OWM Version is 10.2.0.1.0

    We tried also on different production system where we get basically the same output, but the line number:

    ORA-00936: lack of expression
    ORA-06512: in "SYS.LT", Line 7295

    OWM Version here is 10.2.0.4.3

    Any reference to what could be the problem? So far we have only noticed with a table, all other tables so far worked perfect.
    It is not anything special about the table, at least nothing obvious where we could say that it might be a problem.

    The operation fails for merge/refreshTable anyway, so it of okay if we put in a WHERE clause or not.
    Also makes no difference what kind of diff we will merge/refreshment, she is not as much inserts as updates.

    Any help is appreciated.

    Kind regards

    Andreas Schilling

    Hello

    I wanted to say that to be constraint_type like '% U '. But you have provided what I was looking for.

    It seems that the MOT_KOMBINATION_UK constraint metadata does not match the actual stress. You can try the following which should force it to be regenerated:

    SQL > exec dbms_wm.beginDDL('CO2MO.) C2_MOTOREN');
    SQL > alter table CO2MO. C2_MOTOREN_LTS change the constraint MOT_KOMBINATION_UK_LTS disable;
    SQL > exec dbms_wm.commitDDL('CO2MO.) C2_MOTOREN');

    SQL > exec dbms_wm.beginDDL('CO2MO.) C2_MOTOREN');
    SQL > alter table CO2MO. C2_MOTOREN_LTS change the active constraint MOT_KOMBINATION_UK_LTS;
    SQL > exec dbms_wm.commitDDL('CO2MO.) C2_MOTOREN');

    If this does not solve the problem (or cannot temporarily disable constraint), I would say a filing SR because it is especially likely that something else.

    Kind regards
    Ben

  • ODI the Package execution fails with ODI-1228 and ORA-20000 not sufficient privileges to analyze

    Hello

    I am trying to execute the package to ODI to have this error:

    Header 1

    ODI-1228: GATHER_SCHEMA_STATS-DW_STAGE (procedure) task fails when connecting ORACLE target ORACLE_SERVER.

    Caused by: java.sql.SQLException: ORA-20000: not sufficient privileges to analyze an object in the schema

    ORA-06512: at "SYS." DBMS_STATS", line 24867

    ORA-06512: at "SYS." DBMS_STATS", line 24945

    ORA-06512: at "SYS." DBMS_STATS", line of 24899

    ORA-06512: at line 2

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:744)

    (1) DW_STAGE and DW_REPORT have "ANY ANALYSER" and "UNLIMITED TABLESPACE" privilege and roles "S/n", 'CONNECT' and 'RESOURCE '.

    (2) agents are all running

    (3) tested ORACLE_SERVER and he succeeded

    Need for emergency assistance.

    Thanks in advance-

    ADI

    OK, I solved it.

    As part of Oracle under Technologies--> Oracle in the Studio of the ODI, I gave in the uid and password for DW_STAGE and it fixed the problem!

    Thank you all for your help and suggestions!

    ADI-

  • What is the problem in this simple scritp? ORA-00936

    Hello

    I created this simple script (for Oracle 10g process request Express) where I'm trying to copy a row in table EMPRESAS_ORGANISMOS in the EMPRESAS_REVISADAS table. Both tables have the same fields. ': P15_ID_EMP ' is the text field that contains the ID of the line I want to copy. I get the following errors:

    ORA-06550: line 19, column 9: PL/SQL: ORA-00936: expression lack ORA-06550: line 3, column 1: PL/SQL: statement ignored



    BEGIN
    INSERT INTO EMPRESAS_REVISADAS
    (ID,
    ID_FUENTE,
    COMPILADOR,
    SECTOR_BURSATIL,
    PAGE,.
    ADDRESS,
    CP,
    ANO_FUNDACION,
    CAPITAL_NOMINAL,
    CAPITAL_DESEMBOLSADO,
    OBLIGACIONES,
    IMPORTE_CUENTAS_PENDIENTES,
    OBSERVACIONES,
    APALANCAMIENTO,
    NUMBER,
    NOMBRE_MUNICIPIO)
    VALUES
    SELECT 'EMPRESAS_ORGANISMOS '. "" IDENTITY CARD. "
    'EMPRESAS_ORGANISMOS '. "" ID_FUENTE, "
    'EMPRESAS_ORGANISMOS '. "" COMPILADOR.
    'EMPRESAS_ORGANISMOS '. "" SECTOR_BURSATIL, "
    'EMPRESAS_ORGANISMOS '. "" PAGE. "
    'EMPRESAS_ORGANISMOS '. "" ADDRESS. "
    'EMPRESAS_ORGANISMOS '. "" CP. "
    'EMPRESAS_ORGANISMOS '. "" ANO_FUNDACION, "
    'EMPRESAS_ORGANISMOS '. "" CAPITAL_NOMINAL, "
    'EMPRESAS_ORGANISMOS '. "" CAPITAL_DESEMBOLSADO, "
    'EMPRESAS_ORGANISMOS '. "" OBLIGACIONES ",.
    'EMPRESAS_ORGANISMOS '. "" IMPORTE_CUENTAS_PENDIENTES, "
    'EMPRESAS_ORGANISMOS '. "" OBSERVACIONES ",.
    'EMPRESAS_ORGANISMOS '. "" APALANCAMIENTO. "
    'EMPRESAS_ORGANISMOS '. "" NUMBER. "
    'EMPRESAS_ORGANISMOS '. "" NOMBRE_MUNICIPIO ".
    DE 'EMPRESAS_ORGANISMOS '.
    'EMPRESAS_ORGANISMOS '. "" ID "=: P15_ID_EMP;
    END;

    Thanks in advance.

    Get rid of the word VALUES. You use not VALUES when you insert data based on a SELECT statement

Maybe you are looking for

  • Sync does not work on all my favorites, only a part.

    31 of Firefox with a new MacBook Air, but the sync of my iMac is not complete. I have disconnected and turn it back on and tried to sync several times. When I go to display all bookmarks on the MBA, they are still missing. Curiously, the folder of bo

  • When aptX is supported?

    Read older posts, it's still not clear to me whether this feature will be supported in a later operating system.

  • Satellite L10-114 graphics memory

    I have the l10-114, which, according to the specifications on the tosh site should support shared memory up to 64 MB video memory. However, I can only choose a maximum of 32 MB in the bios. I have the latest available bios version. is it a typing mis

  • Is there a way to stop the Mail to save each line of an email I write separately in the trash?

    Is there a way to stop the Mail to save each line of an e-mail message that I write and save it as a draft in the trash? It is a new behavior since I updated to El Capitan, and I can't find anything about this in the preferences or help.

  • Compaq s 6830: change the CMOS battery in a compaq 6830 s

    I get up a message at startup my CMOS battery charge level is low, so I want to change it.  The computer works well except that.   I have no idea where on the map, it is or how to access it.  8.1 Windows installed without any problems.