ORA-00923 deployment of mapping

Hi all

I have a project that contains a match with an expression. This expression uses a function that declares a cursor to extract the values of an intermediate table, as follows:

-initialize variable here

NUMBER OF P_MSISDN;
V_ROW MAP_PSEUDO_NUMBERS_STG % ROWTYPE;

CURSOR C_MAP_PSEUDO_NUMBERS IS
SELECT * FROM MAP_PSEUDO_NUMBERS_STG;

-main body
BEGIN
OPEN C_MAP_PSEUDO_NUMBERS.
IF C_MAP_PSEUDO_NUMBERS % ISOPEN THEN
LOOP
EXTRACT THE C_MAP_PSEUDO_NUMBERS IN V_ROW;
WHEN THE OUTPUT C_MAP_PSEUDO_NUMBERS % NOTFOUND;
IF (INSTR (TO_CHAR (P_MSISDN), V_ROW. PSEUDO_NUMBER_ID) = 1) THEN
RETURN 4; -Number of nickname
END IF;
END LOOP;
RETURNS A NULL VALUE.
END IF;

EXCEPTION
WHILE OTHERS THEN
NULL; -Enter any code exception here
RETURNS A NULL VALUE.
END;

The mapping expression operator uses this function as follows:

IF 'PK_PRJ_LOAD '. «LOAD_ALL_PSEUDO_NUMBERS «(INGRP1.» MSISDN) <>NULL THEN
'PK_PRJ_LOAD '. «LOAD_ALL_PSEUDO_NUMBERS «(INGRP1.» MSISDN)
ON THE OTHER
CASE
WHEN (INGRP1. PAYMENTTYPE IS NULL) THEN 0 - unknown
WHEN (INGRP1. PAYMENTTYPE = 'C') THEN 1 - postpaid
WHEN (INGRP1. PAYMENTTYPE = 'P') THEN 2 - prepaid
WHEN (INGRP1. PAYMENTTYPE = 'H') THEN 3 - hybrid
OTHERWISE 0 - Unknown
END

Where 'PK_PRJ_LOAD '. «LOAD_ALL_PSEUDO_NUMBERS «(INGRP1.» MSISDN) is the above mentioned function.

The sql query is very good, and when I run the script in SQL developer, it works ok. However, when I try to deploy the mapping that uses the function, I get this error:

PL/SQL: ORA-00923: KEYWORD not found where expected

I wonder if I can use the sliders in OWB functions, or elsewhere, where is the problem. Any ideas?

Thanks in advance
G.

I think the problem is with
This part

IF "PK_PRJ_LOAD"."LOAD_ALL_PSEUDO_NUMBERS"(INGRP1.MSISDN) NULL THEN
"PK_PRJ_LOAD"."LOAD_ALL_PSEUDO_NUMBERS"(INGRP1.MSISDN)
ELSE
CASE
WHEN (INGRP1.PAYMENTTYPE IS NULL) THEN 0 -- Unknown
WHEN (INGRP1.PAYMENTTYPE='C') THEN 1 -- Postpaid
WHEN (INGRP1.PAYMENTTYPE='P') THEN 2 -- Prepaid
WHEN (INGRP1.PAYMENTTYPE='H') THEN 3 -- Hybrid
ELSE 0 -- Unknown
END

instead of 'if' (I never tried 'if' in the expression) try using the avd CASE first try with a simple... as

Case when "PK_PRJ_LOAD"."LOAD_ALL_PSEUDO_NUMBERS"(INGRP1.MSISDN) IS NULL  THEN
1
else  2
end

and check if it works...

See you soon
Katia

Published by: Katia on October 13, 2009 07:56

Tags: Business Intelligence

Similar Questions

  • Cannot deploy the mapping which is validated fine-problem when debugging

    Hi all


    I have a complex with almost thirty tables involved mapping.
    I created a mapping with the step by step process of t1 Join t2, t2 join t3... t29 join t30
    Mapping looks very good and has been validated successfully.
    When I try to deploy the same he throws me the warnings below...



    How to solve this problem?
    How to locate the exact problem in pls code region generated during deployment.

    Thank you very much!
    SRID

    Here is the warning of deployment



    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 11, column 3:
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 11, column 3:
    PL/SQL: SQL statement ignored
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 2247, column 3
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 2247, column 3:
    PL/SQL: SQL statement ignored
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 4738, column 7:
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 4738, column 7:
    PL/SQL: SQL statement ignored


    Summary of the offer
    Update: 2009-01-21 07:38:57.0 job final status: completed WARNING processed job count: 1 number of job errors: 0 Job Alert Count: 6




    My mapping has only 18808 lines when I looked the .pls script generated during deployment (surprisingly... the Debug displays message error is on line 22776)

    When trying to debug the mapping below is the debug message
    Analysis of card to debug...
    Retrieving the connection of Control Center information...
    Connecting to the Control Center schematic...
    The character set of the Control Center schema checking...
    Configuration of the sources and targets...
    Card validation...
    Correlated Commit is DISABLED.
    Generate debug package...
    Deployment of debug temp tables...
    Deploying debug package...
    ***********************************************
    Messages of debug code deployment:
    LINE 22776, COLUMN 46:
    PLS-00103: encountered the symbol "B_BN_BNI_66_BN_ORIGI$ 2" when expecting one of the following values:

    . (* % & = - +; <>/ at mod is still not rem)
    < an exponent (*) > <>or! = or ~ = > = < = <>and or LIKE2_
    LIKE4_ LIKEC_ between | Member of multiset SUBMULTISET_
    The symbol "." was replaced by "B_BN_BNI_66_BN_ORIGI$ 2" to continue. "

    End of messages of debug code deployment
    ***********************************************
    Mapping debugger error:
    oracle.wh.service.sdk.mapping.debugger.WBMappingDebuggerException: DBG1012: Debug deployment errors, can't run debug code.

    Hello

    There is only one version of the software. Whether or not you must license depends on the features you use.

    Generates code in the mapping Editor by using the button "generate".
    In the build results window, select style generation = operating mode and middle = 'Set [PL/SQL] founded.
    Now you must select a group entry or exit of some operator in your mapping.

    The build results window then displays a SQL statement that represents the data that would go in the group you selected.
    Run the SQL directly in your target schema (using sql * plus, sql developer, etc.).
    If the SQL code cannot be run, the problem is in this particular part of the mapping.
    You can try to locate further.

    Good luck
    Carsten.

  • PL/SQL error: ORA-00923: KEYWORD not found where expected

    Hi all

    I get this error when I generate the code mentioned bellow.

    Error of calculation of the value of the default element for the element on the page P1_JORNADA_ANUAL.

    ORA-06550: line 42, column 17: PL/SQL: ORA-00923: THE KEYWORD not found where expected to ORA-06550: line 8, column 1: PL/SQL: statement ignored


    Code:


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

    DECLARE

    L_EMPRESA B_LISTA_EMPLEADOS. EMPRESA % TYPE;

    BEGIN

    Select case when ((select EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME = v('APP_USER'))) = "EMPRESA1".

    then ((select to_char (JORNADA_ANUAL)

    of B_JORNADAS_Y_RATIOS

    where CATEGORY = (())

    Select the CATEGORY

    of B_LISTA_EMPLEADOS

    where username = v('APP_USER')

    ))

    and EMPRESA = (())

    Select the EMPRESA

    of B_LISTA_EMPLEADOS

    where username = v('APP_USER')

    ))

    and ANO = v ('P1_ANO')

    ))

    When ((select EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME =: APP_USER)) = "EMPRESA2".

    then "EMPRESA2 Jornada.

    When ((select EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME =: APP_USER)) = "EMPRESA3".

    then "EMPRESA3 Jornada.

    else 'Empresa desconocida '.

    end

    in L_EMPRESA

    like the Jornada

    of B_JORNADAS_Y_RATIOS

    The COMPANY group

    RETURN L_EMPRESA;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    RETURNS A NULL VALUE.

    END;

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


    Does anyone know who or where is the error?


    Thank you very much.


    Concerning


    Also

    Check this box...

    IN

    L_EMPRESA AS Jornada

    you send a value to the variable, if no name alias need here.

    use like this.

    IN

    L_EMPRESA

    Of

  • ORA-00923: THE KEYWORD not found where expected

    Getting an error in a function:
    FUNCTION gross_sal 
      (emp_no IN NUMBER)
       RETURN NUMBER
      IS
       emp_before_tax Number;
     BEGIN
      SELECT
        emp.Sal  coalesce(ed.Deduction_amount,0) result
      INTO  emp_before_tax
      FROM  emp emp                                             --****ORA-00923: FROM keyword not found where expected****
        LEFT JOIN Emp_Deductions ed ON ed.fk_empno = emp.EmpNo
         AND ed.Before_or_After_Flag = 'B';
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
         DBMS_OUTPUT.PUT_LINE('Employee has no salary listed.');
     END gross_sal;
    It's a small piece of a package can list the tables and if necessary rest.
    emp.Sal  coalesce(ed.Deduction_amount,0) result
    

    an operator is missing between the two, WHERE the...

    In addition, to add... BACK is missing in your pl/sql code.

    Concerning
    Biju

  • ORA-00923

    Hello
    My advice to this error?
    SQL > SELECT a.ZSR_OP ORIGIN_PORT, a.ZSR_LP LOAD_PORT, a.ZSR_TS DISC_POR
    T, a.ZSR_DP DEST_PORT, a.ZSR_ACTUALPOL ACTUAL_PORT, to_char (ZSR_LOADATE,' dd/mm/year)
    yyy') load_date, to_char(ZSR_ARRDATE,'dd/mm/yyyy') Arrival_date, b.ZBL_NUMBER BL
    NO, ZBL PACKCODE | ' ' || ZBL_PACKSIZE Pack, ZBL_SVC SOC, b.ZBL_QNT QUANTITY,
    ZBL_WTN W_TON, ZBL_FWT R_TON, RTRIM (ZBL_FEEDVSL) | » '|| RTrim (ZBL_FEEDVOY) FEEDER
    CODE ZRV_CODE, RVC_NAME CODE_NAME, ZRV_PC PREPAID_COLLECT, ZRV_CURRENCY CURREN
    CY, round (nvl(ZRV_LOCAL,0) /decode (NVL(Zbl_netqnt,0), 0, NVL(Zbl_fwt,1), Zbl_netqnt))
    (AVERAGE 2), LOCAL_AMT, USD_AMT, PAY_PORT, ZRV_GLVERSION_SAP SA ZRV_USD ZRV_LOCAL
    ZRV_GLVERSION_11I GL11, NOTE ZBL_NOTE, ZCT_NUMBER CONTAINER, SIZE ZCT_SIZE, P, Z
    WEIGHT OF CT_WTN, ZCT_FTN FREIGHT_WEIGHT
    16:16:21 ZIP_STR 2A,.
    16:16:21 3 B ZIP_BL,
    16:16:21 ZIP_REV 4 C.
    16:16:21 REVENUE_CODES 5 D.
    16:16:21 6 ZIP_CNT E
    16:16:21 7 WHERE ZSR_VSL = "VMY.
    16:16:21 8 AND ZSR_VOY = 14
    "16: 16:21 9 AND ZSR_DIR = S"
    16:16:21 10 AND ZSR_ID = ZBL_STRID
    16:16:21 11 AND ZBL_ID = ZRV_BLID
    16:16:21 12 AND ZRV_CODE = RVC_CODE
    16:16:21 13 AND ZCT_BLID = ZRV_BLID
    16:16:21 14 AND TO_CHAR (ZSR_LOADATE, 'yyyy') = '2012'.
    SELECT a.ZSR_OP ORIGIN_PORT, a.ZSR_LP LOAD_PORT, a.ZSR_TS DISC_PORT, a.ZSR_DP OF
    ST_PORT, a.ZSR_ACTUALPOL ACTUAL_PORT, to_char(ZSR_LOADATE,'dd/mm/yyyy') load_dat
    e, to_char(ZSR_ARRDATE,'dd/mm/yyyy') Arrival_date, b.ZBL_NUMBER BL_NO, ZBL_PACKC
    ODE | ' ' || ZBL_PACKSIZE Pack, SOC ZBL_SVC, QUANTITY, ZBL_WTN W_TON, B.ZBL_QNT
    ZBL_FWT R_TON, RTRIM (ZBL_FEEDVSL) | » '|| RTrim (ZBL_FEEDVOY) FEEDER, COD ZRV_CODE
    E, RVC_NAME CODE_NAME, ZRV_PC PREPAID_COLLECT, ZRV_CURRENCY CURRENCY, round (nvl)
    ZRV_LOCAL, 0) /decode (NVL(Zbl_netqnt,0), 0, 2) AVERAGE, ZR (Zbl_fwt, 1), Zbl_netqnt), NVL
    V_LOCAL LOCAL_AMT, ZRV_USD USD_AMT, PAY_PORT, ZRV_GLVERSION_SAP SAP ZRV_GLVERSI
    ON_11I GL11 ZBL_NOTE NOTE, CONTAINER ZCT_NUMBER, SIZE ZCT_SIZE, ZCT_WTN WEIGHT,
    ZCT_FTN FREIGHT_WEIGHT








    *
    ERROR on line 1:
    ORA-00923: THE KEYWORD not found where expected

    Concerning

    The size is a reserved - word try changing this alias to another thing.

  • java.sql.SQLException: ORA-00923: KEYWORD not found where expected

    Hi all

    I wrote a stored procedure where I variables defined for selectColumn, fromClause and whereClause and I'm paasing to another procedure.
    But, while running, I get an error:

    "java.sql.SQLException: ORA-00923: KEYWORD not found where expected.


    XL_SPG_GetPagingSql (strColumnList,
    strFromClause,
    strWhereClause,
    strOrderByClause,
    intSortDirection_in,
    intStartRow_in,
    intPageSize_in,
    select_stmt);

    Please advice

    I think so.

    You will want to ensure that columns used in ORDER BY are listed in the SELECT statement since you use SEPARATE.

  • Error ORA-00923. No idea why

    I have googled and looked for a reason why this error pops up without success that solves my problem.

    I am trying to export a query in a csv file from my database that works very well. The problem comes when I try to add 2 columns in the query and export those as well for organization purposes. The new query works well with a perfect output, but when I try to export I get ORA-00923 error.

    SELECT fcp.concurrent_program_name AS SHORTNAME,
    FCP.user_concurrent_program_name AS NAMER,
    FCP. Description AS DESCRIPTION,
    FCP.output_file_type AS OUTPUTTYPE,


    SOURCEDB AS 'STAR',-these are the 2 lines than when adding to cause the next error when export
    "AS keywords - the query works fine, does not only export


    FA.application_short_name AS APPLICATIONSN
    OF the FCP fnd_concurrent_programs_vl
    JOIN fnd_application_vl fa WE fa.application_id = fcp.application_id
    WHERE fcp.execution_method_code = 'P '.


    More important information can be, as I said, that these 2 columns do not really exist in the table, but I use the application to create their right before exporting it.

    Thanks in advance.

    I think I have the answer:

    Get rid of the AS before the column alias.

    This causes the 923 error when exporting to a csv file:

    select dummy,
    'star' as blah
    from dual;
    

    It's not:

    select dummy,
    'star' blah
    from dual;
    

    It worked for me at least.

  • Merger clause retrieves ORA-00923 FROM keyword not found where expected

    Hello world

    I want to be able to update/insert records using the MERGE clause of each
    15 minutes, so I probe every segment of this code and its work, in
    fact the segment with the FUSION works perfect replacement the
    the variables vPMM_DATETIME and vEND_DATETIME for constants, but (and his)
    crazy me!) When I probe this huge query, I get the error:


    Error: ORA-00923: KEYWORD not found where expected
    ORA-06512: at line 63, batch 1 row 1, Col 1


    Line 63 is the MERGER IN OM_DB. CDRS_VALIDOS 'X', so what is
    happening? because each segment of code works if I have one tube
    one!, please help!
    DECLARE
        vPMM_DATETIME        TIMESTAMP(3);
        vMAX_PMM_DATETIME    TIMESTAMP(3);
        vEND_DATETIME        TIMESTAMP(3);
        v_rows_processed     INT;
        count_violated       INT;
    BEGIN
        dbms_output.enable(40000);
        dbms_output.put_line('Inicio de procedimiento: ' || TO_CHAR(sysdate, 'YYYY-MM-DD HH24:MI:SS'));
        
        -- Valida si existe informacion en la tabla de origen
        -- *****************************************************************************
        count_violated := 0;
        SELECT COUNT(START_TIME) INTO count_violated FROM OM_DB.CDRS_PRUEBA;
        IF (count_violated=0) THEN
            dbms_output.put_line('No hay informacion en la tabla de origen');
        ELSE
            SELECT TO_DATE(TO_CHAR(MIN(START_TIME),'YYYY-MM-DD HH24') || ':00:00','YYYY-MM-DD HH24:MI:SS') 
            INTO   vPMM_DATETIME 
            FROM   OM_DB.CDRS_PRUEBA;
    
            vEND_DATETIME := vPMM_DATETIME + 1/24;
    
            SELECT TO_DATE(TO_CHAR(MAX(START_TIME),'YYYY-MM-DD HH24') || ':59:59','YYYY-MM-DD HH24:MI:SS')
            INTO   vMAX_PMM_DATETIME 
            FROM   om_db.CDRS_PRUEBA;
    
            WHILE (vPMM_DATETIME <= vMAX_PMM_DATETIME) LOOP
                MERGE INTO OM_DB.CDRS_VALIDOS "X"
                USING (
                    SELECT 
                        DISTINCT(ESTADO) AS "ESTADO",
                        MUNICIPIO,
                        CALL_SOURCE_REGID,
                        SUM(EXITOSOS) AS "EXITOSOS",
                        SUM(NO_EXITOSOS) AS "NO_EXITOSOS",
                        SUM(NO_CONECT) AS "NO_CONECT",
                        PMM_DATETIME
                    FROM ( 
                        SELECT 
                            COALESCE(V_EXITOSOS.ESTADO, V_NO_EXITOSOS.ESTADO, V_NO_CONECT.ESTADO) AS "ESTADO",
                            COALESCE(V_EXITOSOS.MUNICIPIO, V_NO_EXITOSOS.MUNICIPIO, V_NO_CONECT.MUNICIPIO) AS "MUNICIPIO",
                            COALESCE(V_EXITOSOS.CALL_SOURCE_REGID, V_NO_EXITOSOS.CALL_SOURCE_REGID, V_NO_CONECT.CALL_SOURCE_REGID) AS "CALL_SOURCE_REGID",
                            COALESCE(V_EXITOSOS.EXITOSOS,0) AS "EXITOSOS",
                            COALESCE(V_NO_EXITOSOS.NO_EXITOSOS,0) AS "NO_EXITOSOS",
                            COALESCE(V_NO_CONECT.NO_CONECT,0) AS "NO_CONECT",
                            '2009-03-17 17:00:00' AS "PMM_DATETIME"
                        FROM 
                        (
                            SELECT 
                                DISTINCT(ESTADO) AS "ESTADO",
                                MUNICIPIO,
                                CALL_SOURCE_REGID,
                                COUNT(CALL_SOURCE_REGID) AS "EXITOSOS"
                            FROM (
                                SELECT 
                                    A.CALL_SOURCE_REGID,
                                    B.ESTADO,
                                    B.MUNICIPIO
                                FROM   OM_DB.CDRS_PRUEBA A, OM_DB.COFETEL B
                                WHERE  A.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
                                AND    TO_NUMBER(A.CALLED_PARTY_ON_DEST_PART3) between B.NIR_INICIAL AND B.NIR_FINAL
                                AND    A.CALL_DURATION_INT >= 5
                                AND    B.MODALIDAD IN ('CPP','FIJO','MPP')
                            ) 
                            GROUP BY 
                                ESTADO,
                                MUNICIPIO,
                                CALL_SOURCE_REGID
                        ) "V_EXITOSOS"
                        FULL OUTER JOIN  
                        (
                            SELECT 
                                DISTINCT(ESTADO) AS "ESTADO",
                                MUNICIPIO,
                                CALL_SOURCE_REGID,
                                COUNT(CALL_SOURCE_REGID) AS "NO_EXITOSOS"
                            FROM (
                                SELECT 
                                    C.CALL_SOURCE_REGID, 
                                    D.ESTADO,
                                    D.MUNICIPIO
                                FROM   OM_DB.CDRS_PRUEBA C, OM_DB.COFETEL D
                                WHERE  C.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
                                AND    TO_NUMBER(C.CALLED_PARTY_ON_DEST_PART3) between D.NIR_INICIAL AND D.NIR_FINAL
                                AND    C.CALL_DURATION_INT >= 1 AND C.CALL_DURATION_INT < 5
                                AND    D.MODALIDAD IN ('CPP','FIJO','MPP')
                            ) 
                            GROUP BY 
                                ESTADO,
                                MUNICIPIO,
                                CALL_SOURCE_REGID
                        ) "V_NO_EXITOSOS"
                        ON
                            V_EXITOSOS.ESTADO = V_NO_EXITOSOS.ESTADO
                            AND V_EXITOSOS.MUNICIPIO = V_NO_EXITOSOS.MUNICIPIO
                            AND V_EXITOSOS.CALL_SOURCE_REGID = V_NO_EXITOSOS.CALL_SOURCE_REGID
                        FULL OUTER JOIN
                        (
                            SELECT 
                                DISTINCT(ESTADO) AS "ESTADO",
                                MUNICIPIO,
                                CALL_SOURCE_REGID,
                                COUNT(CALL_SOURCE_REGID) AS "NO_CONECT"
                            FROM (
                                SELECT 
                                    C.CALL_SOURCE_REGID, 
                                    D.ESTADO,
                                    D.MUNICIPIO
                                FROM   OM_DB.CDRS_PRUEBA C, OM_DB.COFETEL D
                                WHERE  C.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
                                AND    TO_NUMBER(C.CALLED_PARTY_ON_DEST_PART3) between D.NIR_INICIAL AND D.NIR_FINAL
                                AND    C.CALL_DURATION_INT = 0
                                AND    D.MODALIDAD IN ('CPP','FIJO','MPP')
                            ) 
                            GROUP BY 
                                ESTADO,
                                MUNICIPIO,
                                CALL_SOURCE_REGID
                        ) "V_NO_CONECT"
                        ON
                            V_NO_CONECT.ESTADO = V_EXITOSOS.ESTADO
                            AND V_NO_CONECT.MUNICIPIO = V_EXITOSOS.MUNICIPIO
                            AND V_NO_CONECT.CALL_SOURCE_REGID = V_EXITOSOS.CALL_SOURCE_REGID
                    )
                    GROUP BY
                        PMM_DATETIME,
                        CALL_SOURCE_REGID,
                        ESTADO,
                        MUNICIPIO
                ) "Y" -- Cierra USING
                ON (
                    X.PMM_DATETIME          = Y.PMM_DATETIME
                    AND X.CALL_SOURCE_REGID = Y.CALL_SOURCE_REGID
                    AND X.ESTADO            = Y.ESTADO
                    AND X.MUNICIPIO         = Y.MUNICIPIO
                )
                WHEN MATCHED THEN UPDATE SET 
                    X.EXITOSOS    = X.EXITOSOS    + Y.EXITOSOS,
                    X.NO_EXITOSOS = X.NO_EXITOSOS + Y.NO_EXITOSOS,
                    X.NO_CONECT   = X.NO_CONECT   + Y.NO_CONECT
                WHEN NOT MATCHED THEN INSERT (X.ESTADO, X.MUNICIPIO, X.CALL_SOURCE_REGID, X.EXITOSOS, X.NO_EXITOSOS, X.NO_CONECT, X.PMM_DATETIME)
                    VALUES (Y.ESTADO, Y.MUNICIPIO, Y.CALL_SOURCE_REGID, Y.EXITOSOS, Y.NO_EXITOSOS, Y.NO_CONECT, Y.PMM_DATETIME);
                
                vPMM_DATETIME := vPMM_DATETIME + 1/24;
                vEND_DATETIME := vPMM_DATETIME + 1/24;
            END LOOP;
            COMMIT;
        END IF;
        
        dbms_output.put_line('Fin de procedimiento: ' || TO_CHAR(sysdate, 'YYYY-MM-DD HH24:MI:SS'));
    END;
    Published by: user6754713 on 22-Apr-2009 12:31

    The role of labour said in my previous post:

    perform merge every 15 minutes every day?

    You want to run your merge every 15 minutes a day or?

  • ORA-00923: keyword not found where expected

    I am moving a MS SQL to Oracle database and having some problems with the code below.


    SELECT TOP 5
    STAFF. PNAME AS PNAME,
    sum ("SALES_ORDER". "ITEMS_NET") AS SumSales "
    Of
    ("ACCOUNT_MANAGERS"INNER JOIN "SALES_ORDER" ON 'SALES_ORDER'." ACCOUNT_REF"="ACCOUNT_MANAGERS. " ("' INNER JOIN ACCOUNT_REF STAFF") ON "ACCOUNT_MANAGERS". PREF = STAFF. PREF
    WHERE
    "SALES_ORDER". "" ORDER_OR_QUOTE "="command ".
    GROUP BY
    STAFF. PNAME
    HAVING
    sum ("SALES_ORDER". "ITEMS_NET") > 5000 "

    whenever I run it I get the error ORA-00923: keyword not found where expected can help anyone?

    TOP 5 isn't a syntax valid oracle

  • Error ORA-00923

    I get the following errors to get the code in a manual and have no idea how fix them / why pl/sq is to give these errors:
    19/6 pl/sql: statement ignored
    20/7 ORA-00923: KEYWORD not found where expected
    35/6 19 / 6 pl/sql: statement ignored
    36/7 20 / 7 ORA-00923: KEYWORD not found where expected


    Please help, thanks :)

    ===============================
    create or replace package course_pkg AS
    type course_rec_typ IS RECORD
    (name, student.first_name%TYPE,
    student.last_name%type last_name,
    course_no course.course_no%type,
    Description course.description%type,
    section_no section.section_no%type
    );
    type course_cur is ref cursor return course_rec_typ;

    procedure get_course_list
    (p_student_id NUMBER,
    p_instructor_id NUMBER,
    course_list_cv IN OUT course_cur);
    end course_pkg;
    /
    create or replace package body course_pkg AS
    procedure get_course_list
    (p_student_id NUMBER,
    p_instructor_id NUMBER,
    course_list_cv IN OUT course_cur)
    is
    Start
    If p_student_id is null and p_instructor_id
    is null then
    Open the course_list_cv for
    Select 'Please choose a student -' first_name,
    'combination instructor' last_name,.
    Course_no NULL,
    Description NULL,
    Section_no NULL
    Double;
    elsif p_student_id is null then
    Open the course_list_cv for
    Select first_name s.first_name
    s.last_name last_name,
    c.course_no course_no,
    description of the c.Description,
    se.section_no section_no
    instructor, I, s student, section se, courses, e-registration

    where i.instructor_id = p_instructor_id
    and i.instructor_id = se.instructor_id
    and se.course_no = c.course_no
    AND e.student_id = s.student_id
    AND e.section_id = se.section_id
    order of c.course_no, se.section_no;

    elsif p_instructor_id is NULL then
    Open the course_list_cv for
    Select first_name i.first_name
    i.last_name last_name,
    c.course_no course_no,
    description of the c.Description,
    se.section_no section_no
    Instructor, I, s student, section se, courses, e-registration

    where s.student_id = p_student_id
    AND e.instructor_id = se.instructor_id
    and se.course_no = c.course_no
    and e.student_id = s.student_id
    and e.section_id = se.section_id

    order of c.course_no, se.section_no;

    END IF;
    END get_course_list;
    end course_pkg;

    /

    Published by: [email protected] on March 23, 2009 14:56
    Create OR Replace Package Body course_pkg As
    
       Procedure get_course_list(p_student_id    IN Number
                                ,p_instructor_id IN Number
                                ,course_list_cv  IN OUT course_cur )
       Is
       Begin
          If p_student_id Is Null AND p_instructor_id Is Null Then
             Open course_list_cv For
                SELECT 'PLease choose a student-' first_name
                     , 'instructor combination' last_name
                     , Null course_no
                     , Null description
                     , Null section_no
                  FROM dual;
          Elsif p_student_id Is Null Then
             Open course_list_cv For
                SELECT s.first_name  As first_name
                     , s.last_name   As last_name
                     , c.course_no   As course_no
                     , c.description As description
                     , se.section_no As section_no
                  FROM instructor i
                     , student    s
                     , section    se
                     , course     c
                     , enrollment e
                 WHERE i.instructor_id = p_instructor_id
                   AND i.instructor_id = se.instructor_id
                   AND se.course_no = c.course_no
                   AND e.student_id = s.student_id
                   AND e.section_id = se.section_id
                 Order BY c.course_no
                        , se.section_no;
          Elsif p_instructor_id Is Null Then
             Open course_list_cv For
                SELECT i.first_name  As first_name
                     , i.last_name   As last_name
                     , c.course_no   As course_no
                     , c.description As description
                     , se.section_no As section_no
                  FROM instructor i
                     , student    s
                     , section    se
                     , course     c
                     , enrollment e
                 WHERE s.student_id = p_student_id
                   AND i.instructor_id = se.instructor_id
                   AND se.course_no = c.course_no
                   AND e.student_id = s.student_id
                   AND e.section_id = se.section_id
                 Order BY c.course_no
                        , se.section_no;
          End If;
       End get_course_list;
    
    End course_pkg;
    /
    

    Kind regards

  • Deployment of mapping a error: duplicate database link exists

    Hello world

    If all goes well, it is a simple question. I have worked with OWB 10 g 2 for some time now without any problems. My project finished and I went to a different environment of OWB, always 10 gr 2 and now my mapping deployments are errors during deployment. Whenever I try to deploy the mapping, OWB also tries to create the database link, regardless because it already exists. It does not deploy the database link, but mapping deploys successfully, however. If I drop the database connection, and then to deploy a map there is no error but then if I deploy a second mapping back again (no surprise here).

    I tried to deploy the connector by assigning 'replace' and click on deploy. Which was fine, but according to, OWB, even though I just replaced the existing link DB, it has not yet see it was created. OWB always considered this connector as 'new '.

    Anyone know what I need to do for OWB to stop trying to deploy the DB link with each mapping? How can I tell him that the DB connection exists and that it is correct?

    Thank you!

    -Joe

    Hello

    I had the same question a few days ago... I'll tell you how I solved it.
    I think the real problem is that the link never gets marked as deployed => therefore, it is deployed with each mapping is to use it!
    You can even try to deploy it on its own and deploy process completes without error, but it is not marked as deployed...
    Why the link can't be marked as deployed? Whence the db_link?
    The link points to a location where you dragged a table (or any object) on your map.
    In my case, the location was first created and saved by another user before starting the development of a project (with a new user).
    I recorded the location with the original user and he scored again with my user that I could deploy and get marked accordingly.
    It is never apperead in my mapping deployments.

    Hope, I've been pretty clear... and useful!

    Joan.

  • How to deploy a mapping changed to production without GUI

    Hello

    I changed a mapping in the development that I would like to deploy to production. I have no connectivity to the center of design to production. So I need a command line for this option. I know that the plu OMB can be used for this. But do not know the details. Please share some examples of code to move a change in the development of QA and production using scripts.

    I'm on OWB 10.2.0.2. I have a module (rptmodule) and the schema of a target (rptdb)

    Thank you

    Bahri

    After some time, I ended up with some steps. Here it is in case it helps others.

    1 changes to the mapping using MAP Editor object

    2 export the changed in an MDL file mapping object

    -Navigate to the directory containing the executable file OMBplus.

    CD /owb/bin/unix

    -Launch OMBPlus and execute the following at the prompt of the OMB

    ./OMBPlus.sh

    OMBCONN /@::

    OMBCC "".

    OMBCC "".

    MDL_FILE OMBEXPORT '/TEST_EXPORT. MDL' LOGARITHM NATURAL OUTPUT of COMPONENTS ("MAPPING" "") PROJECT '' to '/TESTEXPORT. JOURNAL"

    3-import MDL to environment target

    -copy the file to a temporary location MDL

    -connect to the rest of the target

    CD /owb/bin/unix

    ./OMBPlus.sh

    OMBCONN /@::

    OMBCC "".

    OMBCC "".

    -Import of MDL

    MDL_FILE OMBIMPORT '/TEST_EXPORT. MDL' USE logarithm NATURAL of OUTPUT REPLACE_MODE to '/TEST_IMPORT. JOURNAL"

    4 - deploy in the target environment

    -create a tcl file say deploy_maps.tcl deployment as below

    OMBCONN /@[lindex $argv 0]:: [lindex $argv 1]

    OMBCC "".

    OMBCC "".

    OMBCONNECT CONTROL_CENTER

    TRANSIENT DEPLOYMENT_ACTION_PLAN OMBCREATE.

    'DEPLOY_PLAN '.

    ADD THE ACTION 'MAPPING_DEPLOY' SET VALUES OF PROPERTIES (OPERATION) ('CREATE').

    STANDARD MAPPING "".

    puts [OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN']

    OMBDROP DEPLOYMENT_ACTION_PLAN "DEPLOY_PLAN".

    OMBCOMMIT

    -Run the tcl as below

    ./OMBPlus.sh $deploy_maps.tcl '' ''.

  • Warehouse Builder problem (deploy - package - mapping)

    Hello

    I have a problem with OWB.

    We have both development and Test environments, and deploy us a mapping (including all objects) but when we generated the code we have a difference:

    Develpoment:

    CURSOR 'AGGREGATOR_c' IS
    SELECT 'AGGREGATOR '. ' ' CONTEO_RANGOS ' 'CONTEO_RANGOS '.
    + (SELECT COUNT ("AGG_INPUT". "RANGO_CD") "CONTEO_RANGOS" + "
    + (SELECT "TABLE_NAME". ' ' RANGO_CD ' 'RANGO_CD ' +.
    + "SCHEMA." "' TABLE_NAME ' 'TABLE_NAME ' +.
    + WHERE (EXISTS (SELECT 1 +))

    + FOR (SELECT MAX ("TABLE_NAME". "ACTUALIZACION_REGISTRO_DT") "FECHA_ACT_MAX" + "
    +                                                  FROM "SCHEMA"." TABLE_NAME' 'TABLE_NAME') 'AGGREGATOR_0 ' +.

    + WHERE ("AGGREGATOR_0". "" FECHA_ACT_MAX "="TABLE_NAME ". ("' ACTUALIZACION_REGISTRO_DT").

    +                                        )+
    +                              )+
    +                    )+
    + "AGG_INPUT") "AGGREGATOR." +

    Test:

    CURSOR 'AGGREGATOR_c' IS
    SELECT 'AGGREGATOR '. ' ' CONTEO_RANGOS ' 'CONTEO_RANGOS '.
    + (SELECT COUNT ("AGG_INPUT". "RANGO_CD") "CONTEO_RANGOS" + "
    + (SELECT "TABLE_NAME". ' ' RANGO_CD ' 'RANGO_CD ' +.
    + 'TABLE_NAME', 'TABLE_NAME ' +.
    + WHERE (IT EXISTS (SELECT 1 FROM (SELECT MAX ("TABLE_NAME".) "ACTUALIZACION_REGISTRO_DT") "FECHA_ACT_MAX" + "
    + 'TABLE_NAME', 'TABLE_NAME') 'AGGREGATOR_0 ' +.
    + WHERE ("AGGREGATOR_0". "" FECHA_ACT_MAX "="TABLE_NAME ". ("' ACTUALIZACION_REGISTRO_DT").

    +                                             )+
    +                                   )+

    +                         )+

    + "AGG_INPUT") "AGGREGATOR." +


    We have no idea how manufacturer warehouse set the schema of the table database...

    Any suggestion?

    Thank you!

    Kind regards
    Diego.

    OWB will not format shema.table_name use if the table is in the same module in that your mapping is. If you want to "" use this format that you define in the mapping setup--> tables--> and on the table, you set the SHEMA parameter. Now when you generate the code OWB does precede the table with schema name.

  • Deploy the mapping of sql loader

    Hello
    I have a problem with OWB when I try to start a mapping (sql loader) after deployment. The problem is that when I start the execution of the mapping, sql loader control file is created not under Unix (where I set the location of the file entry and control file), but in the pc with my client OWB. For this reason execution fails because it can't find the input file (that I put in the unix machine).
    Is there a configuration for the client or the server?

    Thank you

    start from unix machine

  • Deployment of mapping CT error: CCA-1103: could not check if CT BUILT_IN_CT

    Hi guys,.

    Any of you have seen this error: when you deploy a CT map...

    {0} CCA-1103: could not verify if CODETEMPLATE-BUILT_IN_CT-LCT_ORACLE_DBLINK has been deployed.



    I have a simple mapping: Oracle 10.1 to 11.2 DB environment. Using the model of DBLink to source and using the model CT ICT_ORACLE_INCR_UPD (also tried the different) for the intermediate table.

    (Being implemented in CDC focus on relaxation. Data will be directed to tables, which are intermediate Truncate/Insert)

    Hello

    It seems that your Control Center Agent is not ongoing, it must be started manually by executing a script unix/ccastart or win32\ccastart.bat depending on the platform. It's the agent that runs heterogeneous works and supports code patterns. There is a blog post from here that covers a part of the architectural components;

    http://blogs.Oracle.com/warehousebuilder/2009/09/owb_11gr2_architecture_overview.html

    See you soon
    David

Maybe you are looking for

  • Activity monitor close unexpectedly when running in the background on the left

    Recently upgraded to Mac OS Sierra and Activity Monitor to close unexpectedly when running back plan left (do not smoke and open the activity monitor window) to a blank desktop when you use an application in another office. Clean install I tried but

  • Where is the Google search box?

    For about a week, using Google UK as my home page, the search box and all the tabs for images etc. etc. disappeared.Even by typing in the address www.google.co.uk bar gives a blank page.Can someone help me to get Google back as it was or advise me? I

  • I have a DesignJet T1200ps

    I have a DesignJet T1200ps. A user has changed a toner cartridge and now the cover of toner is not going down. There are 2 speeds and the background machine seems to be stuck. Have you tried cycling power. Anyone know what might cause that to lock in

  • Windows 7 font size

    The font size of my Windows 7 is suddenly too big.  I went in the display area, and it is marked as being the smallest.  I have not changed resolution (always on the '' recommended '').  The toolbars at the top of pages, always look the same.  How ca

  • Exit the Application when you press ESC.

    Hi all I was wondering if someone could help me with my request. I develop an application that has several screens. When the user opens the application for the first time, a screen of terms and conditions on the screen and if the user accepts, the di