ORA-06550: Error in Oracle InterConnect DB Adapter

Hi,
We are facing a problem while inserting a row into
Oracle database using Oracle InterConnect DB Adapter.
All the required configuration information like AppViews,CommonViews,Events,Application etc have been
created and configured in iStudio.
At runtime, OracleDB Adapter bridge (subscription) gets
the message from the interconnect hub and throws the
following error, while trying to insert the details into
table.
Error: db_bridge_writer_1 could not write the message to
the database because of an application error (java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
) in the application stored procedure. Please check your stored procedure. (Em
ployee_Obj.NewEmployee:OAI/V1,OAI/V1,false,0
EMPNO: 1000.0
FULLNAME: aaaaaaaaa
MANAGERNAME: sss
DIVISIONNO: 19.0
) was not written to the database.
java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189).........
Following is the stored procedure that was defined in the
iStudio at the design time.
PROCEDURE sub_NewEmployee_OAI_V1(
EMPNO IN NUMBER,
FULLNAME IN LONG,
MANAGERNAME IN LONG,
DIVISIONNO IN NUMBER
AS
dummy NUMBER;
-- fill declarations here
BEGIN
-- fill code here
dummy:= 0;
'insert into employee values(EMPNO, FULLNAME,MANAGERNAME, DIVISIONNO)';
END sub_NewEmployee_OAI_V1;
What could be the reason for this error? Are we missing
something in the configuration?
Appreciate any pointers in solving this issue.
Thanks in advance,
Regards,
Murali.

Murali,
Where have you installed the Package EMPLOYEE_OBJ in your database?
It sounds like you've missed this vital step.
In iStudio...File > Export PL/SQL. Expand your subscribing Application (e.g. APPS) ... APPS > Subscribed Events, and highlight "Subscribe(EMPLOYEE_OBJ.NEWEMPLOYEE)". Press the "Browse" button, and select where you want to save the file. (e.g. d:\iStudio_Packages\XXOAI). The "XXOAI" prefix is added to the start of the created file.
A *.sql file will be created in the directory you specified (e.g. d:\iStudio_Packages\XXOAI_APPS_EMPLOYEE_OBJ.sql).
(Note: Ignore the empty "XXOAI_APPS_EMPLOYEE_OBJTypes.sql" file as you haven't created any new ones (i.e. NUMBER and LONG are standard))
Login to SQL*Plus now, as the same user specified in your DB Adapter.ini file (Hint: In adapter.ini, look for the entry "db_bridge_schema1_writer_username=[Your DB User]", e.g."db_bridge_schema1_writer_username=APPS.)
Execute the iStudio generated XXOAI_APPS_EMPLOYEE_OBJ.sql file.
You will now have the Package EMPLOYEE_OBJ created, together with a procedure SUB_NEWEMPLOYEE_OAI_V1.
You will notice that the DB Adapter (unless you've stopped it and cleared down any persistence files), will automatically find this new Package and Procedure, and will have updated your 'Employee' table. :-)
Hope this helps
Ian

Similar Messages

  • ORA-29701과 ORA-29702 ERROR의 원인과 조치방법(OGMS관련 ORACLE ERROR)

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    SCOPE
    Standard Edition 에서는 Real Application Clusters 기능이 10g(10.1.0) 이상 부터 지원이 됩니다.
    ORA-29701과 ORA-29702 ERROR의 원인과 조치 방법(OGMS 관련 Oracle ERROR)
    ======================================================================
    Explanation
    ORA-29701과 ORA-29702는 OGMS(Oracle Group Membership Services)에 문제가
    발생했을 때 Oracle에서 로그를 남기는 에러이다.
    1. OGMS란?
    OPS 운영 환경에서 노드 간의 통신을 위해 IDLM(Integrated Distributed Lock Manager)과
    다른 오라클 컴포넌트들은 OS의 Cluster Manager와 통신을 해야 한다.
    이 때에 인터페이스를 제공하여 주는 것이 바로 OGMS이다.
    GMS는 일련의 Application Programming Interface (API)들로 구성되어 있으며,
    OPS 컴포넌트들은 이 API들을 통해 Cluster Manager와 통신을 하게 된다.
    GMS는 클러스터의 운영 상태를 모니터하고, 클러스터와의 instance connection을
    관장하며, 메시지를 전달하는 역할을 담당한다.
    platform에 따라 GMS는 ogmsctl 프로그램을 사용해서 따로 기동을 시켜 주어야만
    하거나, opsctl 프로그램을 사용할 때 자동적으로 기동된다.
    2. Error 분석
    1) ORA-29701
    a. 오라클에서 GMS에 접속할 수 없을 경우 발생한다.
    이것은 Oracle이 startup 될 때, GMS가 실행되지 않고 있을 때 발생한다. 이와
    같은 경우에는 'ogmsctl status' 명령을 상용하여 GMS가 startup되었는지 확인
    하여야 한다.
    b. lmon( GMS client )이 communication file의 위치를 찾지 못할 경우 발생한다.
    기본적으로 사용하는 디렉토리인 /tmp/.ogms를 사용하지 않을 경우 GMS home이
    지정되어야 한다. OGMS home directory를 별도로 지정하여 사용할 경우에는
    init.ora 파라미터 파일에서 ogms_home 파라미터 값을 지정해 주어야 한다.
    c. 기타 발생 원인은 GMS에 틀린 internal function(skgxn)이 사용되거나
    GMS가 local request에 대한 서비스를 할 수 없거나 CM subsystem에 문제가 있을
    경우 등등이 있다.
    2) ORA-29702
    GMS 서비스에 예상치 못한 에러가 발생했을 경우 로그에 남게 된다. GMS가 실행
    중인지를 확인해 보고, 내부 에러로 인해 GMS가 스스로 shutdown 되었다면
    daemon file에 기록된 트레이스 정보를 살펴보아야 한다.
    Reference Documents
    none

  • ORA-06550:  ERROR:(((((((((((

    I did an application which is in http://www.oracle.com/technology/oramag/oracle/06-mar/o26browser.html .
    when ı did it in oracle database 10g express edition , it run but ı must show it to another people so I request a workspace from apex and then I did in it but this time it didnt run:(((( I did same things :( ı dont understand why it cant run and give error:(
    ORA-06550: line 6, column 22: PLS-00302: component 'QUESTION' must be declared ORA-06550: line 6, column 9: PL/SQL: Statement ignored ORA-06550: line 8, column 22: PLS-00302: component 'QUESTION' must be declared ORA-06550: line 8, column 9: PL/SQL: Statement ignored ORA-06550: line 10, column 22: PLS-00302: component 'QUESTION' must be declared ORA-06550: line 10, column 9: PL/SQL: Statement ignored ORA-06550: line 12, column 22: PLS-00302: component 'QUESTION' must be declared ORA-06550: line 12, column

    Apparently, DBMS_PICKLER is an undocumented internal package. From the context I geuus it's part of the Java implementation.
    I think the problem is likely to be in the Oracle 7 database. This version of Orcale supported neither Java nor arrays. Now it maybe that it's possible to do what you want in some other way (or indeed I may have the wrong end of the stick). So I think you'd better post soem more details - what it is you're trying to do and how you're going about it.
    Cheers, APC

  • Exception in running Oracle InterConnect Customised Adapter (i.e,FileBrige)

    Dear all,
    Again I am facing a problem in Cutomised adapter(FileBridge) which is provided in the cookbook of oracle interconnect 9.0.4(10g).
    when i run the adapter i got these exceptions:
    oracle.jms.AQjmsException: JMS-130: JMS queue cannot be multi-conumer enabled
    at oracle.jms.AQjmsError.throwEx(AQjmsError.java:267)
    at oracle.jms.AQjmsSession.getQueue(AQjmsSession.java:4510)
    at oracle.oai.agent.common.jms.Receiver.<init>(Receiver.java:71)
    at oracle.oai.agent.common.jms.JMSManager.subscribeQueue(JMSManager.java
    :754)
    at oracle.oai.agent.common.jms.JMSManager.resubscribe(JMSManager.java:69
    1)
    can ne body help me in this regards,
    Best Regards,

    This error might be caused by the fact that the hub database is built using a character set which is neither US7ASCII, nor WE8DEC, nor WE8ISO8859P1, nor UTF8.
    If this is true, then in your adapter start script and all the other relevant components, you will have to include the library $ORACLE_HOME/jdbc/lib/nls_charset12.zip or $ORACLE_HOME/jdbc/lib/nls_charset11.zip, as appropriate, in your CLASSPATH.
    If you have access to Metalink, you can check out Note 178994.1 for more details.
    Regards,
    Shub Lahiri
    Product Manager
    OracleAS Integration

  • ORA-06550 error while executing procedure

    HI Friends,
    I have written a proc for the below process.
    SP_Control (table)
    sno     campgn_id     campgn_typ     campgn_no     current_wave
    1     ET07001     ONB     ONB01     1
    2     ET07001     ONB     CNB01     1
    3     ET03053     IAL     IAL1A     A
    4     ET03053     IAL     IAL2A     A
    5     ET03053     IAL     IAL3A     A
    6     ET03053     IAL     IAL4A     A
    After calling the procedures with bellow parameters
    Get_next_campgn(‘ONB01’,’ONB’);
    Get_next_campgn(‘CNB01’,’ONB’);
    Get_next_campgn(‘IAL1A’,’IAL’);
    Get_next_campgn(‘IAL2A’,’IAL’);
    Get_next_campgn(‘IAL3A’,’IAL’);
    Get_next_campgn(‘IAL4A’,’IAL’);
    …………… it should update the table with below data.
    sno     campgn_id     campgn_typ     campgn_no     current_wave
    1     ET07001     ONB     ONB02     2
    2     ET07001     ONB     CNB02     2
    3     ET03053     IAL     IAL1B     B
    4     ET03053     IAL     IAL2B     B
    5     ET03053     IAL     IAL3B     B
    6     ET03053     IAL     IAL4B     B
    I have written a procedure like this and its compliled successfully.
    But throws error while executing like
    execute Get_next_campgn(‘ONB01’,’ONB’);
    create or replace procedure Get_next_campgn(p_campgn varchar2,p_type varchar2)
    as
    begin
    update SP_Control set campgn_no = substr(p_campgn,1,length(p_campgn)-1)||to_char(ascii(substr(p_campgn,-1,1))+1) ,
    curr_wave = to_char(ascii(curr_wave)+1)
    where campgn_type = p_type
    and campgn_no = p_campgn ;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end Get_next_campgn;
    Error::::
    Error starting at line 15 in command:
    execute Get_next_campgn(‘ONB01’,’ONB’)
    Error report:
    ORA-06550: line 1, column 24:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    ( ) - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table continue avg count current exists max min prior sql
    stddev sum variance execute multiset the both leading
    trailing forall merge year month day hour minute second
    timezone_hour timezone_minute timezone_region timezone_abbr
    time timestamp interval date
    <a string literal with character set specification>
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Please suggest....

    The procedure executed successfully for me.
    drop table sp_control;
    create table sp_control
      campgn_no varchar2(20),
      curr_wave varchar2(20),
      campgn_type varchar2(20)
    insert into sp_control values ('ONB01', '1', 'ONB');
    insert into sp_control values ('IAL1A', 'A', 'IAL');
    create or replace procedure Get_next_campgn(p_campgn varchar2,p_type varchar2)
    as
    begin
    update SP_Control set campgn_no = substr(p_campgn,1,length(p_campgn)-1)||to_char(ascii(substr(p_campgn,-1,1))+1) ,
    curr_wave = to_char(ascii(curr_wave)+1)
    where campgn_type = p_type
    and campgn_no = p_campgn ;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end Get_next_campgn;
    begin
      Get_next_campgn('ONB01','ONB');
    end;
    select * from sp_control;
    --Output as Follows:
    drop table sp_control succeeded.
    create table succeeded.
    1 rows inserted
    1 rows inserted
    procedure Get_next_campgn(p_campgn Compiled.
    anonymous block completed
    CAMPGN_NO            CURR_WAVE            CAMPGN_TYPE         
    ONB050               50                   ONB                 
    IAL1A                A                    IAL                 
    2 rows selectedJust a hunch, in the Procedure call
    execute Get_next_campgn(‘ONB01’,’ONB’);the "Single Quotes" does not appear correct. They were probably typed into some other editor.
    When executed as
    execute  Get_next_campgn(‘ONB01’,’ONB’);
    Error starting at line 1 in command:
    begin
      Get_next_campgn(‘ONB01’,’ONB’);
    end;
    Error report:
    ORA-06550: line 2, column 19:
    PLS-00103: Encountered the symbol "‘" when expecting one of the following:
       ( ) - + case mod new not null <an identifier>
       <a double-quoted delimited-identifier> <a bind variable>
       table continue avg count current exists max min prior sql
       stddev sum variance execute multiset the both leading
       trailing forall merge year month day hour minute second
       timezone_hour timezone_minute timezone_region timezone_abbr
       time timestamp interval date
       <a string literal with character set specification>
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:So, just replace them in any SQL editor and your Invoker block shall work properly.
    Regards,
    P.

  • Ora -06550 error while executing the mapping

    Hi,
    I am using owb client 11.2.0.3 . I have mapping map_emlap_src in this mapping i have import tables from different scehema and i have done one to one mapping on both the table .
    While executing the mapping i got the following error .
    ORA-06550: line 1, column 1082:
    PLS-00302: component 'MAP_EMLAP_SRC' must be declared
    ORA-06550: line 1, column 1062:
    PL/SQL: Statement ignored

    grant execute on owner_name.MAP_EMLAP_SRC to user_name;

  • ORA-00600 error in Oracle 10.1.0.5 database

    Hi All,
    Please help me to get rid of the below mentioned issue.
    I am supporting a Oracle 10.1.0.5 prod database. we are getting a below ora-600 error message
    ORA-00600: internal error code, arguments: [qerpxSlaveFetch1], [0], [], [], [], [], [], []
    I have searched in metalink and there it is stated as bug with the product.
    They adviced us to apply the Patch 3897688 or disable parallelism or Upgrade to the fixed release, 10gR2.
    The patch 3897688 is not for window platform. Upgrade to 10gR2 is not possible in near future.
    So please help me how to disable parallelism in 10g database.

    ok fine satish will ask our development team to try your suggestion.
    Can you please tell me whether the following init parameters we can use to disable parallelism?
    PARALLEL_AUTOMATIC_TUNING = FALSE
    PARALLEL_SERVER=FALSE (this alone will disable Parallel Execution)
    PARALLEL_MIN_SERVERS=0 (this is additional restriction)
    PARALLEL_MAX_SERVERS=0 (this is additional restriction)
    Regards,
    Aruna

  • Mapping with Match and Merge operater giving ORA-06550 error while deploy..

    Created a simplet mapping to source from Customer table to tstcustomer table thru' Match and Merge operator. The mapping validated successful but giving ORA-06550 line x column y error while deploying the mapping.
    It is a simple mapping consisting of source Customer table, Match and Merge operator, tstcustomer target table.
    Could anyone advise me on how to resolve this?

    The test mapping basically consists of :
    source table - sh.customers
    target table - tstcustomers (similar to sh.customers)
    Match-Merge operator.
    The mapping validation was successful but when attempt was made to deploy, its giving errors starting with ORA-06550.
    I saved the code and executed thru' SQL Plus and the error details are as follows:
    SQL> show errors;
    Errors for PACKAGE BODY MMTEST4:
    LINE/COL ERROR
    594/6 PL/SQL: Statement ignored
    594/37 PLS-00306: wrong number or types of arguments in call to 'RTRIM'
    601/6 PL/SQL: Statement ignored
    601/36 PLS-00306: wrong number or types of arguments in call to 'RTRIM'
    1017/655 PL/SQL: SQL Statement ignored
    30
    1020/27 PL/SQL: ORA-00942: table or view does not exist
    2163/6 PL/SQL: Statement ignored
    2163/43 PLS-00201: identifier 'CUSTOMERS_0_CUST_GENDER' must be declared
    2170/6 PL/SQL: Statement ignored
    LINE/COL ERROR
    2170/42 PLS-00201: identifier 'CUSTOMERS_0_COUNTRY_ID' must be declared
    2586/655 PL/SQL: SQL Statement ignored
    30
    2589/27 PL/SQL: ORA-00942: table or view does not exist
    SQL>
    For your info, the same mapping without Match-Merge Operator is getting deployed and executed successfully.
    But with Match-Merge operator, after setting Match bins, Match rules, Merge rules etc the mapping is validated successfully but errorring out while deployment.
    Pls advise on how to resolve this.
    I understand that the Match-Merge Operator gives Pl/Sql output from the documentation.
    thanks
    Naren.

  • Ora 600 and ora 7445 error in oracle 10g r2

    hi all,
    we are using Oracle 10g r2.
    os is windows 2003 server,
    ram is 4 gb.
    front end is java .
    we got a below mentioned errors.
    i got the RA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], [],
    and ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    and Error 0 in kwqmnpartition(), aborting txn errors.
    for aug 3 11.42.47 we got a ora 600 error after that through front end (java) users can't able to connect the database.the not able to executed the query session disconnected error.
    what is reason for theis error . how it will rectifiy.?
    pls advice.Below i attached the alret log message .
    Sun Aug 02 04:04:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:48:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:49:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:38:49 2009
    Thread 1 advanced to log sequence 1732
    Current log# 3 seq# 1732 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Sun Aug 02 07:44:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:45:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 22:00:26 2009
    Thread 1 advanced to log sequence 1733
    Current log# 1 seq# 1733 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG
    Mon Aug 03 07:08:15 2009
    Thread 1 advanced to log sequence 1734
    Current log# 2 seq# 1734 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG
    Mon Aug 03 09:28:23 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 09:30:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 11:42:47 2009
    Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc:
    ORA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], []
    Mon Aug 03 13:20:00 2009
    Thread 1 advanced to log sequence 1735
    Current log# 3 seq# 1735 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Mon Aug 03 16:07:07 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    Mon Aug 03 16:07:11 2009
    Process m000 died, see its trace file
    Mon Aug 03 16:07:11 2009
    ksvcreate: Process(m000) creation failed
    Mon Aug 03 16:08:37 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 16:10:40 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:25:05 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:27:11 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:32:19 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:33:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:52:08 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:54:09 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:05:33 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:09:02 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_5132.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C34126B] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Mon Aug 03 19:10:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn

    Hi reshumakur
    As this is your PRODUCTION system THEN_ The best help to offer in case of ORA-600, and ORA-7445 is to open SR with metalink. Submit with the SR the following
    1- Alert log
    2- Trace files (in ur case e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc: and e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:)
    3- Describe what was happening when you had these errors.
    Try to avoid free help when you have ORA-600 and ORA-07445. This errors could be becuase of BUGS. Oracle Support will know this from the call stack in the trace file.
    Then Do your best to patch 10.2.0.4 and the latest CPU patch.
    Good Luck

  • ORA-06550 Error when Assinging values in APEX

    Hi I am running this query it runs fine in SQL developer but when I put this in a string in APEX return me error where the case staement returning values, Could you please help me in this regard
    declare
    l_query varchar2(4000) := '' ;
    begin
    l_query := 'select
    a.TIMESHEET_ID, b.LAST_NAME || '', '' || b.FIRST_NAME NAME,
    to_char(a.DAY_START,'dd/mm/yyyy hh24:mi') DAY_START,
    to_char(a.DAY_END,'dd/mm/yyyy hh24:mi') DAY_END,
    a.BREAK_IN_HOURS, round(a.TOTAL_WORK_HOURS,2) TOTAL_WORK_HOURS,
    c.DESCRIPTION Timesheet_Status,
    nvl((select sum(x.duration_hours) from eba_timesheet_detail x where a.timesheet_id = x.timesheet_id) ,0) detail_hours,
    case when round(a.TOTAL_WORK_HOURS,2) != (nvl((select sum(x.duration_hours) from eba_timesheet_detail x where a.timesheet_id = x.timesheet_id) ,0))
    then 'YES' else 'NO'
    end as inconsistent
    from EBA_TIMESHEET_HDR a, EBA_TIMESHEET_USERS b, EBA_TIMESHEET_STATUS c
    where a.USER_ID = b.ID and a.TIMESHEET_STATUS_ID = c.ID ';

    Hi,
    The ORA-06550 is error points to the location in the PL/SQL where the syntax error
    occurred and it is followed by a more descriptive message of the compile-time error:So can you give us the entire error description...?
    Or try below given script
    DECLARE
       l_query   VARCHAR2 (4000) := '';
    BEGIN
       l_query :=
          'SELECT a.timesheet_id, b.last_name || '', '' || b.first_name NAME,
           TO_CHAR (a.day_start, ''dd/mm/yyyy hh24:mi'') day_start,
           TO_CHAR (a.day_end, ''dd/mm/yyyy hh24:mi'') day_end, a.break_in_hours,
           ROUND (a.total_work_hours, 2) total_work_hours,
           c.description timesheet_status,
           NVL ((SELECT SUM (x.duration_hours)
                   FROM eba_timesheet_detail x
                  WHERE a.timesheet_id = x.timesheet_id), 0) detail_hours,
           CASE
              WHEN ROUND (a.total_work_hours, 2) !=
                     (NVL ((SELECT SUM (x.duration_hours)
                              FROM eba_timesheet_detail x
                             WHERE a.timesheet_id = x.timesheet_id), 0)
                 THEN ''YES''
              ELSE ''NO''
           END AS inconsistent
      FROM eba_timesheet_hdr a, eba_timesheet_users b, eba_timesheet_status c
    WHERE a.user_id = b.ID AND a.timesheet_status_id = c.ID';
    END;*009*
    Edited by: 009 on Apr 8, 2010 9:28 PM

  • Oracle 9iAS -Oracle InterConnect  - FTP Adapter

    Hi there,
    Has any one worked with OracleInterConnect 4.1, FTP Adapter (Actional). ??
    I have problems in Publishing using the FTP adapter to the Hub. I am getting the following error,
    Thu Apr 18 13:08:59 GMT 2002: Initializing connection to the Repository...
    Thu Apr 18 13:09:01 GMT 2002: Connected to the Repository.
    Thu Apr 18 13:09:02 GMT 2002: E-JNI0004: A Java exception occurred:
    oracle.oai.agent.common.AgentRuntimeException: There is no OAI message for the Object that you are trying to send which satisfies all of the event map conditions.
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at oracle.oai.agent.adapter.sdk.AgentRuntimeException.<init>(AgentRuntimeException.java:63)
    at oracle.oai.agent.common.AgentRuntimeException.<init>(AgentRuntimeException.java:595)
    at oracle.oai.agent.client.AgentImpl.createMessageObject(AgentImpl.java:157)
    at com.actional.oai.Agent.Publish(Agent.java:204)
    Thu Apr 18 13:09:02 GMT 2002: Unknown exception
    Call to newEmployee@OAI://Employee
    Thu Apr 18 13:09:02 GMT 2002: Unknown exception
    Call to newEmployee@FTP://Employee
    Call to newEmployee@OAI://Employee

    Hi,
    We had the same problem. It was solved in our case when we specified the following:
    In your published (and also published) event you have to specify an 'Object Name' (in the second screen of the edit-window). This has to match with the name of the business object that belongs to this event.
    I found this very strange because to me it seemed that you allready specified this in the screen before.
    But anyway, this action helped us in overcoming the same error you got.
    (There is no OAI message for the Object that you are trying to send which satisfies all of the event map conditions. )
    Hope this helps,
    Mark

  • ORA-06550 error while executing Dynamic Sql

    EXECUTE IMMEDIATE 'BEGIN :out := ' || lv_formula || '; END;' using out RESULT ;
    here lv_formula:= ((capcost * rate / 100) + (ob + (ob * interestrate / 100)))
    lv_formula is varchar2(360);
    and capcost,rate,ob & interestrate are my column names . Here I m declaring variables same as these columns and datatype is number.
    I am not getting any compilation error. syntax is correct
    while executing this sql i m getting ora-06550.
    can any one help me for resolving this error.
    Thanks In Advance
    hoping for more respose

    Thanks Billy for your response,
    but i still didn't get my desired solution so i am pasting my whole plsql code here. so that u can get better picture.
    /* Formatted on 2010/11/22 15:23 (Formatter Plus v4.8.5) */
    PROCEDURE xb (
    l_refno IN VARCHAR2,
    l_billtyp IN VARCHAR2,
    infor IN VARCHAR2,
    aresult OUT NUMBER
    IS
    --A NUMBER:=10; B NUMBER :=5;
    lv_formula VARCHAR2 (270); --:=(A+B)*2+5;
    l_agtmnt VARCHAR2 (18);
    l_type VARCHAR2 (2);
    RESULT NUMBER;
    refno afxbrmst.refno%TYPE;
    billtyp afxbrmst.billtyp%TYPE;
    ob afxbrmst.ob%TYPE;-- := 45283;
    status afxbrmst.status%TYPE -- := 0;
    dueamt afxbrmst.dueamt%TYPE -- := 0;
    duedate afxbrmst.duedate%TYPE;
    frequency afxbrmst.frequency%TYPE;
    lastrevrate afxbrmst.lastrevrate%TYPE -- := 0;
    penaltyamt afxbrmst.penaltyamt%TYPE -- := 0;
    accounted afxbrmst.accounted%TYPE;
    lastbillraised afxbrmst.lastbillraised%TYPE;
    noofstaff afxbrmst.noofstaff%TYPE;
    items afxbrmst.items%TYPE;
    area afxbrmst.area%TYPE;
    LENGTH afxbrmst.LENGTH%TYPE -- := 0;
    interest afxbrmst.interest%TYPE -- := 0;
    capcost NUMBER; afxbrmst.capcost%TYPE; :=1;
    -- := 1509432;
    periodfrom afxbrrate.periodfrom%TYPE;
    periodto afxbrrate.preiodto%TYPE;
    rcsrate afxbrrate.rcsrate%TYPE -- := 0;
    length_area afxbrrate.length_area%TYPE;
    rate afxbrrate.rate%TYPE --:= 0;
    -- :=3;
    erate afxbrrate.erate%TYPE -- := 0;
    feamount afxbrrate.feamount%TYPE -- := 0;
    interestrate afxbrrate.interestrate%TYPE -- := 0;
    -- :=12;
    fiamount afxbrrate.fiamount%TYPE --:= 0;
    penaltyrate afxbrrate.penaltyrate%TYPE -- := 0;
    l_ob afxbrmst_test.ob%TYPE -- := 0;
    l_capcost afxbrmst.capcost%TYPE -- := 0;
    raise_application_trigger EXCEPTION;
    inti INTEGER;
    BEGIN
    --break;
    lv_formula :=
    TO_NUMBER ((capcost * rate / 100) + (ob + (ob * interestrate / 100)));
    --infor;
    l_agtmnt := l_refno;
    l_type := l_billtyp;
    BEGIN
    SELECT a.refno, a.billtyp, a.ob, a.status, a.dueamt, a.duedate,
    a.frequency, a.lastrevrate, a.penaltyamt, a.accounted,
    a.lastbillraised, a.noofstaff, a.items, a.area, a.LENGTH,
    a.interest, a.capcost
    INTO refno, billtyp, ob, status, dueamt, duedate,
    frequency, lastrevrate, penaltyamt, accounted,
    lastbillraised, noofstaff, items, area, LENGTH,
    interest, capcost
    FROM afxbrmst_test a
    WHERE billtyp = l_type AND refno = l_agtmnt;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    BEGIN
    SELECT b.periodfrom, b.preiodto, b.rcsrate, b.length_area, b.rate,
    b.erate, b.feamount, b.interestrate, b.fiamount, b.penaltyrate
    INTO periodfrom, periodto, rcsrate, length_area, rate,
    erate, feamount, interestrate, fiamount, penaltyrate
    FROM afxbrrate b
    WHERE billtype = l_type;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    EXECUTE IMMEDIATE 'BEGIN :out := ' || lv_formula || '; END;'
    USING OUT RESULT; --USING OUT RESULT;
    aresult := RESULT;
    END;
    -- Procedure
    here i m passing the parameter through my form builder and calling this procedure.
    can you tell me where i am making wrong
    Thanks again

  • ORA-06550 error help

    Hi Everyone,
    I am brand new to APEX. I have created an application and it ran fine until I got this error:
    ORA-06550: line 1, column 642: PL/SQL: ORA-00917: missing comma ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
    Will you please point me in the direction as to how I can resolve this error? Thank you.

    alter table tableName drop constraint constraintName ;
    You cannot drop an index being used to enforce uniqueness. You must drop the constraint - which will also drop the index. You also cannot drop a unique constraint being used as a reference of a foreign key. Adding the keyword CASCADE will allow you to get around that, but it will destroy the FK references.
    alter table tableName drop constraint constraintName CASCADE ;

  • ORA-24816 error with oracle 10 driver

    Friends,
    I am getting the following error with Oracle 10 driver while trying to insert data > 4k into a LONG column. The table also contains another column of type varchar2(4000). The code works perfectly fine with Oracle 9i driver.
    ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
    Kindly let me know if this is a programming error or a driver problem.
    Thanks,
    Vinay

    this driver you mentioned, is it the jdbc driver?
    ORA-24816:     Expanded non LONG bind data supplied after actual LONG or LOB column
    Cause:     A Bind value of length potentially > 4000 bytes follows binding for LOB or LONG.
    Action:     Re-order the binds so that the LONG bind or LOB binds are all at the end of the bind list.
    using this forum may be more efficient -> http://forums.oracle.com/forums/forum.jspa?forumID=99&start=0

  • Debug Oracle InterConnect AQ Adapter

    Hi All,
    I am using Oracle InterConnect 4.1 for integration of two applications.
    Any one of you know how to check/debug that the DTD that was imported through
    iStudio matches the AQ XML payload enqueued on the published queue.

    Sadeepa,
    Not sure if I understand your question.
    If you have a publishing system, and two or more subscribing systems to that mesage, then without using Content Based Routing, each of the target (subscribing) systems would get that message?
    In your message you could have a tag called <TARGET_SYSTEM>, and you can dynamically put the target adapter name in that field when you create the message.
    Then when you publish the message, use CBR routing rules to route the message to only one (or more than one if you like) target system.
    Is the "multiconsumer queue" the OAI Hub queue, or a queue on a target system?
    Yan

Maybe you are looking for