Deffered Transaction queue tables

Hi,
By defualt in which table/s and tablespace deffred transactions are stored in Multimaster environment?
For brand new Installation how can I change that so deffred transactions will be stored in specified tablespace.
Thanks.

I think the error message is quite self explanatory, isn't it?
Use
DBMS_AQADM.DROP_QUEUE_TABLE(queue_table => '<QUEUE_TABLE>');
DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'<QUEUE_TABLE>',force => TRUE);to drop any queue tables of the user.
If the dictionary view "user_queue_tables"/"dba_queue_tables" doesn't show any queue tables left for that particular user you can use MetaLink notes 236898.1 and 203225.1 to follow the procedures there to get rid of any orphaned AQ Objects.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/

Similar Messages

  • DEFERRED TRANSACTION QUEUE의 내용을 지우는 여러가지 방법 (replication)

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    PURPOSE
    advanced replication 환경에서, 특정 master site나 updatable snapshot
    site은 다른 remote의 master site로 데이타를 propagation시키기 위해서
    해당 local site에 deferred transaction queue를 유지한다.
    remote site로 잘 전달된 데이타는 주기적으로 dbms_defer_sys.purge job에
    의해 deferred transaction queue인 DEFCALL에서 지워지게 되는데, 경우에
    따라 문제가 발생하면서 DEFCALL의 내용이 remote site로 전달이 안되면서
    계속해서 지워지지 않고 남게 될 수 있다.
    이러한 경우 다음 트랜잭션의 진행이나 전달에도 방해가 될 수 있어
    강제로 지우고자 하는 상황이 발생하는데 그러한 경우의 조치 방법에 대해서
    자세히 설명한다.
    SCOPE
    Advanced Replication Feature는 8~10g Standard Edition에서는 지원하지
    않는다.
    Explanation
    1. 특정 deferred transaction id를 지우는 경우
    기본적으로 deferred transaction queue에 쌓인 트랜잭션을 지우는
    방법은 다음과 같다.
    dbms_defer_sys.delete_tran(deferred_tran_id, destination)
    즉 다음 예와 같다.
    SQL>exec dbms_defer_sys.delete_tran('2.7.10', 'rep2.world');
    이때, 해당 destination에 대한 모든 트랜잭션인경우는 앞의 argument를
    null로 하고, 특정 transaction id에 대한 모든 destination에 대해서인
    경우는 뒷부분의 argument를 null로 한다.
    결국 저장된 모든 deferred transaction이라면, 다음과 같다.
    SQL>exec dbms_defer_sys.delete_tran(null,null);
    2. 특정 table에 관한 내용만 지우는 경우
    예를 들어 특정 table, 여기서는 DEPT table에 관한 사항을 DEFCALL에서
    지우고자 한다면 다음과 같이 조치하면 된다.
    SQL>connect repadmin/repadmin
    SQL>set pagesize 1000
    SQL>set head off
    SQL>spool purgedefcall.sql
    SQL>select 'exec dbms_defer_sys.delete_tran('''
    || deferred_tran_id || ''', null);'
    from defcall
    where packagename like 'DEPT%';
    SQL>spool off
    spool에 의해 만들어진 purgedefcall.sql을 깨끗하게 편집한 후 다시 save한다.
    SQL>connect repadmin/repadmin
    SQL>@purgedefcall.sql
    이때 만약 특정 site로의 전달만을 막고자 한다면, null대신 MS_B.WORLD와 같이
    해당 site를 가리키는 database link이름을 직접 지정하면 된다.
    3. 전체 queue의 내용을 모두 지우는 경우
    DEFCALL의 내용을 모두 지우는 경우라면 기본적으로는 앞에서 사용한
    DBMS_DEFER_SYS.DELETE_TRAN을 이용하면 된다.
    SQL>connect repadmin/repadmin
    SQL>exec dbms_defer_sys.delete_tran(null,null);
    DEFERROR의 내용을 모두 지우는 경우에는 DBMS_DEFER_SYS.DELETE_ERROR를
    사용한다.
    SQL>exec dbms_defer_sys.delete_error(null,null);
    그런데 이 delete_tran과 delete_error의 경우는 내부적으로 delete문장을
    사용하면서 undo record를 위해 rollback을 사용하면서 지워야 하는 데이타가
    매우 많은 경우 속도도 문제가 되고 rollback space오류도 발생 가능하다.
    이러한 경우에는 다음과 같이 truncate command를 이용하여 간단하고 빠르게
    deferred transaction queue의 내용을 정리할 수 있다.
    (1) Oracle7의 경우
    DEF$_CALL, DEF$_CALLDEST, DEF$_ERROR 를 모두 truncate시킨다.
    단 이때 DEF$_CALLDEST가 DEF$_CALL을 reference하는 constraint가 있는 관계로,
    DEF$_CALLDEST를 모두 truncate하여 데이타가 전혀 없는 상태에서도,
    DEF$_CALL이 truncate가 되지 않는다.
    delete operation의 경우 child table이 비어 있다면 master table의 데이타를
    지우는데 오류가 없지만, truncate의 경우는 데이타 확인 없이 바로 지우는
    것이기 때문에 child table에 데이타가 없다하더라도 그러한 check없이,
    무조건 자신을 reference하는 child table의 constraint가 enable되어 있는한은
    master table이 truncate가 불가능하게 된다.
    SQL>connect as system/password
    SQL>alter table system.DEF$_CALLDEST disable constraint
    DEF$_CALLDEST_CALL;
    SQL>truncate table system.DEF$_CALL;
    SQL>truncate table system.DEF$_CALLDEST;
    SQL>truncate table system.DEF$_ERROR;
    SQL>alter table system.DEF$_CALLDEST enable constraint DEF$_CALLDEST_CALL;
    (2) Oracle8의 경우
    Oracle8에서는 DEF$_CALLDEST가 더이상 DEF$_CALLDEST_CALL constraint를
    가지지 않으므로 이 부분에 대한 고려는 필요없이 다음과 같이 해당 table들을
    truncate시키면 된다.
    SQL>truncate table system.DEF$_AQCALL;
    SQL>truncate table system.DEF$_CALLDEST;
    SQL>truncate table system.DEF$_ERROR;
    SQL>truncate table system.DEF$_AQERROR;
    4. deferror의 내용을 지우는 방법
    deferred transaction이 remote로 전달되어 반영되다가 오류가 발생하면
    source가 되는 데이타베이스의 queue에서는 해당 내용이 사라지고,
    반영되던 destination 데이타베이스의 deferror와 defcall/deftran에
    해당 내용이 쌓이게 된다.
    이러한 경우 error의 내용을 다시 반영을 시도하거나 아니면 내용을
    확인 후 지우게 된다.
    다음과 같이 지우면 된다.
    SQL>exec dbms_defer_sys.delete_error(null,null);
    참고로 다시 수행하는 것은
    SQL>exec dbms_defer_sys.execute_error(null,null);
    Reference Documents
    <Note:190885.1> How to Clear Down the Deferred Queue and DBMS_DEFER_SYS.
    DELETE_TRAN

  • How to define a transaction queue in xmlgateway setup?

    Hi folks:
    I have made a sample in XMLgateway successfully. But that is using the OTA way, which I send the request use the Oracle Transport Agent with this link:http://[hostname]:[port]/webservices/ECXOTAInbound, and I can see the status in Transaction Monitor is successful. And From Oracle DB, I can see the message is enqueued the ecx_inqueue table(Inbound Message Queue) first, and then the workflow BES enqueues the message to the ecx_in_oag_q_table(inbound transaction queue) for XML gateway to process.
    And my question is: When I try to send the message rather by axis client than by the link http://[hostname]:[port]/webservices/ECXOTAInbound, there is no record for this message in Transaction Monitor. And from Oracle DB, I can see the message is enqueued the wf_ws_jms_in table(Inbound Message Queue) first, and then the message is not enqueued into ecx_in_oag_q_table(Inbound transaction queue). But a error message is insert into ecx_inbound_logs.
    So,What I want to ask for help are following:
    1.How can I define the transaction queue for trading partner's transaction?
    2.Is there another inbound transaction queue I can use for wf_ws_jms_in(Inbound Message Queue)?
    3.Is this transaction queue(ecx_in_oag_q_table) only receive the message from ecx_inqueue table(Inbound Message Queue)? If yes, what's the transaction queue receive the message from wf_ws_jms_in table(Inbound Message Queue), and How can I assign this transaction queue to my JMS and web service request trading partner?
    I really appreciate if anyone can help me to make such thing clear. Thanks very much.I'm always waitting...

    i have  a program in production system if i type the request and execute its sends a mail to my admin saying to transport the request to production system.....thats y??????
    just tell me ur idea.............

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Dropping the Hight Water Mark on a Queue table.

    What is the best technique for dropping the High Water Mark on a queue table?
    Will the dbms_aqadm.purge_queue_table procedure drop the high water mark (truncate the queue table) when purging all records from the queue?
    If not, is it supported to manually truncate the queue table? My guess is that this is ok if the queue is empty.
    Please advise on best strategies for maintaing performance of the queue following a period where the queue fills with a large number of transactions pushing the high water mark up.

    http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535349

  • Error while dropping/creating new queue table

    Hi,
    I am trying to modify an existing AQ setup. In the process, I had to remove a queue and redirect all its subscriptions to another queue.
    I get an oracle "sequence does not exist" while trying to drop the queue table. The sequence of operations that I am carrying out is:
    disable propagation schedule
    unschedule propagation
    stop queue
    drop queue
    drop queue table
    The error occurs when the drop statement is executed.
    I tried restoring the existing configuration, but got the same error message while trying to add a subscription.
    Could you help me with this problem? What am I missing here?
    Thanks,
    Anupama

    In what version of Oracle?
    I see a couple of problems assuming you are working with a currently supported version:
    1. Never grant CONNECT to anyone: Ever. Grant CREATE SESSION.
    2. GRANT CREATE TABLE to AQ;
    Go to Morgan's Library at www.psoug.org and look at AQ Demo 1. You should have no problem cutting and pasting your way to where you are trying to go.

  • Problem with Queue Table while dropping schema

    Hi,
    I want to DROP a schema, but it gives the following error while trying to drop it:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    From TOAD, I found that no queue or queue_table exists in the database presently.
    I'm using 10.2.0.2 RAC database.
    Can anyone help me to drop the schema?
    Thanks in advance..
    Regards,
    Anjan

    I have followed the doc 203225.1..
    Now getting the following error:
    ORA-00081: address range [0x60000000000A89A0, 0x60000000000A89A4) is not readable
    ORA-00600: internal error code, arguments: [kzdukl3], [24], [], [], [], [], [], []

  • Unable to drop queue table

    Hi,
    I have the streams admin user as "stradmin" and i have a queue table called "STREAMS_CAPTURE_QT"
    I am not able to drop the streams user because i am not able to drop the queue table.
    I tried the following.....
    begin
    DBMS_AQADM.DROP_QUEUE_TABLE(
    queue_table => 'STREAMS_CAPTURE_QT',
    force => TRUE);
    end;
    but i get below error....
    begin
    ERROR at line 1:
    ORA-04031: unable to allocate 112 bytes of shared memory ("streams
    pool","unknown object","streams pool","qulptr_kwqbscc")
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4102
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 2
    I checked my init.ora parameter file and i do have...
    *.aq_tm_processes=0
    *.shared_pool_size=500M
    *.streams_pool_size=16777216
    *.event='10298 trace name context forever, level 32'
    Can someone help me to drop the queue table as well as the streams admin user.
    Thanks in advance.

    Have you tried increasing the SGA size?

  • ORA-22913 while creating a QUEUE TABLE of a "Typed type"

    Hi guys:
    I'm trying to recreate an [AskTom's post|http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8760267539329], but with a single difference. My Oracle Type contains a field that is another Oracle Type and when I try to create a QUEUE_TABLE, I got the ORA-22913.
    Here are my steps:
    create or replace TYPE PODTL_TYPE AS OBJECT
    item varchar2(25),
    ref_item varchar2(25),
    physical_location_type varchar2(1),
    physical_location number(10),
    physical_qty_ordered number(12,4),
    unit_cost number(20,4),
    origin_country_id varchar2(3),
    supp_pack_size number(12,4),
    earliest_ship_date date,
    latest_ship_date date,
    pickup_loc varchar2(250),
    pickup_no varchar2(25),
    packing_method varchar2(6),
    round_lvl varchar2(6),
    door_ind varchar2(1),
    priority_level number(1),
    new_item varchar2(1),
    quarantine varchar2(1),
    rcvd_unit_qty number(12,4),
    tsf_po_link_id number(10),
    cost_source varchar2(4),
    est_in_stock_date date
    create or replace TYPE PODtl_coll as table of PODTL_TYPE;
    create or replace TYPE PODesc AS OBJECT
    doc_type varchar2(1),
    order_no varchar2(10),
    order_type varchar2(9),
    order_type_desc varchar2(250),
    dept number(4),
    dept_name varchar2(120),
    buyer number(4),
    buyer_name varchar2(120),
    supplier varchar2(10),
    promotion number(10),
    prom_desc varchar2(160),
    qc_ind varchar2(1),
    not_before_date date,
    not_after_date date,
    otb_eow_date date,
    earliest_ship_date date,
    latest_ship_date date,
    close_date date,
    terms varchar2(15),
    terms_code varchar2(50),
    freight_terms varchar2(30),
    cust_order varchar2(1),
    payment_method varchar2(6),
    payment_method_desc varchar2(40),
    backhaul_type varchar2(6),
    backhaul_type_desc varchar2(40),
    backhaul_allowance number(20,4),
    ship_method varchar2(6),
    ship_method_desc varchar2(40),
    purchase_type varchar2(6),
    purchase_type_desc varchar2(40),
    status varchar2(1),
    ship_pay_method varchar2(2),
    ship_pay_method_desc varchar2(40),
    fob_trans_res varchar2(2),
    fob_trans_res_code_desc varchar2(40),
    fob_trans_res_desc varchar2(250),
    fob_title_pass varchar2(2),
    fob_title_pass_code_desc varchar2(40),
    fob_title_pass_desc varchar2(250),
    vendor_order_no varchar2(15),
    exchange_rate number(20,10),
    factory varchar2(10),
    factory_desc varchar2(240),
    agent varchar2(10),
    agent_desc varchar2(240),
    discharge_port varchar2(5),
    discharge_port_desc varchar2(150),
    lading_port varchar2(5),
    lading_port_desc varchar2(150),
    bill_to_id varchar2(5),
    freight_contract_no varchar2(10),
    po_type varchar2(4),
    po_type_desc varchar2(120),
    pre_mark_ind varchar2(1),
    currency_code varchar2(3),
    contract_no number(6),
    pickup_loc varchar2(250),
    pickup_no varchar2(25),
    pickup_date date,
    app_datetime date,
    comment_desc varchar2(2000),
    PODtl PODtl_coll
    These are my 3 Oracle types. When I try to create the QUEUE TABLE:
    DBMS_AQADM.CREATE_QUEUE_TABLE(
    Queue_table => 'PODESC_QUEUE_TABLE',
    Queue_payload_type => 'PODesc',
    Multiple_consumers => TRUE);
    END;
    I got the following error:
    22913. 00000 - "must specify table name for nested table column or attribute"
    *Cause:    The storage clause is not specified for a nested table column
    or attribute.
    *Action:   Specify the nested table storage clause for the nested table
    column or attribute.
    How can I solve this?

    Here is the syntax used by Oracle in one of their internal tables.
    orabase> select dbms_metadata.get_ddl('TABLE', 'ORDERS_QUEUETABLE', 'IX') from dual;
    DBMS_METADATA.GET_DDL('TABLE','ORDERS_QUEUETABLE','IX')
      CREATE TABLE "IX"."ORDERS_QUEUETABLE"
       (    "Q_NAME" VARCHAR2(30),
            "MSGID" RAW(16),
            "CORRID" VARCHAR2(128),
            "PRIORITY" NUMBER,
            "STATE" NUMBER,
            "DELAY" TIMESTAMP (6),
            "EXPIRATION" NUMBER,
            "TIME_MANAGER_INFO" TIMESTAMP (6),
            "LOCAL_ORDER_NO" NUMBER,
            "CHAIN_NO" NUMBER,
            "CSCN" NUMBER,
            "DSCN" NUMBER,
            "ENQ_TIME" TIMESTAMP (6),
            "ENQ_UID" VARCHAR2(30),
            "ENQ_TID" VARCHAR2(30),
            "DEQ_TIME" TIMESTAMP (6),
            "DEQ_UID" VARCHAR2(30),
            "DEQ_TID" VARCHAR2(30),
            "RETRY_COUNT" NUMBER,
            "EXCEPTION_QSCHEMA" VARCHAR2(30),
            "EXCEPTION_QUEUE" VARCHAR2(30),
            "STEP_NO" NUMBER,
            "RECIPIENT_KEY" NUMBER,
            "DEQUEUE_MSGID" RAW(16),
            "SENDER_NAME" VARCHAR2(30),
            "SENDER_ADDRESS" VARCHAR2(1024),
            "SENDER_PROTOCOL" NUMBER,
            "USER_DATA" "IX"."ORDER_EVENT_TYP" ,   <---------------------- seems analogous to what you are trying to do
            "USER_PROP" "SYS"."ANYDATA" ,
             PRIMARY KEY ("MSGID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS NOLOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "EXAMPLE"  ENABLE
       ) USAGE QUEUE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "EXAMPLE"
    OPAQUE TYPE "USER_PROP" STORE AS BASICFILE LOB (
      ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
      CACHE
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))Spend some time looking in directories under $ORACLE_HOME and you may well find the DDL that built it.

  • Creating a new Queue table

    Hi All
    Does any one knows how to create a queue table in the tablespace of the Oracle 10g database?

    Hi
    I used the command
    begin
    sys.dbms_aqadm.create_queue_table(
    queue_table => 'JMS_ABC_QUEUETABLE',
    queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
    sort_list => 'PRIORITY, ENQ_TIME',
    compatible => '10.0.0',
    primary_instance => 0,
    secondary_instance => 0,
    storage_clause => 'tablespace system pctfree 10 initrans 1 maxtrans 255
    storage ( initial 64K minextents 1 maxextents unlimited )');
    end;
    and it shows
    ORA-01950: no privileges on tablespace 'SYSTEM'

  • Problems in creating Queue tables

    Hi I'm trying to create a Queue table. For that I'm creating a new Object, and then a table type of the same Object and then a Queue table of the payload type of the created table type, for which I'm getting an error. I'm using the following list of Queries:
    create or replace type CRM_TO_UMS_USR_DATA_TAB as object
    PROVISION_ID varchar2(25)
    PROVISION_DATE date
    ERROR_CODE varchar2(20)
    ERROR_MSG varchar2(50)
    STATUS char
    COMMENTS varchar2(50)
    Result => no Error
    create or replace type CRM_TO_UMS_USR_DATA_TYP as TABLE of CRM_TO_UMS_USR_DATA_TAB
    Result => no Error
    begin
    dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
    end;
    Result =>
    Error report:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2830
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 2
    00902. 00000 - "invalid datatype"
    I've given the following Grants for my schema user, for the purpose.
    Grant aq_administrator_role to siebel;
    GRANT EXECUTE ON dbms_aq TO siebel;
    GRANT RESOURCE TO siebel;
    GRANT CONNECT TO siebel;
    GRANT EXECUTE ANY PROCEDURE TO siebel;
    GRANT aq_administrator_role TO siebel;
    GRANT aq_user_role TO siebel;
    GRANT EXECUTE ON dbms_aqadm TO siebel;
    GRANT EXECUTE ON dbms_aqin TO siebel;
    Actually I've successfully created Queues with the above set of Queries in my other Development and UAT environments successfully, but when I'm trying to implement it with Prod I'm getting the Error. Anybody please help.
    Thanks & Regards,
    Srivathan, T.

    The type CRM_TO_UMS_USR_DATA_TAB is invalid because the syntax you're using is incorrect:
    SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
      2  (
      3  PROVISION_ID varchar2(25)
      4  PROVISION_DATE date
      5  ERROR_CODE varchar2(20)
      6  ERROR_MSG varchar2(50)
      7  STATUS char
      8  COMMENTS varchar2(50)
      9  );
    10  /
    Warning: Type created with compilation errors.
    SQL> begin
      2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
      3  end;
      4  /
    begin
    ERROR at line 1:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2822
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 2
    SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
      2  (
      3  PROVISION_ID varchar2(25),
      4  PROVISION_DATE date ,
      5  ERROR_CODE varchar2(20),
      6  ERROR_MSG varchar2(50),
      7  STATUS char(1),
      8  COMMENTS varchar2(50)
      9  );
    10  /
    Type created.
    SQL> begin
      2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
      3  end;
      4  /
    PL/SQL procedure successfully completed.Max
    http://oracleitalia.wordpress.com

  • Messages remain in Queue Table

    Hello,
    I work as a dba in a company where my colleagues are developing an application that uses AQ.
    The application is installed on multiple databases but we have a problem in a particular one:
    the processed messages are not deleted from table by Oracle.
    DBMS_AQADM.CREATE_QUEUE( Queue_name => 'my_AQ', Queue_table => 'AQT', Queue_type => 0, Max_retries => 65535, Retry_delay => 0, Retention_time => 2592000, dependency_tracking => FALSE);
    SELECT msg_state, count(*) FROM AQT GROUP BY msg_state;
    PROCESSED     830548
    SELECT min(enq_time),max(enq_time) FROM AQT
    07-OCT-10      01-AUG-12
    SELECT value FROM v$parameter WHERE name='aq_tm_processes'
    10
    thanks,

    Hi,
    I didn't notice this in your first post:
    DBMS_AQADM.CREATE_QUEUE(
        Queue_name => 'my_AQ',
        Queue_table => 'AQT',
        Queue_type => 0,
        Max_retries => 65535,
        Retry_delay => 0,
        Retention_time => 2592000,      <<<<<<<<<< why are you specifying such a high value for this?
        dependency_tracking => FALSE
    );Retention_time: See doc for this value: http://docs.oracle.com/cd/E11882_01/server.112/e11013/aq_admin.htm#i1006091
    This parameter specifies the number of seconds a message is retained in the queue table after being dequeued from the queue. When retention_time expires, messages are removed by the time manager process. INFINITE means the message is retained forever. The default is 0, no retention.
    You are asking for messages to be retained for 30 days, now looking at the min/max enq_time you have messages which are much older than this, but did you check when they were actually DQ'd (DEQ_TIME)?
    Also, from my previous post, did you check out that MOS note ? Did you check what the Q00 processes are doing in the database?
    Thanks
    Paul

  • Messages are in READY state in QUEUE TABLE but in AQ$ QUEUE TABLE messages are in PROCESSED State

    HI All,
       We create a brand new oracle multi-consumer queue. We have en-queued the messages into the queue and are processed successfully.
       But when we checked the STATE Column  of the messages in the queue table it was showing as "0". But it is showing as "PROCESSED" in the
       AQ$<QUEUE_TABLE> msg_state column.
      We are unable to figure out why there is a mismatch. Can any one help us ?
    Regards,
    Hari P.

    Hello,
    the column value AQ$<QUEUE_TABLE>.MSG_STATE = 'PROCESSED' corresponds to column value <QUEUE_TABLE>.STATE = 2
    (see definition of view AQ$<QUEUE_TABLE for the DECODE statement).
    In your case you see a value of STATE = 0 instead of STATE = 2. Is this correct ? The value 0 corresponds to a state "READY" (the delay
    is gone and the message is ready for dequeuing).
    The AQ documentation says: "After the specified delay, the message is in the READY state and available for dequeuing."
    Normally, you cannot see the processed data in your AQ because the enqueued data will be deleted after
    successful dequeuing. You wrote that they were processed successfully.
    Kind regards,
    WoG

  • Replace message payload object without remove queue table

    hi,
    i want to replace message payload object without remove queue table but i have got the "ORA-02303: cannot drop or replace a type with type or table dependents" error.
    is there any way to replace message payload object without remove queue table?
    Click to link below to find a demo which is explain the problem clearly
    Replace message payload object without remove queue table
    Regards.

    Hi
    I answered this in Re: Replace message payload object without remove queue table forum.
    Cheers, APC

  • Edit message payload object without remove queue table

    Hi, need ur help again,
    Known that if we want to modify a message payload attribute (add,edit or delete), we will fail to do so if the message payload is used by existing AQ's queue table.
    How to change the message payload object without remove the queue table?
    Thanks!

    Hi
    I answered this in Re: Replace message payload object without remove queue table forum.
    Cheers, APC

Maybe you are looking for

  • Wie deaktiviere ich die 32bit-Versionen innerhalb von Adobe Creative Cloud?

    Ich bin Crative Cloud Mitglied und habe die gesamte Adobe Software auf meinem ´64bit-Computer installiert. Ich möchte jetzt nur die automatisch mit installierten 32-bit-Versionen z.B. von Photoshop löschen. Reicht es, einfach diese 32bit-Version zu s

  • 5k iMac i7 3 tera fusion 4 gig video fusion drive won't reformat help

    MMy bto 5k shipped from China sunday night and arrived in Maine this morning.... Amazing when you think about it for a bto iinstallation and set up we're going fine and I started up boot camp assistant to crate a temp boot camp while I wait for my th

  • Distinct count inside a measure group with other measures

    Hello, I have 1 distinct count inside a measure group with other measures, sum, count etc. I know this is not recommended due to poor processing performance and query response time. Processing performance I can live with if it means not having anothe

  • Photos Sync Out Of Order

    Why are the photos I sync in a different order on my ipod than the folder? I don't have the shuffle option on for slideshow settings. I renamed all photos to make sure they were alphabetized. Anyone have any thoughts?

  • Error while runinning OWB map.

    Hi all, I have installed OWB 10G. I am trying to run a simple map to load data from EMP table scott schema to another table(emp_test) in test_tgt schema. No transformations or expressions used. But at the time of deploying I get following error. ORA-