ORA-00911: invalid character error.

Hi all

I use ODI 11 g and Oracle 11 g.

I use the query in proc in ODI below. When the data in the table is inserted it says ORA-00911: invalid character error.
INSERT INTO SD_CAMP
SELECT DISTINCT CAMPGN_NO, PRODUCT, NULL.
CAMPG_NAM, trunc (sysdate), trunc (sysdate) + 182
OF SP_ODI_TEMP;

I also inserted the value also hard coded in ODI, but it still says the same error.
Values inserted INTO the SD_CAMP ("'SAS06', ' SBC", NULL, 'SB CUST FFT', TO_DATE('02-NOV-12','DD-MON-YY'),)
TO_DATE('03-MAY-13','DD-MON-YY'));

I ran this query in Oracle db but his works very well.

Any help how to solve this problem?

Thank you
Lony

Put it in two different stages.

Tags: Business Intelligence

Similar Questions

  • The AUDIT command in, oracle apex (version 4.2.5.00.08), error "ORA-00911: invalid character '.

    I am trying to run

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"

    in "SQL commands" on oracle-apex (version 4.2.5.00.08).

    I get the error message ' ORA-00911: invalid character '.

    Can someone tell me the solution for this?

    Apex environment we need to set the database AUDIT_TRAIL to TRUE for the control

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"  to work.

    By their Summit, to be able to change the setting of database AUDIT_TRAIL we have to log-in as a DBA from the link "SQL workshop--> utilities--> on the database.

  • Error trivial Drives Me Crazy - ORA-00911: invalid character - Oracle 10 g

    I have no idea where I was wrong. I get this ORA-00911: invalid character
    I looked at the excerpt from tons of times, but could not find a glitch. Code appear nested into a TOAD
    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,                                                     
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid _fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );

    Now, this will work:

    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid_fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    The error is here:

    CONSTRAINT roomasso_roomfid _fk
    

    Better formatting:

    CREATE TABLE RoomAssociates
    ( roomAssociatesID NUMBER(7), CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID),
      roomID           NUMBER(7)  CONSTRAINT roomasso_roomid_nn     NOT NULL,
                                  CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE,
      roomFacilityID   NUMBER(7)  CONSTRAINT roomasso_roomfid_nn NOT NULL,
                                  CONSTRAINT roomasso_roomfid_fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID),
      enSuitID         NUMBER(7)  CONSTRAINT roomasso_ensuitid_nn     NOT NULL,
                                  CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]

    Published by: Massimo Ruocchio, December 19, 2009 12:05 AM

  • ORA-00911: invalid character in SQL dynamic

    I think I need another set of eyes. I do not see the invalid character in this dynamically generated SQL statement:

    INSERT INTO source_arc
    select v.*, sysdate, 'archived'
    from source v
    where v.id IN  ( SELECT *
                             FROM TABLE( SELECT
                                    CAST(str2tbl( 1,2,4 )
                                                 AS myTableType
                                       )
                                         FROM
                                              dual ));
    

    Here is the complete configuration:

    create or replace type myTableType as table of number;
    /
    
    
    create or replace function str2tbl( p_str in varchar2 ) return myTableType
     as
         l_str   varchar2(32767) default p_str || ',';
         l_n        number;
         l_data    myTableType := myTabletype();
     begin
         loop
             l_n := instr( l_str, ',' );
             exit when (nvl(l_n,0) = 0);
             l_data.extend;
             l_data( l_data.count ) := trim(substr(l_str,1,l_n-1));
             l_str := substr( l_str, l_n+1 );
         end loop;
         return l_data;
     end str2tbl;
     /
    
     create table source
     ( id   number
      ,txt  varchar2(25)
     )
     /
    
     insert into source
     values(1,'aaa')
     /
    
     insert into source
     values(2,'bbb')
     /
    
     insert into source
     values(3,'ccc')
     /
    
     insert into source
     values(4,'ddd')
     /
    
     insert into source
     values(5,'eee')
     /
    
     commit ;
    
     create table source_arc
     ( id  number
      ,txt varchar2(25)
      ,dt  date
      ,comments varchar2(512)
     )
     /
    

    )

    /

    Here is the result when I run this code:

    DECLARE
       i_owner_tbl_arc varchar2(61) := 'source_arc';
       i_owner_tbl     varchar2(61) := 'source' ;
       v_qry       varchar2(32767) := 'INSERT INTO ' ||  i_owner_tbl_arc ;
       g_content_list varchar2(32767) := '1,2,4';
    BEGIN
       v_qry := v_qry || chr(10) ||
           'select v.*, sysdate, ''archived'' ' || chr(10) ||
           'from ' || i_owner_tbl || ' v '      || chr(10) ||
           'where v.id IN  ( SELECT * ' || chr(10) ||
           '                         FROM TABLE( SELECT ' || chr(10) ||
           '                                          CAST(str2tbl( ' || g_content_list || ' ) ' || chr(10) ||
           '                                             AS myTableType ' || chr(10) ||
           '                                   ) ' || chr(10) ||
           '                                     FROM dual ));';
           
           execute immediate v_qry;
    END ;
    /
    ERROR at line 1:
    ORA-00911: invalid character
    ORA-06512: at line 17
    

    Any help appreciated.

    Remove the semicolon at the end of the string and put single quotes while calling the function.

    Try the below

    DECLARE

    i_owner_tbl_arc varchar2 (61): = "source_arc";

    i_owner_tbl varchar2 (61): = 'source ';

    v_qry varchar2 (32767): = 'INSERT INTO ' |  i_owner_tbl_arc;

    g_content_list varchar2 (32767): = '1,2,4';

    BEGIN

    v_qry: = v_qry | Chr (10) |

    "select v.*, sysdate,"archived"| Chr (10) |

    'from ' | i_owner_tbl | ' v '      || Chr (10) |

    «where v.id IN (SELECT * ' |)» Chr (10) |

    ' TABLE (SELECT ' |) Chr (10) |

    "CAST (str2tbl ("' |)) ". g_content_list | ''' ) ' || Chr (10) |

    '                                             AS myTableType ' || Chr (10) |

    '                                   ) ' || Chr (10) |

    '                                     FROM dual ))';

    immediately run v_qry;

    END;

  • 911: 42000: java.sql.SQLException: ORA-00911: invalid character

    Hi all

    I am trying to load the data in the 1 table to another using ODI 10 g. My approach is error ed out in step 3 - load data showing the exception below
    911 : 42000 : java.sql.SQLException: ORA-00911: invalid character
    
    java.sql.SQLException: ORA-00911: invalid character
    
    
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
    
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
    
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
    
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
    
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
    
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
    
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    
         at com.sunopsis.dwg.cmd.e.k(e.java)
    
         at com.sunopsis.dwg.cmd.g.A(g.java)
    
         at com.sunopsis.dwg.cmd.e.run(e.java)
    
         at java.lang.Thread.run(Unknown Source)
    When I see the description of the sql that runs to the phase I see below
    select     
         _ACTIVITIES_V.ACTIVITY_ID        C1_ACTIVITY_ID,
         _ACTIVITIES_V.ATTRIBUTE15        C42_ATTRIBUTE15
    from     .COM_ACTIVITIES_V   _ACTIVITIES_V
    where     (1=1)
    OBV when this sql is tried of toad is giving the same error.

    Please advice what's not here


    thnks

    Hello

    In topology-> physical schema Manager, where you set the source of Oracle schema, you left the WORKING PATTERN as empty. Put a schema name in the scheme of work and this. will be preceded by the name of this schema

    Also, for better visibility, you change the table alias name in the interface of
    ACTIVITIESV
    TO
    ACTIVITIES_V

    Thank you
    Fati

  • ORA-00911: invalid character in DBMS_SQLTUNE. REPORT_TUNING_TASK 11.2.0.1

    DECLARE
     my_task_name VARCHAR2(30);
     my_sqltext   CLOB;
    BEGIN
     my_sqltext := 'select l.cp_name, (select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '|| 
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''committed'' and e.mop_id=l.id) as Committed, '||
    '(select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''published'' and e.mop_id=l.id) as Published, '||
    '(select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''quarantined'' and e.mop_id=l.id) as Quarantined, '||
    '(select count(distinct e.youview_id)  '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''expiredFromQuarantine'' and e.mop_id=l.id) as Expired, '||
    '(select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''failed'' and e.mop_id=l.id) as Failed, '||
    '(select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id  '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''valid'' and e.mop_id=l.id) as Valid, '||
    '(select count(distinct e.youview_id) '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and s.status=''invalid'' and e.mop_id=l.id) as Invalid, '||
    '(select count(distinct e.youview_id)  '||
    'from mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id '||
    'where e.date_created < TO_TIMESTAMP_TZ(''15-MAY-2011 23.59.59.000000000 +00:00'',''DD/MM/YYYY HH24:MI:SS.FF TZH:TZM'') '||
    'and e.mop_id=l.id) as Total '||
    'from mips_mdm.mop_lookup l order by l.id;';
     my_task_name := DBMS_SQLTUNE.CREATE_TUNING_TASK(
             sql_text    => my_sqltext,
             user_name   => 'MIPS_MDM',
             scope       => 'COMPREHENSIVE',
             time_limit  => 60,
             task_name   => 'my_sql_tuning_taskMIPS4',
             description => 'Task to tune a query on a specified employee');
    END;
    /
    
    
    
    SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_taskMIPS4')
      FROM DUAL;
      
    
    GENERAL INFORMATION SECTION
    -------------------------------------------------------------------------------
    Tuning Task Name   : my_sql_tuning_taskMIPS4
    Tuning Task Owner  : DEPLOY_CTL
    Workload Type      : Single SQL Statement
    Scope              : COMPREHENSIVE
    Time Limit(seconds): 60
    Completion Status  : COMPLETED
    Started at         : 05/24/2011 10:31:59
    Completed at       : 05/24/2011 10:32:53
    
    -------------------------------------------------------------------------------
    Schema Name: MIPS_MDM
    SQL ID     : 9246fjyc01k83
    SQL Text   : select l.cp_name, (select count(distinct e.youview_id) from
                 mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on
                 e.youview_id = s.youview_id where e.date_created <
                 TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and
                 s.status='committed' and e.mop_id=l.id) as Committed, (select
                 count(distinct e.youview_id) from mips_mdm.entity_lookup e inner
                 join mips_mdm.tx_status s on e.youview_id = s.youview_id where
                 e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and
                 s.status='published' and e.mop_id=l.id) as Published, (select
                 count(distinct e.youview_id) from mips_mdm.entity_lookup e inner
                 join mips_mdm.tx_status s on e.youview_id = s.youview_id where
                 e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and
                 s.status='quarantined' and e.mop_id=l.id) as Quarantined,
                 (select count(distinct e.youview_id)  from
                 mips_mdm.entity_lookup e inner join mips_mdm.tx_status s on
                 e.youview_id = s.youview_id where e.date_created <
                 TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and
                 s.status='expiredFromQuarantine' and e.mop_id=l.id) as Expired,
                 (select count(distinct e.youview_id) from mips_mdm.entity_lookup
                 e inner join mips_mdm.tx_status s on e.youview_id = s.youview_id
                 where e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011
                 23.59.59.000000000 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM')
                 and s.status='failed' and e.mop_id=l.id) as Failed, (select
                 count(distinct e.youview_id) from mips_mdm.entity_lookup e inner
                 join mips_mdm.tx_status s on e.youview_id = s.youview_id  where
                 e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and s.status='valid'
                 and e.mop_id=l.id) as Valid, (select count(distinct
                 e.youview_id) from mips_mdm.entity_lookup e inner join
                 mips_mdm.tx_status s on e.youview_id = s.youview_id where
                 e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011 23.59.59.000000000
                 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM') and
                 s.status='invalid' and e.mop_id=l.id) as Invalid, (select
                 count(distinct e.youview_id)  from mips_mdm.entity_lookup e
                 inner join mips_mdm.tx_status s on e.youview_id = s.youview_id
                 where e.date_created < TO_TIMESTAMP_TZ('15-MAY-2011
                 23.59.59.000000000 +00:00','DD/MM/YYYY HH24:MI:SS.FF TZH:TZM')
                 and e.mop_id=l.id) as Total from mips_mdm.mop_lookup l order by
                 l.id;
    
    -------------------------------------------------------------------------------
    ERRORS SECTION
    -------------------------------------------------------------------------------
    - ORA-00911: invalid character
    
    -------------------------------------------------------------------------------
    Please can I know what is cauing this error to occur in SQL tunning games.

    Published by: BluShadow on May 24, 2011 11:13
    addition of {noformat}
    {noformat} tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    >
    "of mips_mdm.mop_lookup the order by l.id;"
    >

    Try to remove the semicolon ';' sql statement (quoted string) and re - run.

    Thank you

    REDA

  • ORA-00911: invalid character

    Hello world

    I create procedures in ODI so I could execute the PL/SQL code on my tables in ODI.

    I tested this stored procedure directly on SQL Developer and it works, but once I put in on a procedure ODI he does not work and gives me an ORA-00911

    So what I did, is that I took this same code and it has run on SQL Developer and it runs quite rightly!

    Any ideas? or sugestion? I really appreciate your time and your advice.

    Best regards.

    Parto of the SP (stored procedure) code:
    All the X are the ABC characters, so there just letters and vowels from A to Z.

    create or replace
    PROCEDURE MY_BEAUTIFUL_SP AS

    BEGIN

    XXXXXX XXXX XXX_X_XXX_2
    XXXXXX XXXX XX MOMO605,
    XXXXXXX_XX XX XXXX,
    XXX_XXX_XX XX XXXX,
    (XXX_XXXXX) XXX XX X_XXX_XXX_X,
    X_XXX_XXX_XXX_X XX XXXX,
    XXXXXXX_XXXX XX XXXXXXX,
    "XXX XXXXXXXXXXXX XXXXXXXXXXXX" XX XXX_XXX_XXXX
    XXX_X_XXX_XXX XXXX
    XXXXXXX XXXXXXX XXXXX
    (
    XXX_XXXXX XXX XXXXXXX XX
    (
    XXXXXXXXXX_XXXXX_XXXX XX 'XXXXXXXXX XXXXX + XXXX. "
    XXXXXXXXX_XXXXX XX 'XXXXXXXXX XXXXX. "
    XXXX XX "XXXX."
    XXXXXX_XXXXX XX "XXXXX."
    XXXXXXXX XX "XXXXXXXX"
    XXXXXXXX XX "XXXXXXXX"
    XXXXX XX "XXXXX."
    XXX_XXXXXXXXXXX XX 'XXX XXXXXXXXXXX. "
    XXXXXXXX XX "XXXXXXXX"
    XXX_XXXXXXX XX 'XXX_XXXXXXX. "
    XX XX "XX."
    XXXXXXXXXXXX XX "XXXXXXXXXXX",.
    XX XXX "XXX".
    )
    )
    XX_XX_XXX = "XXX XXXXXXXXXXXX XXXXXXXXXXXX" XXXXX
    XX XXXXX XXXXXXX, XX_XX_XXX;

    COMMIT;
    END MY_BEAUTIFUL_SP;

    Remove the ';' after VALIDATION and the END MY_BEAUTIFUL_SP

    Also, it is best to have your pl/sql code created at the level of the DB... i.e. of procedure/function and then in ODI you put him on the breast
    BEGIN

    and

    END;

    The main advantage, if in the future, you want to make some changes in the part of pl/sql, you can do it from DB and there is no need to generate ODI scenario

    Thank you
    Fati

  • Error: ORA-00911: invalid character. Where is the character?

    Hi all

    As I wrote in the topic, I wrote the following code but I get the above error.

    Could someone tell me where are the mistakes? Mainly because the console does not specify where it is.

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

    Select case when ((select EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN')) = 'IMASA.

    then ((select JORNADA_ANUAL

    of B_JORNADAS_Y_RATIOS

    where CATEGORY = (())

    Select the CATEGORY

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN '.

    ))

    and EMPRESA = (())

    Select the EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN '.

    ))

    and ANO = "2013"

    ))

    else 'no es UN empleado of the empresa"

    end case;


    like the Jornada

    of B_JORNADAS_Y_RATIOS

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

    Best regards

    Hello

    Is type data number JORNADA_ANUAL?


    then try to_char (JORNADA_ANUAL)

  • If I run my query in Oracle, it runs without error, but when I run inside c# gives ORA-00911: invalid character

    I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.

    myQuery =

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'INSTRUCTOR' and owner = "ERHAN"

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'INSTRUCTOR' and owner = "SARIGUL"

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    de)

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    using (OracleConnection conn1 = new OracleConnection (connectionString))

    {

    conn1. Open();

    Dim myQuery = "";

    using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)

    {

    richTextBox1.AppendText (output);

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());

    richTextBox1.AppendText (output);

    }

    }

    VR;

    myQuery=
    @"with src as
    (
    ...
    ";
    

    That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles

    as an example

    OracleCommand cmd = con.CreateCommand();
    cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;";
    cmd.ExecuteNonQuery();
    

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());                            

    is this correct? Not sure

    as example try

     using (OracleConnection conn1 = new OracleConnection(connectionString))
    {
        conn1.Open();
    
        string myQuery = "......";                  
    
        using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1))
            {
                richTextBox1.AppendText(Environment.NewLine);
                // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString());
    
    OracleDataReader reader = crtCommand.ExecuteReader();
    while (reader.Read())
      {
        richTextBox1.AppendText(reader.GetString(0));
        // may be also
        // richTextBox1.AppendText(Environment.NewLine);
      }
    
                richTextBox1.AppendText(Environment.NewLine);
    
            reader.Dispose();
            cmd.Dispose();
            }
    
        con.Dispose();
    }
    
  • Problem of data model ORA-00911: invalid character

    I am confronted with error when I run beep

    Help me


    < name of dataTemplate = "SrBysrtype" description = "ServiceRequestBySrtype" than one dataSourceRef = 'demo' defaultPackage = "BIP_DateRange" >
    < Parameters >
    < name of the parameter 'p_Fromsrdate' = 'char' dataType = / >
    < name of the parameter 'p_Tosrdate' = 'char' dataType = / >
    < / Parameter >
    < dataQuery >
    < SQLStatement instance name = "Q1" >
    <! [CDATA]
    SELECT
    incident. Incident_Number as ServiceRequestNumber,
    To_char (incident.incident_date,'DD-MON-YYYY "") as ServiceRequestDate,
    incident. Summary summary,
    agenttime. AgentName as Nom_agent,
    TO_CHAR (agenttime.agentstarttime,'DD-MM-YYYY HH24:MI:SS) as StartTime.
    TO_CHAR (to_date('00:00:00','HH24:mi:SS') +)
    (agenttime. EndTime - agenttime.agentstarttime), "HH24:MI:SS") as TimeSpent
    OF cs_incidents_all_b the incident cs_agenttime_agv agenttime, where & srwhereclause;]] >
    < / sqlStatement >
    < / dataQuery >
    < name dataTrigger = "beforeReport" source = "BIP_DateRange.BeforeReport ()" / >
    < dataStructure >
    < name of group = "G_SR" datatype = "varchar2" source = "Q1" >
    < element name = "Incident_Number" value = "ServiceRequestNumber" / >
    < element name = "Incident_date" value = "ServiceRequestDate" / >
    < element name = "Summary" value = "Summary" / >
    < element name = "nom_agent" value = "Nom_agent" / >
    < element name = "agentstarttime" value = "StartTime" / >
    < element name = "AgentDuration" value = "TimeSpent" / >
    < / Group >
    < / dataStructure >
    < / dataTemplate >





    create or replace
    package BIP_DateRange as

    srwhereclause varchar2 (1000): = ' ';
    p_Fromsrdate varchar2 (400);
    p_Tosrdate varchar2 (400);

    function BeforeReport return Boolean;

    end BIP_DateRange;




    create or replace
    package body BIP_DateRange as

    function boolean return BeforeReport is
    Start

    If p_Fromsrdate is not null then
    srwhereclause: = 'agenttime.incident_id = incident.incident_id | ' AND incident.incident_date between TO_DATE ('| p_Fromsrdate |', "DD-MON-YYYY")';
    end if;
    If p_Tosrdate is not null then
    srwhereclause: = srwhereclause | "AND TO_DATE ('| p_Tosrdate |',"DD-MON-YYYY")';
    end if;
    Returns true;
    end;

    end BIP_DateRange;




    help me I am new to BEEP with data model

    Hmm, can you send me an email to [email protected] please?

    I think that there are two different methods. In fact I have no test system for this here at the moment, so I can't try for me...

    Add two parameters to your package specifications:

    >
    create or replace
    package BIP_DateRange as

    srwhereclause varchar2 (1000): = '1 = 1';
    P_FROM varchar2 (400);
    p_to varchar2 (400);
    p_fromdate varchar2 (400);
    p_todate varchar2 (400);

    function beforereport (p_from varchar2, p_to in varchar2) return Boolean;

    end BIP_DateRange;

  • Please help: instruction box - ORA-01722: invalid number error

    Hi all
    I am trying to use the Case statement to recode the status canceled in two groups
    "Reject" If the difference between the date of the first and the last date is less than 29 and
    'Accept' if the difference between the date of the first and the last date is greater than 30

    Here's my data 'test'

    STATUS FIRST_DATE LAST_DATE

    Transfer / / 10/08/2011-10/09/2011
    Mover 10/08/2011-15/09/2011
    Cancel the 16/09/2011 10/08/2011
    Cancel the 10/08/2011 5/09/2011

    Here's the syntax

    Select a.*,
    (CASE WHEN a.STATUS = 'Cancel' CAN (round(a.LAST_DATE-a.FIRST_DATE))
    0 OTHERWISE
    END CAN_DAYS),
    (BOX WHEN "CAN_DAYS" > 29 THEN "reject"
    WHEN "CAN_DAYS" < 30 THEN "accept."
    Reject_Accept END)
    try one

    The first CASE statement works very well and gives me this
    STATUS FIRST_DATE LAST_DATE CAN_DAYS

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Cancel the 37 16/09/2011 10/08/2011
    Cancel the 26/10/08/2011 5/09/2011

    but the LATTER product ORA-01722: invalid number error. It's something to do with the type of data CAN_DAYS, Oracle does not see in the Numeric form I think.
    I want to see result
    STATUS FIRST_DATE LAST_DATE CAN_DAYS Reject_Accept

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Accept to cancel 37 10/08/2011-16/09/2011
    Refuse to cancel the 26/10/08/2011 5/09/2011

    Could someone please help me fix the syntax?
    Thank you in advance,

    Hello

    The error is due to the fact that you are trying to compare "CAN_DAYS", which cannot be regarded as a number, a number.
    You can try this option for your results:

    select A.STATUS, A.FIRST_DATE, A.LAST_DATE,case
                                                when a.status ='Cancel' then round(a.last_date - a.first_date)
                                                else 0
                                                end as can_days,
                                                case
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date) > 29) then 'Reject'
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date)< 30) then 'Accept'
                                                else null
                                                end as Accept_Reject
    from test a 
    
  • ORA-01722: invalid number error

    Hello Experts,

    I'm having a problem downloading a text file.

    It works ok for some files but for some files I get the following error

    ORA-01722: invalid number

    Anyone know what could be the reason of this please. Just tell me what you need more details.

    Thank you
    Kevin

    Hello
    OK now the image grows.
    So, you dynamically create the insert statement, replace the comma with nothing and then insert.
    The system from which you found the data file is this number of column type sales NET in this system or even stores characters.
    Assuming that the data type is a generic system remote here is the scenarios where it will fail

    select to_number(replace('23 ,380.00 ',',','') )  from dual -- not ok observe before comma
    select to_number(replace('a23,380.00 ',',','') )  from dual -- not ok
    select to_number(replace('23,380. 00 ',',','') )  from dual -- not ok observe space after decinal
    

    My Suggestion,
    take the file upload in a temporary table using sqlldr.
    Next moment, you have the incorrect records.
    Keep an eye on them.
    In addition, the use of external tables is an option where you can log records failed.

    Kind regards
    Bobin

  • An another ORA-01722: invalid number error

    Hi all
    I have 2 Validations on, 1 not Null and Not Exists, very standard.
    select fk_session_name_id
    from hrt_session
    where fk_session_name_id = :p9_fk_session_name_id
      and fk_class_id = :p9_fk_class_id;
    My question must be a Select list that returns the ID of the FK_SESSION_NAME_ID.
    select distinct SESSION_NAME display_value, PK_SESSION_NAME_ID return_value
    from HRT_SESSION_NAME
    order by 1
    My form Page up the error number ORA-01722 invalid only when I do a Select list item. If the item is a
    Value of text field and entry ID and you click on create data are saved, but not when it's a list of Select. I have read many things
    threads that talk about this point conversion to_number but I have not been successful in doing so. Once the element is
    There is a list of select validation not working, but not Validation Null fills the Error Message. Can anyone
    help me with this please? Thank you
    My FK_SESSION_NAME_ID and sessionname INTEGER data Type is VARCHAR2.
    SESSIONNAME data...
    SESSION 1
    SESSION 2
    EGR 1
    EGR 2
    BASIC WORD 2003...

    Published by: Charles on January 11, 2010 13:42

    Hello

    I changed validation FK.

    Now, it seems to work. Please check and let me know

    BR, Jari

  • error "invalid character" using the database link

    Hello!

    I use db 9.2 and trying to connect to a 10g database.
    I created the db link... when I use it (select * from table@dblink), an error occurred: ORA-00911 invalid character. It does not accept the '@'!

    I tried to use it on sql * plus, worked well...

    Any ideas?
    Thank you!

    Can you try to set America/America in preferences - Database - NLS?

    Hope that helps,
    K.

  • ORA-00911 during addition of comment in the SQL command.

    I work within the ORACLE Database Express Edition page "SQL Command".

    The following query works fine for me:

    SELECT *.
    CUSTOMERS

    As soon as I add comments, I get an error ORA-00911:

    -It is a comment.
    --
    SELECT *.
    CUSTOMERS

    ORA-00911: invalid character

    Hello

    Apex SQL worksheet don't like comments. What is reason you like add comments when you run the query?
    You can try

    SELECT *
    /*This is a comment.*/
    FROM CUSTOMERS
    

    Kind regards
    Jari

Maybe you are looking for

  • New iPad 9.7 Pro warped, bent, concave

    Just got my new iPad Pro 9.7 256 GB wifi only in space grey, noticed that it is slightly distorted/bent concave, I wonder if this is done by design to stabilize the camara bump when laying flat. Anyone else notice the same thing? do not know if I nee

  • Have my battery to change - Sat A40?

    Hello I have a portable Satellite A40, that I admit, almost my battery but more than a year when reached 20%, it very quickly becomes 3% in less than 5 sec and the portable switch to the standby state. Is it a problem in the software or the battery i

  • ThinkPad 8 - phone / SMS

    I have a SIM card installed. Is it possible to send SMS or even to make phone calls with the Thinkpad 8? So far I've only used the 'function of the internet' SIM card.

  • My drive external hard usb does not appear after login

    Hi could someone help because I bought a disc external hard usb and when I plug it in it does not appear on my laptop at all and ive tried troubleshooting and also right-click on computer in going on the management and also clicking on disk managemen

  • My fan turns a lot all of a sudden. Nothing has changed. Can't find any help on mine.

    Hello.  Use this laptop every day since the purchase.  Today fan started running and it will not stop.  It's never happened before.  I do not have a separate on it cooling fan but this is on a round stand which is raised 4 inches from the base.  Impo