AdtMessages Vs SYS.AQ$_JMS_OBJECT_MESSAGE

Hi
I had created a queue with payload=SYS.AQ$_JMS_OBJECT_MESSAGE.I need to query the user_data to query the payload as i have apply some rules.But this is stored as BLOB.if we use AdtMessages it is supposed to be stored as oracle object whose user_data can be queried.has anybody tried using an AdtMessages or tried out querying BLOB please let me know how to achieve this.
Regards
Raju

Can U please tell me what exactly you are looking for?? Are you trying to get the message body? If yes try this query first. If it works modify it according to your need.
select utl_raw.cast_to_varchar2(a.user_data.bytes_raw) from <Your Q Name> a;
Regards,
Sanjeev.

Similar Messages

  • How to consume message with queue payload type 'SYS.AQ$_JMS' in BPEL

    In oracle database
    1. created a queue table with multi consumer, queue_payload_type => 'SYS.AQ$_JMS_OBJECT_MESSAGE' .
    2. created a queue using this queue table.
    3. started the queue.
    4. From java class, published a message into this queue.
    Now when I try to access this queue from bpel using AQ adapters, not able to see the queue name. But if I try to consume from java, it is working fine.
    Please let me know how we need to access from bpel the messages that are not of xml type and are user defined objects.
    Thanks

    Hi
    Thank You for your information,
    I have seen that link which you have provided. Here they have given a example in which they are using Database messaging, i am working on memory/file based messaging.
    I am using default JMS Queue (jms/demoQueue) and default Connection Factory (jms/QueueConnectionFactory) which is provided by default in the server. With these i am trying to push message from process to the Queue.
    From other process i am trying to receive a message.
    For default Queue and Connection factory, i think we dont need to configure any of the xml files.
    Please try to use default Queue and Connection Factory to recevie a message from the Queue. Use two different process to develop this.
    Thank You
    Rgards
    Reddy

  • How to enqueue an AQ$_JMS_OBJECT_MESSAGE message to AQ

    I need to enqueue a message with type AQ$_JMS_OBJECT_MESSAGE to AQ.
    My AQ definition is like this:
    DBMS_AQADM.CREATE_QUEUE_TABLE (queue_table => l_queue_table,
    queue_payload_type => 'SYS.AQ$_JMS_OBJECT_MESSAGE',
    multiple_consumers => FALSE);
    DBMS_AQADM.CREATE_QUEUE (queue_name => l_queue,
    queue_table => l_queue_table);
    I have a type defined as
    create or replace type DataObject as object (
    dataString VARCHAR2(128)
    I tried to enqueue the message by doing the following:
    l_data := DataObject('Hello World from PL/SQL ');
    l_bytes_raw := utl_raw.cast_to_raw(l_data);
    l_bytes_len := length(l_bytes_raw);
    l_payload := sys.aq$_jms_object_message(l_header,l_bytes_len,l_bytes_raw,null);
    l_queue_options.visibility := DBMS_AQ.ON_COMMIT;
    l_queue_options.sequence_deviation := NULL;
    DBMS_AQ.ENQUEUE( queue_name => l_queue_name
    , enqueue_options => l_queue_options
    , message_properties => l_msg_props
    , payload => l_msg
    , msgid => l_msg_id);
    I tried to cast DataObject to Raw but I got error msg. I guess I can't do that. Can someone tell me how to fix it? Or is there any doc or code samples I can refer to?
    Thank you in advance.
    - Yang

    You defined your own object type so you need to cast your message to your data type ... not to raw. You would only cast to RAW if that was how you defined your message.
    Look at the demo here:
    http://www.morganslibrary.org/reference/aq_demo1.html
    Not how the message type "message_t" is defined and loaded.

  • Enqueue AQ$_JMS_OBJECT_MESSAGE via PLSQL to JMS and Dequeue via Bean

    Hi,
    I want to be able to enqueue on to AQ$_JMS_OBJECT_MESSAGE queue and the dequeue to via Java Bean.
    Unfortunately I am having problems dequeuing via the messege driven bean as it is not able to dequeue any of the messages enqueued via oracle SQL plus
    I am able to enqueue and dequeue via the bean. I am also able to enqueue and dequeue via oracle SQL plus and able to dequeue and messages enqueued via the Java bean . Hoever I am not able to enqueue via Oracle SQL plus and dequeue via Java bean
    I am thinking that I have not set sumthing properly but I have checked everything I know
    P.S. - I am still learning all about AQ, so if I have missed an obvious solution, please let me know.
    my code is quite simple - see below
    l_enqueue_options dbms_aq.enqueue_options_t;
    l_message_properties dbms_aq.message_properties_t;
    l_msg_id xxaq.xxaq_imran_qt.msgid%type;
    -- specifics for JMS Queues
    l_queue_name varchar2(30) := 'XXAQ.XXAQ_IMRAN_Q';
    l_payload SYS.AQ$_JMS_OBJECT_MESSAGE;
    l_header SYS.AQ$_JMS_HEADER;
    l_properties sys.AQ$_JMS_USERPROPARRAY;
    l_replyto sys.aq$_agent;
    l_data_items xxserror.xxsys_event_logs.data_items%type;
    l_messages xxserror.xxsys_event_logs.message%type;
    e_error exception;
    l_bytes_len number(38);
    l_bytes_raw raw(2000);
    begin
    l_properties := SYS.AQ$_JMS_USERPROPARRAY(
    SYS.AQ$_JMS_USERPROPERTY('JMS_OracleDeliveryMode'
    ,100
    ,'2'
    ,null
    ,27));
    l_properties.extend;
    l_properties(2) := SYS.AQ$_JMS_USERPROPERTY('APPLICATION_ID' -- name
    ,200 -- type
    ,null -- str_value
    ,p_app_id -- num_value
    ,24); -- java_type
    l_properties.extend;
    l_properties(3) := SYS.AQ$_JMS_USERPROPERTY('TRIGGER'
    ,100
    ,p_event_type
    ,null
    ,27);
    -- The replyto element seems to contain the following values
    l_replyto := sys.aq$_agent(' ', null, 0);
    l_header := sys.aq$_jms_header
    (l_replyto
    ,null
    ,'XXAQ' -- User
    ,null
    ,null
    ,null
    ,l_properties);
    -- Now build up the message.
    -- l_header.properties := l_properties;
    l_bytes_raw := utl_raw.cast_to_raw(p_app_id);
    l_bytes_len := length(l_bytes_raw);
    l_payload := sys.aq$_jms_object_message
    (l_header
    ,l_bytes_len
    ,l_bytes_raw
    ,null);
    dbms_aq.enqueue(queue_name => l_queue_name
    ,enqueue_options => l_enqueue_options
    ,message_properties => l_message_properties
    ,payload => l_payload -- payload + header
    ,msgid => l_msg_id);

    Hi, have you got the solution of the problem? I am encountering the same issue here too. Thank you!

  • Problem in publishing the messgae

    Hi,
    I am publishing the object in the AQ using JMS APIs.But it is
    throwing a JMS exception stating JMS-108: Messages of type
    ObjectMessage not allowed with Destinations containing payload
    of type SYSTEM.NEW_MESSAGE_TYPE.
    Can anybody suggest me where I am going wrong.
    I have created the payload/Queuetable as show below:
    CREATE TYPE new_message_type AS OBJECT
    (timestamp DATE,
    doc VARCHAR2(2000));
    begin
    DBMS_AQADM.CREATE_QUEUE_TABLE(
    queue_table =>'new_docs_table',
    multiple_consumers =>TRUE,
    queue_payload_type =>'new_message_type',
    compatible =>'8.1');
    end;
    And in the java code to publish is:
    AQjmsObjectMessage obj_message
    =AQjmsObjectMessage).createObjectMessage());
    DocMessage m_ncDoc = new DocMessage();
    String tempDoc = "hello all";     
    m_ncDoc.setDocument(tempDoc);
    m_ncDoc.setTimeStamp(new Date());
    obj_message.setObject(m_ncDoc);
    myPub.publish(tp,obj_message);     
    mySession.commit();

    Hi,
    The problem is that the queue type and the payload type do not
    match.
    You can do one of the following:
    1. If you wish to use a queue with
    user-defined ADT like SYSTEM.NEW_MESSAGE_TYPE, then you need to
    generate a java class that maps to this type using Jpublisher.
    I'm not sure if DocMessage was generated using Jpublisher. If
    not then you'll have to generate CustomDatum interfaces for
    NEW_MESSAGE_TYPE using Jpublisher. Check JDBC documentation on
    using Jpublisher
    Then you must use createAdtMessage instead of
    createObjectMessage. The rest of the code is fine.
    2. The other option is that you store a Serialized java object in
    the queue. For this you'll have to create the queue table with
    SYS.AQ$_JMS_OBJECT_MESSAGE. Then you can have your own Java
    class which implements Serializable. In this case you can use the
    code as is with createObjectMessage
    You can check aqjmsdemo04.java and aqjmsdemo06.java in
    $ORACLE_HOME/rdbms/demo for examples of both AdtMessage and
    ObjectMessage
    Hi,
    I am publishing the object in the AQ using JMS APIs.But it is
    throwing a JMS exception stating JMS-108: Messages of type
    ObjectMessage not allowed with Destinations containing payload
    of type SYSTEM.NEW_MESSAGE_TYPE.
    Can anybody suggest me where I am going wrong.
    I have created the payload/Queuetable as show below:
    CREATE TYPE new_message_type AS OBJECT
    (timestamp DATE,
    doc VARCHAR2(2000));
    begin
    DBMS_AQADM.CREATE_QUEUE_TABLE(
    queue_table =>'new_docs_table',
    multiple_consumers =>TRUE,
    queue_payload_type =>'new_message_type',
    compatible =>'8.1');
    end;
    And in the java code to publish is:
    AQjmsObjectMessage obj_message
    =AQjmsObjectMessage).createObjectMessage());
    DocMessage m_ncDoc = new DocMessage();
    String tempDoc = "hello all";     
    m_ncDoc.setDocument(tempDoc);
    m_ncDoc.setTimeStamp(new Date());
    obj_message.setObject(m_ncDoc);
    myPub.publish(tp,obj_message);     
    mySession.commit();

  • ORA-00060: Deadlock detected - any tips

    this is what is getting dumped in trc file.
    Any pointers where to look at to fix this?
    is this service impacting or oracle engine will self -fix this?
    /export/home/oracle/product/10.0.1/admin/ipunity/udump/ipunity_ora_13972.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /export/home/oracle/product/10.0.1
    System name:     SunOS
    Node name:     BLLWWAGOUM0
    Release:     5.9
    Version:     Generic_122300-09
    Machine:     sun4u
    Instance name: ipunity
    Redo thread mounted by this instance: 1
    Oracle process number: 93
    Unix process pid: 13972, image: oracleipunity@BLLWWAGOUM0
    *** SERVICE NAME:(SYS$USERS) 2009-12-21 18:04:45.050
    *** SESSION ID:(1002.2218) 2009-12-21 18:04:45.050
    DEADLOCK DETECTED
    Current SQL statement for this session:
    begin dbms_rule_adm.remove_rule(:1,:2,:3); end;
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    392d7fdb0 241 package body SYS.DBMS_RULE_ADM
    3904ccdc0 1 anonymous block
    39530db08 290 package body SYS.DBMS_AQADM_SYSCALLS
    393f311d8 1384 package body SYS.DBMS_PRVTAQIS
    397a4feb0 5393 package body SYS.DBMS_AQADM_SYS
    3967bef50 1 anonymous block
    397a7f7a0 85 package body SYS.DBMS_AQJMS_INTERNAL
    392f78488 1 anonymous block
    397a8b2a8 130 package body SYS.DBMS_AQJMS
    3977af648 1 anonymous block
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TM-00001054-00000000 93 1002 SSX 93 1002 S
    session 1002: DID 0001-005D-0000002B     session 1002: DID 0001-005D-0000002B
    Rows waited on:
    Session 1002: no row
    Information on the OTHER waiting sessions:
    End of information on OTHER waiting sessions.
    ===================================================
    PROCESS STATE
    Process global information:
    process: 39dd566c8, call: 39724bf18, xact: 39c79d270, curses: 39d509980, usrses: 39d4b37a8
    SO: 39dd566c8, type: 2, owner: 0, flag: INIT/-/-/0x00
    (process) Oracle pid=93, calls cur/top: 39724bf18/3972147b0, flag: (0) -
    int error: 0, call error: 0, sess error: 0, txn error 0
    (post info) last post received: 0 0 0
    last post received-location: No post
    last process to post me: none
    last post sent: 0 0 0
    last post sent-location: No post
    last process posted by me: none
    (latch info) wait_event=0 bits=10
    holding 380009f18 Parent+children enqueue hash chains level=4
    Location from where latch is held: ksqcmi: kslgpl:
    Context saved from call: 0
    state=busy, wlstate=free
    recovery area:
    Dump of memory from 0x000000039DD2BA50 to 0x000000039DD2BA70
    39DD2BA50 00000000 00000000 00000000 00000000 [................]
    Repeat 1 times
    Process Group: DEFAULT, pseudo proc: 39ded5e88
    O/S info: user: oracle, term: UNKNOWN, ospid: 13972
    OSD pid info: Unix process pid: 13972, image: oracleipunity@BLLWWAGOUM0
    SO: 39c09d4c0, type: 7, owner: 39dd566c8, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=9cb56808 incno=1 pending i/o cnt=0
    fname=/export/home/oracle/product/10.0.1/oradata/ipunity/sysaux01.dbf
    SO: 39c09c968, type: 7, owner: 39dd566c8, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=9cb560c0 incno=5 pending i/o cnt=0
    fname=/export/home/oracle/product/10.0.1/oradata/ipunity/system01.dbf
    SO: 39d4b37a8, type: 4, owner: 39dd566c8, flag: INIT/-/-/0x00
    (session) trans: 39c7277a0, creator: 39dd566c8, flag: (1100041) USR/- BSY/-/-/-/-/-
    DID: 0001-005D-0000002B, short-term DID: 0000-0000-00000000
    txn branch: 0
    oct: 47, prv: 0, sql: 3977ad170, psql: 397ac9da8, user: 0/SYS
    O/S info: user: , term: , ospid: 1234, machine: BLLWWAGOUM0
    program:
    last wait for 'enq: TM - contention' blocking sess=0x39d4b37a8 seq=111 wait_time=3000703
    name|mode=544d0004, object #=1054, table/partition=0
    Dumping Session Wait History
    for 'enq: TM - contention' count=1 wait_time=3000703
    name|mode=544d0004, object #=1054, table/partition=0
    for 'db file sequential read' count=1 wait_time=68442
    file#=1, block#=1dff, blocks=1
    for 'db file sequential read' count=1 wait_time=49075
    file#=1, block#=1e00, blocks=1
    for 'db file sequential read' count=1 wait_time=5476
    file#=1, block#=207e, blocks=1
    for 'db file sequential read' count=1 wait_time=6273
    file#=1, block#=1ec7, blocks=1
    for 'db file sequential read' count=1 wait_time=8668
    file#=1, block#=6154, blocks=1
    for 'db file sequential read' count=1 wait_time=4105
    file#=1, block#=e71, blocks=1
    for 'db file sequential read' count=1 wait_time=73
    file#=1, block#=2261, blocks=1
    for 'db file sequential read' count=1 wait_time=6809
    file#=1, block#=4287, blocks=1
    for 'db file sequential read' count=1 wait_time=89
    file#=1, block#=225a, blocks=1
    temporary object counter: 0
    SO: 391690a30, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=391690a30 handle=3936a0678 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=391690aa0[3979274e8,3979274e8] htb=3979274e8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10329
    LIBRARY OBJECT HANDLE: handle=3936a0678
    name=SYS.RULE_SET_ROR$
    hash=3c3c30a5f7695fbbfaa5e5d4802997b timestamp=02-27-2005 21:11:45
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=0000 hlc=0000
    lwt=3936a0720[3936a0720,3936a0720] ltm=3936a0730[3936a0730,3936a0730]
    pwt=3936a06e8[3936a06e8,3936a06e8] ptm=3936a06f8[3936a06f8,3936a06f8]
    ref=3936a0750[3936a0750, 3936a0750] lnd=3936a0768[397e4d030,397ef6178]
    LIBRARY OBJECT: object=397cf4cd0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 397ce88a0 397cf4dd0 I/-/A 0 NONE
    8 3945db758 39391ed30 I/-/A 0 NONE
    9 3923c96b8 394ed6cb8 I/-/A 0 NONE
    10 3923c9608 39152de98 I/-/A 0 NONE
    SO: 3957bb260, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=3957bb260 handle=393ee5ed0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=3957bb2d0[397927178,397927178] htb=397927178
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10315
    LIBRARY OBJECT HANDLE: handle=393ee5ed0
    name=SYS.RULE_SET_RE$
    hash=9b8c5c7258a03476b458d75da0b744 timestamp=02-27-2005 21:11:45
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=fffe hlc=fffe
    lwt=393ee5f78[393ee5f78,393ee5f78] ltm=393ee5f88[393ee5f88,393ee5f88]
    pwt=393ee5f40[393ee5f40,393ee5f40] ptm=393ee5f50[393ee5f50,393ee5f50]
    ref=393ee5fa8[393ee5fa8, 393ee5fa8] lnd=393ee5fc0[397ef6178,390d73fe8]
    LIBRARY OBJECT: object=392ea86b0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3942f92c8 392ea87b0 I/-/A 0 NONE
    8 3940b9ef8 39278d2f0 I/-/A 0 NONE
    9 393cfb8c8 39075dc50 I/-/A 0 NONE
    10 393cfb818 3920cce38 I/-/A 0 NONE
    SO: 397112000, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=397112000 handle=39427f390 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=397112070[397927388,397927388] htb=397927388
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10302
    LIBRARY OBJECT HANDLE: handle=39427f390
    name=SYS.RULE_SET_IOT$
    hash=549d91bdafdb0134b32869305db1e065 timestamp=02-27-2005 21:11:47
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=0000 hlc=0000
    lwt=39427f438[39427f438,39427f438] ltm=39427f448[39427f448,39427f448]
    pwt=39427f400[39427f400,39427f400] ptm=39427f410[39427f410,39427f410]
    ref=39427f468[39427f468, 39427f468] lnd=39427f480[390138140,394149640]
    LIBRARY OBJECT: object=395a89b68
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 395abce28 395a89c68 I/-/A 0 NONE
    8 39125f4a0 39470c980 I/-/A 0 NONE
    9 39125f690 39436e138 I/-/A 0 NONE
    10 39125f5e0 396a11108 I/-/A 0 NONE
    SO: 39726f0e0, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=39726f0e0 handle=396ea0750 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=39726f150[391567da8,3979277d8] htb=3979277d8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=396ea0750
    name=IPUNITY.UM_TOPIC_TABLE4
    hash=6bdf9dbc574f4f588386e09987e3feaa timestamp=05-26-2009 10:25:41
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0709-0709 lock=S pin=S latch#=1 hpc=0028 hlc=0028
    lwt=396ea07f8[396ea07f8,396ea07f8] ltm=396ea0808[396ea0808,396ea0808]
    pwt=396ea07c0[396ea07c0,396ea07c0] ptm=396ea07d0[396ea07d0,396ea07d0]
    ref=396ea0828[396ea0828, 396ea0828] lnd=396ea0840[396e86808,396f56d10]
    LIBRARY OBJECT: object=390d709f0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DEPENDENCIES: count=5 size=16
    ACCESSES: count=3 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 390d71760 390d70af0 I/P/A 0 NONE
    3 396977458 38fcf7640 I/-/A 0 NONE
    8 392ef1f00 397a79400 I/-/A 0 NONE
    9 392ef1fb0 3941dcea8 I/-/A 0 NONE
    10 3969773a8 392108258 I/-/A 0 NONE
    SO: 397a7b4e0, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=397a7b4e0 handle=397e6db28 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=397a7b550[397926da8,397926da8] htb=397926da8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e6db28
    name=SYS.ANYDATA
    hash=384f49311885621233e9a346965b3507 timestamp=02-27-2005 21:08:48
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0245-0247 lock=N pin=0 latch#=1 hpc=0716 hlc=0716
    lwt=397e6dbd0[397e6dbd0,397e6dbd0] ltm=397e6dbe0[397e6dbe0,397e6dbe0]
    pwt=397e6db98[397e6db98,397e6db98] ptm=397e6dba8[397e6dba8,397e6dba8]
    ref=397e6dc00[397e6dc00, 397e6dc00] lnd=397e6dc18[397e50100,397e67cc0]
    LIBRARY OBJECT: object=397e50230
    type=TYPE flags=EXS/LOC[0005] pflags=/PRP/REP [480] status=VALD load=0
    DEPENDENCIES: count=3 size=16
    ACCESSES: count=2 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 397e50518 397e50330 I/-/A 0 NONE
    1 39624bc10 0 I/P/- 0 NONE
    2 397e4fe00 391541228 I/-/A 0 NONE
    6 39624bb60 39624b6f8 I/-/A 0 NONE
    9 397e4feb0 3910ef020 I/-/A 0 NONE
    SO: 392bfd610, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=392bfd610 handle=397e4faf0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=392bfd680[3979270b8,3979270b8] htb=3979270b8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e4faf0
    name=SYS.ANYTYPE
    hash=b05d1295a53654e1dcb478f941a13838 timestamp=02-27-2005 21:08:47
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=ed9c hlc=ed9c
    lwt=397e4fb98[397e4fb98,397e4fb98] ltm=397e4fba8[397e4fba8,397e4fba8]
    pwt=397e4fb60[397e4fb60,397e4fb60] ptm=397e4fb70[397e4fb70,397e4fb70]
    ref=397e4fbc8[397e4fbc8, 397e4fbc8] lnd=397e4fbe0[397e080b0,397e50100]
    LIBRARY OBJECT: object=390631470
    type=TYPE flags=EXS/LOC[0005] pflags=/PRP [80] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3905f08d0 390631570 I/-/A 0 NONE
    SO: 390b09468, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=390b09468 handle=397e4a2f8 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=390b094d8[397927858,397927858] htb=397927858
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e4a2f8
    name=SYS.DBMS_ANYTYPE_LIB
    hash=6f82c536a56b2687e7d1daeeb24478b2 timestamp=02-27-2005 21:08:46
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=ed60 hlc=ed60
    lwt=397e4a3a0[397e4a3a0,397e4a3a0] ltm=397e4a3b0[397e4a3b0,397e4a3b0]
    pwt=397e4a368[397e4a368,397e4a368] ptm=397e4a378[397e4a378,397e4a378]
    ref=397e4a3d0[397e4a3d0, 397e4a3d0] lnd=397e4a3e8[38fc9b178,39138c420]
    LIBRARY OBJECT: object=39531e990
    type=LIBR flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 39531ec78 39531ea90 I/-/A 0 NONE
    SO: 392642188, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=392642188 handle=397e50010 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=3926421f8[39537cf40,397927978] htb=397927978
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e50010
    name=SYS.DBMS_ANYDATA_LIB
    hash=55042fc1ae23f6173df25b7968bfcc4 timestamp=02-27-2005 21:08:46
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=eb62 hlc=eb62
    lwt=397e500b8[397e500b8,397e500b8] ltm=397e500c8[397e500c8,397e500c8]
    pwt=397e50080[397e50080,397e50080] ptm=397e50090[397e50090,397e50090]
    ref=397e500e8[397e500e8, 397e500e8] lnd=397e50100[397e4fbe0,397e6dc18]
    LIBRARY OBJECT: object=391bf3b60
    type=LIBR flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 391f09880 391bf3c60 I/-/A 0 NONE
    SO: 390563a60, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=390563a60 handle=397e07dd0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=390563ad0[397927ab8,397927ab8] htb=397927ab8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e07dd0
    name=SYS.AQ$_JMS_USERPROPARRAY
    hash=a70e73cab1fd920f9e63f39f5fbebd8 timestamp=02-27-2005 21:13:53
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0045-0047 lock=N pin=0 latch#=1 hpc=fed2 hlc=fed2
    lwt=397e07e78[397e07e78,397e07e78] ltm=397e07e88[397e07e88,397e07e88]
    pwt=397e07e40[397e07e40,397e07e40] ptm=397e07e50[397e07e50,397e07e50]
    ref=397e07ea8[397e07ea8, 397e07ea8] lnd=397e07ec0[397e03a80,397e080b0]
    LIBRARY OBJECT: object=395350c08
    type=TYPE flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 395350ef0 395350d08 I/-/A 0 NONE
    1 390afc000 0 I/P/- 0 NONE
    2 397fcade8 396cf9620 I/-/A 0 NONE
    6 390afbf50 39532d1a0 I/-/A 0 NONE
    SO: 39727f708, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=39727f708 handle=397e07fc0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=39727f778[397d237c0,3979272f8] htb=3979272f8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e07fc0
    name=SYS.AQ$_JMS_OBJECT_MESSAGE
    hash=96e68e21404dbbaa13ddacc340547c5c timestamp=02-27-2005 21:13:56
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0247-0247 lock=S pin=S latch#=1 hpc=f426 hlc=f426
    lwt=397e08068[397e08068,397e08068] ltm=397e08078[397e08078,397e08078]
    pwt=397e08030[397e08030,397e08030] ptm=397e08040[397e08040,397e08040]
    ref=397e08098[397e08098, 397e08098] lnd=397e080b0[397e07ec0,397e4fbe0]
    LIBRARY OBJECT: object=3976daf60
    type=TYPE flags=EXS/LOC[0005] pflags=/SWR/PRP [88] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3976db248 3976db110 I/P/A 0 NONE
    1 3976dacc0 392a22528 I/-/A 0 NONE
    2 39764fe88 391a01aa0 I/-/A 0 NONE
    6 3976db088 3976da7d8 I/P/A 10 NONE
    9 39764ff38 3923f6bf0 I/-/A 0 NONE
    SO: 391b23120, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=391b23120 handle=398101738 mode=N
    call pin=3970e9e38 session pin=0 hpc=0000 hlc=0000
    htl=391b23190[396b732b0,397927cf8] htb=397927cf8
    user=39d4b37a8 session=39d509980 count=1 flags=[0000] savepoint=9224
    LIBRARY OBJECT HANDLE: handle=398101738
    name=SYS.IDGEN1$
    hash=4a498305388423085e384dc71920fc timestamp=02-27-2005 20:12:51
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=0002 hlc=0002
    lwt=3981017e0[3981017e0,3981017e0] ltm=3981017f0[3981017f0,3981017f0]
    pwt=3981017a8[3981017a8,3981017a8] ptm=3981017b8[3981017b8,3981017b8]
    ref=398101810[398101810, 398101810] lnd=398101828[398101828,398101828]
    LIBRARY OBJECT: object=39811abb0
    type=SQNC flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 398143620 39811acb0 I/-/A 0 NONE
    SO: 3979346d8, type: 55, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT PIN: pin=3979346d8 handle=3967e3a10 mode=S lock=0
    user=39d4b37a8 session=39d509980 count=1 mask=0041 savepoint=2950 flags=[00]
    ----------------------------------------

    this is what is getting dumped in trc file.
    Any pointers where to look at to fix this?
    is this service impacting or oracle engine will self -fix this?
    /export/home/oracle/product/10.0.1/admin/ipunity/udump/ipunity_ora_13972.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /export/home/oracle/product/10.0.1
    System name:     SunOS
    Node name:     BLLWWAGOUM0
    Release:     5.9
    Version:     Generic_122300-09
    Machine:     sun4u
    Instance name: ipunity
    Redo thread mounted by this instance: 1
    Oracle process number: 93
    Unix process pid: 13972, image: oracleipunity@BLLWWAGOUM0
    *** SERVICE NAME:(SYS$USERS) 2009-12-21 18:04:45.050
    *** SESSION ID:(1002.2218) 2009-12-21 18:04:45.050
    DEADLOCK DETECTED
    Current SQL statement for this session:
    begin dbms_rule_adm.remove_rule(:1,:2,:3); end;
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    392d7fdb0 241 package body SYS.DBMS_RULE_ADM
    3904ccdc0 1 anonymous block
    39530db08 290 package body SYS.DBMS_AQADM_SYSCALLS
    393f311d8 1384 package body SYS.DBMS_PRVTAQIS
    397a4feb0 5393 package body SYS.DBMS_AQADM_SYS
    3967bef50 1 anonymous block
    397a7f7a0 85 package body SYS.DBMS_AQJMS_INTERNAL
    392f78488 1 anonymous block
    397a8b2a8 130 package body SYS.DBMS_AQJMS
    3977af648 1 anonymous block
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TM-00001054-00000000 93 1002 SSX 93 1002 S
    session 1002: DID 0001-005D-0000002B     session 1002: DID 0001-005D-0000002B
    Rows waited on:
    Session 1002: no row
    Information on the OTHER waiting sessions:
    End of information on OTHER waiting sessions.
    ===================================================
    PROCESS STATE
    Process global information:
    process: 39dd566c8, call: 39724bf18, xact: 39c79d270, curses: 39d509980, usrses: 39d4b37a8
    SO: 39dd566c8, type: 2, owner: 0, flag: INIT/-/-/0x00
    (process) Oracle pid=93, calls cur/top: 39724bf18/3972147b0, flag: (0) -
    int error: 0, call error: 0, sess error: 0, txn error 0
    (post info) last post received: 0 0 0
    last post received-location: No post
    last process to post me: none
    last post sent: 0 0 0
    last post sent-location: No post
    last process posted by me: none
    (latch info) wait_event=0 bits=10
    holding 380009f18 Parent+children enqueue hash chains level=4
    Location from where latch is held: ksqcmi: kslgpl:
    Context saved from call: 0
    state=busy, wlstate=free
    recovery area:
    Dump of memory from 0x000000039DD2BA50 to 0x000000039DD2BA70
    39DD2BA50 00000000 00000000 00000000 00000000 [................]
    Repeat 1 times
    Process Group: DEFAULT, pseudo proc: 39ded5e88
    O/S info: user: oracle, term: UNKNOWN, ospid: 13972
    OSD pid info: Unix process pid: 13972, image: oracleipunity@BLLWWAGOUM0
    SO: 39c09d4c0, type: 7, owner: 39dd566c8, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=9cb56808 incno=1 pending i/o cnt=0
    fname=/export/home/oracle/product/10.0.1/oradata/ipunity/sysaux01.dbf
    SO: 39c09c968, type: 7, owner: 39dd566c8, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=9cb560c0 incno=5 pending i/o cnt=0
    fname=/export/home/oracle/product/10.0.1/oradata/ipunity/system01.dbf
    SO: 39d4b37a8, type: 4, owner: 39dd566c8, flag: INIT/-/-/0x00
    (session) trans: 39c7277a0, creator: 39dd566c8, flag: (1100041) USR/- BSY/-/-/-/-/-
    DID: 0001-005D-0000002B, short-term DID: 0000-0000-00000000
    txn branch: 0
    oct: 47, prv: 0, sql: 3977ad170, psql: 397ac9da8, user: 0/SYS
    O/S info: user: , term: , ospid: 1234, machine: BLLWWAGOUM0
    program:
    last wait for 'enq: TM - contention' blocking sess=0x39d4b37a8 seq=111 wait_time=3000703
    name|mode=544d0004, object #=1054, table/partition=0
    Dumping Session Wait History
    for 'enq: TM - contention' count=1 wait_time=3000703
    name|mode=544d0004, object #=1054, table/partition=0
    for 'db file sequential read' count=1 wait_time=68442
    file#=1, block#=1dff, blocks=1
    for 'db file sequential read' count=1 wait_time=49075
    file#=1, block#=1e00, blocks=1
    for 'db file sequential read' count=1 wait_time=5476
    file#=1, block#=207e, blocks=1
    for 'db file sequential read' count=1 wait_time=6273
    file#=1, block#=1ec7, blocks=1
    for 'db file sequential read' count=1 wait_time=8668
    file#=1, block#=6154, blocks=1
    for 'db file sequential read' count=1 wait_time=4105
    file#=1, block#=e71, blocks=1
    for 'db file sequential read' count=1 wait_time=73
    file#=1, block#=2261, blocks=1
    for 'db file sequential read' count=1 wait_time=6809
    file#=1, block#=4287, blocks=1
    for 'db file sequential read' count=1 wait_time=89
    file#=1, block#=225a, blocks=1
    temporary object counter: 0
    SO: 391690a30, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=391690a30 handle=3936a0678 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=391690aa0[3979274e8,3979274e8] htb=3979274e8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10329
    LIBRARY OBJECT HANDLE: handle=3936a0678
    name=SYS.RULE_SET_ROR$
    hash=3c3c30a5f7695fbbfaa5e5d4802997b timestamp=02-27-2005 21:11:45
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=0000 hlc=0000
    lwt=3936a0720[3936a0720,3936a0720] ltm=3936a0730[3936a0730,3936a0730]
    pwt=3936a06e8[3936a06e8,3936a06e8] ptm=3936a06f8[3936a06f8,3936a06f8]
    ref=3936a0750[3936a0750, 3936a0750] lnd=3936a0768[397e4d030,397ef6178]
    LIBRARY OBJECT: object=397cf4cd0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 397ce88a0 397cf4dd0 I/-/A 0 NONE
    8 3945db758 39391ed30 I/-/A 0 NONE
    9 3923c96b8 394ed6cb8 I/-/A 0 NONE
    10 3923c9608 39152de98 I/-/A 0 NONE
    SO: 3957bb260, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=3957bb260 handle=393ee5ed0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=3957bb2d0[397927178,397927178] htb=397927178
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10315
    LIBRARY OBJECT HANDLE: handle=393ee5ed0
    name=SYS.RULE_SET_RE$
    hash=9b8c5c7258a03476b458d75da0b744 timestamp=02-27-2005 21:11:45
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=fffe hlc=fffe
    lwt=393ee5f78[393ee5f78,393ee5f78] ltm=393ee5f88[393ee5f88,393ee5f88]
    pwt=393ee5f40[393ee5f40,393ee5f40] ptm=393ee5f50[393ee5f50,393ee5f50]
    ref=393ee5fa8[393ee5fa8, 393ee5fa8] lnd=393ee5fc0[397ef6178,390d73fe8]
    LIBRARY OBJECT: object=392ea86b0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3942f92c8 392ea87b0 I/-/A 0 NONE
    8 3940b9ef8 39278d2f0 I/-/A 0 NONE
    9 393cfb8c8 39075dc50 I/-/A 0 NONE
    10 393cfb818 3920cce38 I/-/A 0 NONE
    SO: 397112000, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=397112000 handle=39427f390 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=397112070[397927388,397927388] htb=397927388
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10302
    LIBRARY OBJECT HANDLE: handle=39427f390
    name=SYS.RULE_SET_IOT$
    hash=549d91bdafdb0134b32869305db1e065 timestamp=02-27-2005 21:11:47
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0701-0701 lock=N pin=0 latch#=1 hpc=0000 hlc=0000
    lwt=39427f438[39427f438,39427f438] ltm=39427f448[39427f448,39427f448]
    pwt=39427f400[39427f400,39427f400] ptm=39427f410[39427f410,39427f410]
    ref=39427f468[39427f468, 39427f468] lnd=39427f480[390138140,394149640]
    LIBRARY OBJECT: object=395a89b68
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 395abce28 395a89c68 I/-/A 0 NONE
    8 39125f4a0 39470c980 I/-/A 0 NONE
    9 39125f690 39436e138 I/-/A 0 NONE
    10 39125f5e0 396a11108 I/-/A 0 NONE
    SO: 39726f0e0, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=39726f0e0 handle=396ea0750 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=39726f150[391567da8,3979277d8] htb=3979277d8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=396ea0750
    name=IPUNITY.UM_TOPIC_TABLE4
    hash=6bdf9dbc574f4f588386e09987e3feaa timestamp=05-26-2009 10:25:41
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0709-0709 lock=S pin=S latch#=1 hpc=0028 hlc=0028
    lwt=396ea07f8[396ea07f8,396ea07f8] ltm=396ea0808[396ea0808,396ea0808]
    pwt=396ea07c0[396ea07c0,396ea07c0] ptm=396ea07d0[396ea07d0,396ea07d0]
    ref=396ea0828[396ea0828, 396ea0828] lnd=396ea0840[396e86808,396f56d10]
    LIBRARY OBJECT: object=390d709f0
    type=TABL flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DEPENDENCIES: count=5 size=16
    ACCESSES: count=3 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 390d71760 390d70af0 I/P/A 0 NONE
    3 396977458 38fcf7640 I/-/A 0 NONE
    8 392ef1f00 397a79400 I/-/A 0 NONE
    9 392ef1fb0 3941dcea8 I/-/A 0 NONE
    10 3969773a8 392108258 I/-/A 0 NONE
    SO: 397a7b4e0, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=397a7b4e0 handle=397e6db28 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=397a7b550[397926da8,397926da8] htb=397926da8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e6db28
    name=SYS.ANYDATA
    hash=384f49311885621233e9a346965b3507 timestamp=02-27-2005 21:08:48
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0245-0247 lock=N pin=0 latch#=1 hpc=0716 hlc=0716
    lwt=397e6dbd0[397e6dbd0,397e6dbd0] ltm=397e6dbe0[397e6dbe0,397e6dbe0]
    pwt=397e6db98[397e6db98,397e6db98] ptm=397e6dba8[397e6dba8,397e6dba8]
    ref=397e6dc00[397e6dc00, 397e6dc00] lnd=397e6dc18[397e50100,397e67cc0]
    LIBRARY OBJECT: object=397e50230
    type=TYPE flags=EXS/LOC[0005] pflags=/PRP/REP [480] status=VALD load=0
    DEPENDENCIES: count=3 size=16
    ACCESSES: count=2 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 397e50518 397e50330 I/-/A 0 NONE
    1 39624bc10 0 I/P/- 0 NONE
    2 397e4fe00 391541228 I/-/A 0 NONE
    6 39624bb60 39624b6f8 I/-/A 0 NONE
    9 397e4feb0 3910ef020 I/-/A 0 NONE
    SO: 392bfd610, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=392bfd610 handle=397e4faf0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=392bfd680[3979270b8,3979270b8] htb=3979270b8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e4faf0
    name=SYS.ANYTYPE
    hash=b05d1295a53654e1dcb478f941a13838 timestamp=02-27-2005 21:08:47
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=ed9c hlc=ed9c
    lwt=397e4fb98[397e4fb98,397e4fb98] ltm=397e4fba8[397e4fba8,397e4fba8]
    pwt=397e4fb60[397e4fb60,397e4fb60] ptm=397e4fb70[397e4fb70,397e4fb70]
    ref=397e4fbc8[397e4fbc8, 397e4fbc8] lnd=397e4fbe0[397e080b0,397e50100]
    LIBRARY OBJECT: object=390631470
    type=TYPE flags=EXS/LOC[0005] pflags=/PRP [80] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3905f08d0 390631570 I/-/A 0 NONE
    SO: 390b09468, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=390b09468 handle=397e4a2f8 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=390b094d8[397927858,397927858] htb=397927858
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e4a2f8
    name=SYS.DBMS_ANYTYPE_LIB
    hash=6f82c536a56b2687e7d1daeeb24478b2 timestamp=02-27-2005 21:08:46
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=ed60 hlc=ed60
    lwt=397e4a3a0[397e4a3a0,397e4a3a0] ltm=397e4a3b0[397e4a3b0,397e4a3b0]
    pwt=397e4a368[397e4a368,397e4a368] ptm=397e4a378[397e4a378,397e4a378]
    ref=397e4a3d0[397e4a3d0, 397e4a3d0] lnd=397e4a3e8[38fc9b178,39138c420]
    LIBRARY OBJECT: object=39531e990
    type=LIBR flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 39531ec78 39531ea90 I/-/A 0 NONE
    SO: 392642188, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=392642188 handle=397e50010 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=3926421f8[39537cf40,397927978] htb=397927978
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e50010
    name=SYS.DBMS_ANYDATA_LIB
    hash=55042fc1ae23f6173df25b7968bfcc4 timestamp=02-27-2005 21:08:46
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=eb62 hlc=eb62
    lwt=397e500b8[397e500b8,397e500b8] ltm=397e500c8[397e500c8,397e500c8]
    pwt=397e50080[397e50080,397e50080] ptm=397e50090[397e50090,397e50090]
    ref=397e500e8[397e500e8, 397e500e8] lnd=397e50100[397e4fbe0,397e6dc18]
    LIBRARY OBJECT: object=391bf3b60
    type=LIBR flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 391f09880 391bf3c60 I/-/A 0 NONE
    SO: 390563a60, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=390563a60 handle=397e07dd0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=390563ad0[397927ab8,397927ab8] htb=397927ab8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e07dd0
    name=SYS.AQ$_JMS_USERPROPARRAY
    hash=a70e73cab1fd920f9e63f39f5fbebd8 timestamp=02-27-2005 21:13:53
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0045-0047 lock=N pin=0 latch#=1 hpc=fed2 hlc=fed2
    lwt=397e07e78[397e07e78,397e07e78] ltm=397e07e88[397e07e88,397e07e88]
    pwt=397e07e40[397e07e40,397e07e40] ptm=397e07e50[397e07e50,397e07e50]
    ref=397e07ea8[397e07ea8, 397e07ea8] lnd=397e07ec0[397e03a80,397e080b0]
    LIBRARY OBJECT: object=395350c08
    type=TYPE flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 395350ef0 395350d08 I/-/A 0 NONE
    1 390afc000 0 I/P/- 0 NONE
    2 397fcade8 396cf9620 I/-/A 0 NONE
    6 390afbf50 39532d1a0 I/-/A 0 NONE
    SO: 39727f708, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=39727f708 handle=397e07fc0 mode=N
    call pin=0 session pin=0 hpc=0000 hlc=0000
    htl=39727f778[397d237c0,3979272f8] htb=3979272f8
    user=39d4b37a8 session=39d509980 count=0 flags=LRU/[4000] savepoint=10299
    LIBRARY OBJECT HANDLE: handle=397e07fc0
    name=SYS.AQ$_JMS_OBJECT_MESSAGE
    hash=96e68e21404dbbaa13ddacc340547c5c timestamp=02-27-2005 21:13:56
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0247-0247 lock=S pin=S latch#=1 hpc=f426 hlc=f426
    lwt=397e08068[397e08068,397e08068] ltm=397e08078[397e08078,397e08078]
    pwt=397e08030[397e08030,397e08030] ptm=397e08040[397e08040,397e08040]
    ref=397e08098[397e08098, 397e08098] lnd=397e080b0[397e07ec0,397e4fbe0]
    LIBRARY OBJECT: object=3976daf60
    type=TYPE flags=EXS/LOC[0005] pflags=/SWR/PRP [88] status=VALD load=0
    DEPENDENCIES: count=2 size=16
    ACCESSES: count=1 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3976db248 3976db110 I/P/A 0 NONE
    1 3976dacc0 392a22528 I/-/A 0 NONE
    2 39764fe88 391a01aa0 I/-/A 0 NONE
    6 3976db088 3976da7d8 I/P/A 10 NONE
    9 39764ff38 3923f6bf0 I/-/A 0 NONE
    SO: 391b23120, type: 54, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=391b23120 handle=398101738 mode=N
    call pin=3970e9e38 session pin=0 hpc=0000 hlc=0000
    htl=391b23190[396b732b0,397927cf8] htb=397927cf8
    user=39d4b37a8 session=39d509980 count=1 flags=[0000] savepoint=9224
    LIBRARY OBJECT HANDLE: handle=398101738
    name=SYS.IDGEN1$
    hash=4a498305388423085e384dc71920fc timestamp=02-27-2005 20:12:51
    namespace=TABL flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=1 hpc=0002 hlc=0002
    lwt=3981017e0[3981017e0,3981017e0] ltm=3981017f0[3981017f0,3981017f0]
    pwt=3981017a8[3981017a8,3981017a8] ptm=3981017b8[3981017b8,3981017b8]
    ref=398101810[398101810, 398101810] lnd=398101828[398101828,398101828]
    LIBRARY OBJECT: object=39811abb0
    type=SQNC flags=EXS/LOC[0005] pflags= [00] status=VALD load=0
    DATA BLOCKS:
    data# heap pointer status pins change
    0 398143620 39811acb0 I/-/A 0 NONE
    SO: 3979346d8, type: 55, owner: 39d4b37a8, flag: INIT/-/-/0x00
    LIBRARY OBJECT PIN: pin=3979346d8 handle=3967e3a10 mode=S lock=0
    user=39d4b37a8 session=39d509980 count=1 mask=0041 savepoint=2950 flags=[00]
    ----------------------------------------

  • Messages are not being dequed by a different connection in JMS

    Scenario
    There are 2 queues - Q_A and Q_B and There are 2 applications - App_1 and App_2
    I am using point 2 point and java JMS
    This is what I want to accomplish
    App_1 queues messages to Q_A
    App_2 dequeues messages from Q_A
    App_2 queues messages to Q_B
    App_1 dequeues messages from Q_B
    But the problem I am having is that neither application can see the messages that have been queued by the other.
    So even though I see the messages in the database in Q_A,
    When I use QueueBrowser from App_B on Q_A to view the messages ... it is empty
    But if I use QueueBrowser from App_A on the same queue Q_ A I can see the messages.
    The same is true the other way round.
    The queueconnection is being created usng the same db user in both apps, and the queues are owned by the same user.
    please help me.
    user489532

    Dear DAMORGAN,
    Thank you for your reply and I apologise for the insufficient information. I am providing the details now. I am aware that JMS is supposed to handle my situation. And I am ableto queue and dequeue messages without problems from the same app. Its only when I am using different apps that I am having a problem. I am pasting relevant pieces of code,Please let me know if more info is needed. Thank for your help.
    Oracle 10g
    Weblogic 10
    DDL to create Queue
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    QUEUE_TABLE => 'AQ_A_QUEUE'
    ,QUEUE_PAYLOAD_TYPE => 'SYS.AQ$_JMS_OBJECT_MESSAGE'
    ,COMPATIBLE => '8.1.3'
    ,MULTIPLE_CONSUMERS => FALSE
    DBMS_AQADM.CREATE_QUEUE(QUEUE_NAME => 'A_QUEUE',
              QUEUE_TABLE => 'AQ_A_QUEUE',
              MAX_RETRIES => 10,
              RETRY_DELAY => 60);
    DBMS_AQADM.START_QUEUE(QUEUE_NAME => 'A_QUEUE');          
    END;
    Application A sends messages to A_QUEUE like this
    //This is how I get a connection
    QueueConnectionFactory queueConnectionFactory = AQjmsFactory.getQueueConnectionFactory(getDatabaseServer(), getDatabaseSid(), getDatabasePort(), "thin");
    QueueConnection qc = queueConnectionFactory.createQueueConnection(getDatabaseUser(), getDatabaseUserPassword());
    qc.start();
    //This is how I get the Queue          
    QueueSession q_sess = qc.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    Queue aQueue= ((AQjmsSession)q_sess).getQueue(getDatabaseUser(), "A_QUEUE");
    TestMsgObject jmsObj = new TestMsgObject();
    //populate Test object          
    QueueSender qs = q_sess.createSender(aQueue )
    ObjectMessage msg = q_sess.createObjectMessage(jmsObj);
    msg.setStringProperty("MESSAGESOURCE", "APP_A");
    qs.send(msg);
    qs.close();
    q_sess.commit();
    //Application B has a message listener like this - TestListener
    public void initialize() throws JMSException, NamingException {
         QueueConnectionFactory queueConnectionFactory = AQjmsFactory.getQueueConnectionFactory(getDatabaseServer(), getDatabaseSid(), getDatabasePort(), "thin");
         qc = queueConnectionFactory.createQueueConnection(getDatabaseUser(), getDatabaseUserPassword());
         q_session = qc.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
         aQueue = ((AQjmsSession)q_session).getQueue(getDatabaseUser(), "A_QUEUE");
         qr = q_session.createReceiver(aQueue);
         qr.setMessageListener(this);
         qc.start();
    public void onMessage(Message message) {
         try {
              System.out.println("Received Message XFS=" + message.getJMSMessageID());
              //more processing
         }catch(Exception e) {
              e.printStackTrace();
    The message listener is created and initialized from the init() method of a servlet that is loaded on startup.
    The onMessage of the TestListener is never called.
    I can see the messages in the database.
    Also when I call the following code snippet from Application A - the messages are retrieved, but the same code called from application B does not give any messages.
    browser = q_sess.createBrowser(MyUtil.getQueue(q_sess));
    for (Enumeration messages = browser.getEnumeration(); messages.hasMoreElements() ;){
    obj_message = (ObjectMessage)messages.nextElement();
    System.out.println(obj_message.getJMSMessageID());
    I can bounce the app server and still app B does not see the messages.
    However if app B publishes messages to the queue itself, it can see those, without any problem.
    As mentioned before the database user is the same for both the apps and owns the queue, and deques and enque are both enabled.

  • JMS-130 JMS queue cannot be multi-consumer enabled

    error:
    queue = ((AQjmsSession)t_sess).getQueue("tmp", "tmp_queue");
    pl/sql code:
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'tmp_queue_table',
    queue_name => 'tmp_queue');
    END;
    BEGIN
    SYS.DBMS_AQADM.CREATE_AQ_AGENT(
    agent_name => 'explicit_dq');
    END;
    BEGIN
    DBMS_AQADM.ENABLE_DB_ACCESS(
    agent_name => 'explicit_dq',
    db_username => 'tmp');
    END;
    DECLARE
    subscriber SYS.AQ$_AGENT;
    BEGIN
    subscriber := SYS.AQ$_AGENT('explicit_dq', NULL, NULL);
    SYS.DBMS_AQADM.ADD_SUBSCRIBER(
    queue_name => tmp.tmp_queue',
    subscriber => subscriber);
    END;
    I search in forums, google but i can not find solution. Any idea?
    regards

    Bill,
    I could be mistaken, but as far as I know, you can only access JMS queues from java. In other words, "queue_payload_type" needs to be: SYS.AQ$_JMS_OBJECT_MESSAGE
    Good Luck,
    Avi.

  • JMS send seems to work, but receive and browse not

    Hi,
    I use an Oracle9i database, registered it to OID and also registered a QueueConnectionFactory using Oracle sample code with slight changes as you can see below.
    I then wrote a little AQ-JMS test programm to test sending and receiving messages also using Oracle's sample code with slight changes.
    Registration works (as much as I can tell - at least I can see an entry in the OracleDBConnections in OID). Sending passes without any error messages and retrieval as well as browsing crashes with a null pointer exception of the style:
    java.lang.NullPointerException
         at oracle.jms.AQjmsConsumer.<init>(AQjmsConsumer.java:222)
         at oracle.jms.AQjmsQueueBrowser.<init>(AQjmsQueueBrowser.java:99)
         at oracle.jms.AQjmsSession.createBrowser(AQjmsSession.java:1404)
         at oracle.jms.AQjmsSession.createBrowser(AQjmsSession.java:1251)
         at TestRegisteredAQQCF.browseMessages(TestRegisteredAQQCF.java:167)
         at TestRegisteredAQQCF.browse(TestRegisteredAQQCF.java:73)
         at TestRegisteredAQQCF.main(TestRegisteredAQQCF.java:26)
    I will mark the lines, where this exceptions occur with //EXCEPTION
    Oracle's Enterprise Manager Console says, there were no waiting, ready or expired messages in the queue.
    Actually I simply want to use AQ as resource provider for OAS Dev Preview, but I could not find detailed documentation on that (in oc4j_j2ee_svcguide_r2.pdf I cannot find, what I have to put into jms.xml in case of AQ as resource provider) so I tried to test, whether I can send and receive at all. Maybe someone of you knows, what is wrong.
    =================================================================
    =================================================================
    Send and Mail Code
    ==================
    import java.util.Enumeration;
    import java.util.Hashtable;
    import javax.jms.*;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.InitialDirContext;
    import oracle.jms.AQjmsConstants;
    import oracle.jms.AQjmsSession;
    public class TestRegisteredAQQCF
    public static void main(String args[])
    try
    I ran send a few times and commented the other two out. Then I tried each
    of the other ones, always sending a few times inbetween.
    //send();
    //receive();
    browse();
    catch (JMSException e)
    e.printStackTrace();
    System.out.println("\n\nLinked Exception:\n");
    e.getLinkedException().printStackTrace();
    catch (Exception e)
    e.printStackTrace();
    public static void send() throws JMSException
    QueueConnectionFactory qcf = null;
    QueueSession qs = null;
    Queue queue = null;
    qcf = get_Factory_from_LDAP();
    qs = getQueueSession(qcf);
    queue = getQueue(qs);
    sendMessageToQueue(queue, qs);
    public static void receive() throws JMSException
    QueueConnectionFactory qcf = null;
    QueueSession qs = null;
    Queue queue = null;
    qcf = get_Factory_from_LDAP();
    qs = getQueueSession(qcf);
    queue = getQueue(qs);
    receiveMessageFromQueue(queue, qs);
    public static void browse() throws JMSException
    QueueConnectionFactory qcf = null;
    QueueSession qs = null;
    Queue queue = null;
    qcf = get_Factory_from_LDAP();
    qs = getQueueSession(qcf);
    queue = getQueue(qs);
    browseMessages(queue, qs);
    public static QueueConnectionFactory get_Factory_from_LDAP()
    Hashtable env = new Hashtable(5, 0.75f);
    env.put(Context.INITIAL_CONTEXT_FACTORY, AQjmsConstants.INIT_CTX_FACTORY);
    // aqldapserv is your LDAP host and 389 is your port
    env.put(Context.PROVIDER_URL, "ldap://anduin:389");
    // now authentication info
    // username/password scheme, user is OE, password is OE
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, "cn=orcladmin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //env.put("server_dn", "cn=ora9_aq,cn=OracleContext");
    QueueConnectionFactory qc_fact = null;
    try
    DirContext inictx = new InitialDirContext(env);
    // initialize context with the distinguished name of the database server
    inictx = (DirContext) inictx.lookup("cn=ora9_aq,cn=OracleContext");
    //go to the connection factory holder cn=OraclDBConnections
    DirContext connctx = (DirContext) inictx.lookup("cn=OracleDBConnections");
    // get connection factory "oe_queue_factory"
    qc_fact = (QueueConnectionFactory)
    connctx.lookup("cn=CarnotQueueConnectionFactory");
    catch (NamingException e)
    e.printStackTrace();
    System.out.println("\n\nRoot Cause: \n");
    e.getRootCause().printStackTrace();
    return qc_fact;
    public static Queue getQueue(QueueSession qsession)
    throws JMSException
    Queue queue = null;
    queue = ((AQjmsSession) qsession).getQueue("", "CARNOTQUEUE");
    return queue;
    private static QueueSession getQueueSession(QueueConnectionFactory qcf)
    throws JMSException
    QueueConnection qc = qcf.createQueueConnection("carnotaq", "carnotaq");
    qc.start();
    QueueSession qs = qc.createQueueSession(true, 0);
    return qs;
    private static void sendMessageToQueue(Queue queue, QueueSession qsession)
    throws JMSException
    String whatEverObject = "I'm the message's object nr. 1!";
    QueueSender sender = null;
    ObjectMessage objMessage = null;
    sender = qsession.createSender(queue);
    objMessage = qsession.createObjectMessage();
    objMessage.setJMSCorrelationID("JMS1");
    objMessage.setObject(whatEverObject);
    qsession.commit();
    private static void receiveMessageFromQueue(Queue queue, QueueSession qsession)
    throws JMSException
    QueueReceiver receiver = null;
    ObjectMessage objMessage = null;
    String whatEverObject = null;
    receiver = qsession.createReceiver(queue); //EXCEPTION
    objMessage = (ObjectMessage) receiver.receive();
    whatEverObject = (String) objMessage.getObject();
    System.out.println("Object: " + whatEverObject);
    System.out.println("JMSCorrelation ID: " + objMessage.getJMSCorrelationID());
    private static void browseMessages(Queue queue, QueueSession qsession)
    throws JMSException
    QueueBrowser browser;
    ObjectMessage objMessage;
    Enumeration messages;
    String whatEverObject;
    browser = qsession.createBrowser(queue,
    "JMSCorrelationID = 'JMS1'"); //EXCEPTION
    for (messages = browser.getEnumeration() ; messages.hasMoreElements() ;)
    objMessage = (ObjectMessage)messages.nextElement();
    whatEverObject = (String) objMessage.getObject();
    System.out.println("Object: " + whatEverObject);
    System.out.println("JMSCorrelation ID: " + objMessage.getJMSCorrelationID());
    browser.close();
    =================================================================
    =================================================================
    Registration Code:
    ==================
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.util.Hashtable;
    import javax.jms.JMSException;
    import javax.naming.Context;
    import oracle.jms.AQjmsConstants;
    import oracle.jms.AQjmsFactory;
    public class RegisterAQQCF
    public static void main(String args[])
    register_Factory_in_LDAP();
    public static void register_Factory_in_LDAP()
    Hashtable env = new Hashtable(5, 0.75f);
    env.put(Context.INITIAL_CONTEXT_FACTORY, AQjmsConstants.INIT_CTX_FACTORY);
    System.out.println(AQjmsConstants.INIT_CTX_FACTORY);
    // aqldapserv is your LDAP host and 389 is your port
    env.put(Context.PROVIDER_URL, "ldap://anduin:389");
    // now authentication info
    // username/password scheme, user is standard
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, "cn=orcladmin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put("server_dn", "cn=ora9_aq,cn=OracleContext");
    /* register queue connection factory for database "ora9aq", host "anduin",
    port 1521, driver "thin" */
    try
    AQjmsFactory.registerConnectionFactory(env, "CarnotQueueConnectionFactory", "anduin",
    "ora9aq", 1521, "thin", "queue");
    catch (JMSException e)
    e.printStackTrace();
    System.out.println("\n\n Root Cause: \n");
    e.getLinkedException().printStackTrace();

    I'm not sure at this point why you see NullPointerException,
    I suspect something with the Queue. You code is running in my
    environment.
    If you could, please provide info on how the queue
    carnotaq.carnotqueue was created (pl/sql, java api calls, etc.).
    Make sure that carnotaq.carnotqueue is a type that can contain
    object message payloads.
    Here is the PL/SQL code I used to create the queue. You may want
    to try this to see if error remains.
    ---- start pl/sql script ----
    -- drop queue
    CONNECT carnotaq/carnotaq;
    execute dbms_aqadm.drop_queue_table( queue_table => 'CARNOTQUEUE', force => true
    -- create queue
    execute dbms_aqadm.create_queue_table( queue_table => 'CARNOTQUEUE', queue_paylo
    ad_type => 'SYS.AQ$_JMS_OBJECT_MESSAGE', comment => 'single-consumer, default so
    rt ordering, Obj Message', compatible => '8.1.0' );
    execute dbms_aqadm.create_queue( queue_name => 'CARNOTQUEUE', queue_table => 'C
    ARNOTQUEUE');
    -- start queue
    execute dbms_aqadm.start_queue(queue_name => 'CARNOTQUEUE');
    ---- end of pl/sql script ----

  • Errors using queues created by another user

    I have created a queue table (payload aq$_jms_stream_message) and queues, but can only enqueue/dequeue messages using the JMS interface when connecting with the queue owner. If I try to connect with another user I receive the following errors:
    JMS-204: An error occurred in the AQ JNI layer
    Exception breakpoint occurred at line 1747 of AQjmsStreamMessage.java.
    oracle.jms.AQjmsException: ORA-01031: insufficient privileges
    The user I would like to connect with has been granted the following permissions:
    execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','MY_USER',FALSE);
    execute dbms_aqadm.grant_system_privilege('DEQUEUE_ANY','MY_USER',FALSE);
    GRANT EXECUTE ON DBMS_AQ to MY_USER;
    GRANT EXECUTE ON DBMS_AQIN to MY_USER;
    GRANT EXECUTE ON DBMS_AQJMS to MY_USER;
    I have also tried granting AQ_ADMINISTRATOR_ROLE and execute on DBMS_AQADM to my_user with the same behaviour.
    While connected with my_user, I have successfully enqueued/dequeued empty stream messages via PLSQL which seems to suggest that I have the correct permissions for the queue, but maybe there is a package I have missed.
    Does anyone have any other suggestions of what I can try? Or alternatively, is this behaviour by design - should the queue only be available to its owner?
    Thanks in advance,
    Davin McGill

    *** I HAVE FINALLY ... SOLVED THIS PROBLEM ***
    refer to following thread for details on my case:
    Re: 'Insufficient privileges' enque JMS ObjectMessage to owned by different usr
    I had to give following privileges to BLANC_USER:
    GRANT EXECUTE ON SYS.AQ$_JMS_OBJECT_MESSAGE TO BLANC_USER;
    GRANT EXECUTE ON SYS.AQ$_JMS_MAP_MESSAGE TO BLANC_USER;
    GRANT DELETE, INSERT, SELECT, UPDATE ON BLANC_OWNER.CUSTQUEUE TO BLANC_USER:;
    GRANT DELETE, INSERT, SELECT, UPDATE ON BLANC_OWNER.FILEQUEUE TO BLANC_USER:;
    It is working now.

  • Instead of using the make file can you build nirlpk.sys using MS WDK 8.0 on VS2012?

    After downloading the NI nimhddk_windowsWDM-2 and -1
    Instead of using the make file I built nirlpk.sys using MS WDK 8.0 on VS2012
    I copied the source files out of the dir /nirlpk to the MS template for WDM drivers
    It built after turning warnings as errors off.
    After uninstalling the NI_DMX driver I tried to install the RLP driver that consisted of nirlp.inf and nirlpk.sys
    I got this message:
    Windows found driver software for your device but encounted and error while attempting to install it.
    PCI-6602 RLP WDM
    Driver is not intended for this platform
    Is the nirlp.inf file correct for loading on Windows 7 64 bit?
    Any ideas?

    I have now altered the example along lines
    suggested by ghaneman*, who pointed out that
    a trusted application did not need to use the
    FileOpenService/FileContents just to get an
    InputStream.
    * Mentioned on 'File associations / sandboxed app.'
    http://forum.java.sun.com/thread.jspa?threadID=785224
    The altered code is..
    /** Load a file into the editing area.
    @param path A string representing the path to the desired file. */
    public void loadFile(String path) {
        // first try as if this were a trusted application..
        if (!path.equals(".")) {
            try {
                FileInputStream inputStream = new
                    FileInputStream(path);
                loadFile(inputStream);
            } catch (Exception e) {
                // we do not have trust, use the FileOpenService
                loadFileByFileService(path);
        } else {
            // we only have a directory, use the FileOpenService
            loadFileByFileService(path);
    public void loadFileByFileService(String path) {
        try {
            if (fileOpenService==null) {
                fileOpenService = (FileOpenService)ServiceManager.
                    lookup("javax.jnlp.FileOpenService");
            fileContents = fileOpenService.openFileDialog(path, xtns);
            // the user may have cancelled the action..
            if (fileContents!=null) {
                loadFile( fileContents.getInputStream() );
        } catch(UnavailableServiceException use) {
            use.printStackTrace();
        } catch(IOException ioe) {
            ioe.printStackTrace();
    }If the user launches the trusted version, and
    selects 'always trust' for the (self signed)
    certificate, the end user can thereafter double
    click a file and see it appear in the application's
    editing area with no further user interaction.

  • "Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'"

    Hi!
    As you can see from here :
    http://www.fabiocavallo.it/sap/maxdb.jpg
    MaxDB seems to work fine, but after starting application server i have got an error :
    SAPGUI Logon Error Message:
    http://www.fabiocavallo.it/sap/sapguilog.jpg
    ...here comes dev_w0 :
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL 1
    ACTIVE TRACE COMPONENTS all, MJ
    B
    B Thu May 22 19:58:50 2008
    B create_con (con_name=R/3)
    B Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 http://dlnt.c 237
    M Error 126 = "Impossibile trovare il modulo specificato."
    B *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    http://dbcon.c 4726
    M sysno 00
    M sid NSP
    M systemid 560 (PC with Windows NT)
    M relno 7000
    M patchlevel 0
    M patchno 95
    M intno 20050900
    M make: multithreaded, ASCII, optimized
    M pid 3376
    M
    M kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    M length of sys_adm_ext is 360 bytes
    M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3376) http://dpxxdisp.c 1301
    I MtxInit: 30000 0 0
    M DpSysAdmExtCreate: ABAP is active
    M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M
    M Thu May 22 19:58:51 2008
    M DpShMCreate: sizeof(wp_adm) 6328 (904)
    M DpShMCreate: sizeof(tm_adm) 3605136 (17936)
    M DpShMCreate: sizeof(wp_ca_adm) 1200 (60)
    M DpShMCreate: sizeof(appc_ca_adm) 1200 (60)
    M DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    M DpShMCreate: sizeof(comm_adm) 528048 (1048)
    M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M DpShMCreate: sizeof(slock_adm) 0 (96)
    M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M DpShMCreate: sizeof(file_adm) 0 (72)
    M DpShMCreate: sizeof(vmc_adm) 0 (1280)
    M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
    M DpShMCreate: sizeof(gw_adm) 48
    M DpShMCreate: SHM_DP_ADM_KEY (addr: 06420040, size: 4205552)
    M DpShMCreate: allocated sys_adm at 06420040
    M DpShMCreate: allocated wp_adm at 06421A28
    M DpShMCreate: allocated tm_adm_list at 064232E0
    M DpShMCreate: allocated tm_adm at 06423310
    M DpShMCreate: allocated wp_ca_adm at 067935A0
    M DpShMCreate: allocated appc_ca_adm at 06793A50
    M DpShMCreate: allocated comm_adm at 06793F00
    M DpShMCreate: system runs without slock table
    M DpShMCreate: system runs without file table
    M DpShMCreate: allocated vmc_adm_list at 06814DB0
    M DpShMCreate: allocated gw_adm at 06814DF0
    M DpShMCreate: system runs without vmc_adm
    M DpShMCreate: allocated ca_info at 06814E20
    M DpShMCreate: allocated wall_adm at 06814E28
    X EmInit: MmSetImplementation( 2 ).
    X MM global diagnostic options set: 0
    X <ES> client 0 initializing ....
    X Using implementation view
    M <EsNT> Memory Reset disabled as NT default
    X ES initialized.
    M ThInit: running on host PCFABIO
    M
    M Thu May 22 19:58:52 2008
    M calling db_connect ...
    B create_con (con_name=R/3)
    B Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 http://dlnt.c 237
    M Error 126 = "Impossibile trovare il modulo specificato."
    B *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    http://dbcon.c 4726
    M ***LOG R19=> ThInit, db_connect ( DB-Connect 008192) http://thxxhead.c 1426
    M in_ThErrHandle: 1
    M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) http://thxxhead.c 10240
    M
    M Info for wp 0
    M
    M stat = WP_RUN
    M waiting_for = NO_WAITING
    M reqtype = DP_RQ_DIAWP
    M act_reqtype = NO_REQTYPE
    M rq_info = 0
    M tid = -1
    M mode = 255
    M len = -1
    M rq_id = 65535
    M rq_source =
    M last_tid = 0
    M last_mode = 0
    M semaphore = 0
    M act_cs_count = 0
    M csTrack = 0
    M csTrackRwExcl = 0
    M csTrackRwShrd = 0
    M control_flag = 0
    M int_checked_resource(RFC) = 0
    M ext_checked_resource(RFC) = 0
    M int_checked_resource(HTTP) = 0
    M ext_checked_resource(HTTP) = 0
    M report = > <
    M action = 0
    M tab_name = > <
    M vm = no VM
    M
    M *****************************************************************************
    M *
    M * LOCATION SAP-Server PCFABIO_NSP_00 on host PCFABIO (wp 0)
    M * ERROR ThInit: db_connect
    M *
    M * TIME Thu May 22 19:58:52 2008
    M * RELEASE 700
    M * COMPONENT Taskhandler
    M * VERSION 1
    M * RC 13
    M * MODULE thxxhead.c
    M * LINE 10439
    M * COUNTER 1
    M *
    M *****************************************************************************
    M
    M PfStatDisconnect: disconnect statistics
    M Entering TH_CALLHOOKS
    M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm http://thxxrun1.c 720
    M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed http://thxxtool3.c 260
    M Entering ThSetStatError
    M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M Entering ThReadDetachMode
    M call ThrShutDown (1)...
    M ***LOG Q02=> wp_halt, WPStop (Workproc 0 3376) http://dpnttool.c 327
    File dbsdbslib.dll' is 'there' (in 'C:\SAP\NSP\SYS\exe\run\), maybe i have to set environment variable in windows for SAP.
    Could you help me, please ?
    I don't know how to set these variables.......
    Many thanks.
    Regards.
    Fabio

    Hello Fabio,
    -> You wrote:
    "File dbsdbslib.dll' is 'there' (in 'C:\SAP\NSP\SYS\exe\run\)"
    => Please check the version of this file.
    < Go to file properties ->Version && update with 'file version', Platform,
       Product Name, Product Version information >
    -> What version of the SAP system did you install?
         "I suppose that i can download this patch from Sap MaketPlace, but i can't register there, because i have no
          Customer or   Installation Number! (i can't Logon in SAP....) "
         From were did you get the SAP software installation or CD?
    -> Could you upgrade the database client software on the application server to the version 7.7.04.08 or higher.
        You pointed "As you can see from here : http://www.fabiocavallo.it/sap/maxdb.jpg u2026 "
       => If the database and application were running on the same server, you installed the database
    Software version 7.6.02.17. Please run 'sdbregview -l' to review the list of all installed packages
    on the server.
    -> "MaxDB seems to work fine, but after starting application server i have got an error"
         Was the system working fine before? What was changed?
         Or you was not able to start the application server after installation. ?
    Thank you and best regards, Natalia Khlopina

  • Upgrade oracle 9.2.0.8.0 to 10.2.03 ORA-06512: at "SYS.VERSION_SCRIPT", lin

    Upgrade oracle 9.2.0.8.0 to 10.2.03. while runing catupgrd.sql script. i am geting error.
    SELECT version_script AS file_name FROM DUAL
    ERROR at line 1:
    ORA-20000: Upgrade not supported from version
    ORA-06512: at "SYS.VERSION_SCRIPT", line 52
    Please help me.
    AT

    Strange. Metalink doc 316889.1 says you should be able to upgrade following versions directly to 10.2.0.3.0
    8.1.7.4 -> 10.2.X.X.X
    9.0.1.4 or 9.0.1.5 -> 10.2.X.X.X
    9.2.0.4 or higher -> 10.2.X.X.X
    10.1.0.2 or higher -> 10.2.X.X.X
    Not too sure but may be you need to contact Oracle support.

  • COMPUTE INDEX vs. SYS.DBMS_STATS.GATHER_INDEX_STATS

    Hi,
    I've got an Oracle 9 database.
    I am creating an index. I had created this index using the following syntax:
    CREATE INDEX index1. . . . . . COMPUTE STATISTICS;
    One of my colleagues tells me that I should scrap 'COMPUTE STATISTICS' and instead make this a two step process:
    (1) CREATE INDEX index1. . . . .
    (2) SYS.DBMS_STATS.GATHER_INDEX_STATS
    OwnName => 'schema'
    ,IndName => 'index_name'
    ,Estimate_Percent => 10
    ,Degree => 4
    ,No_Invalidate => FALSE);
    Is there any advantage to using SYS.DBMS_STATS.GATHER_INDEX_STATS instead of 'COMPUTE STATISTICS'?
    Thanks,
    Tom

    9i references<br>
    In particular...<br>
    Deprecated at 10<br>

  • How to protect the SYS ID?

    Hi All,
    I have an application that allows a central application administrator - this ID in the application matches to an Oracle ID with no objects, but many rights. Since they need to reset regular user passwords this user gets granted the "ALTER USER" role. Doing some experimentation I found that this user has the rights to change the SYS password now! (and any other SYSDBA user). The documentation does confirm this:
    *Security administrators are typically the only users that have this system privilege, as it allows a modification of any user security domain.*
    Now, my solution is to remove the ALTER USER privilege and leave the password resets to the DBA (i.e. me), but I was wondering if anyone knows of a solution that will still allow a user to change other database user passwords, but exclude the SYS password?
    FYI, this is running 11.1.0.7 on Windows 64-bit. Any ideas would be greatly appreciated.
    Thanks,
    Martin

    Normally, you'd use a stored procedure for this.
    A highly privileged user (i.e. a DBA account) would own a procedure that resets user passwords. That procedure would do a bit of validation that the password being reset is a regular application user account, not a DBA. And the procedure would probably do a bit of logging so you can track who reset the password. The highly privileged user would then grant the application administrator EXECUTE access on this stored procedure. The application admin would be able to reset normal user passwords by calling the procedure but would not be able to reset the password for privileged users.
    Justin

Maybe you are looking for

  • Can I use my time capsule to connect a Dell laptop to a remote hard drive?

    I have a time capsule network at home for my apple computers. It works great I can even send jobs wirelessly to the printers from all my computers including the Dell laptop with Windows Vista. I would like to be able to back up the Dell laptop Window

  • User getting error when creating a new Document Library

    The user is getting the following error when trying to create a new Document Library in SharePoint 2010: Error Cannot complete this action. Please try again. Correlation ID: 37ecd5eb-6129-4fa3-84bd-c6f0ad8115d5 Has anyone come across this error and k

  • Cant install Tape(scsi) in Solaris 2.6

    Before installing Solaris 2.6 in a Compaq Proliant DL380 with intel CPU, the TAPE is detected. After installing Solaris 2.6, it doesn't detect the TAPE drive. Does anyone nows how can i solve this problem ? Thanks a lot

  • Crash Report Help

    While recently moving, I unpacked and tried to start on a session/project and came across this crash report, unable to work on a few projects: Process:         Logic Pro [306] Path:            /Applications/Logic Pro.app/Contents/MacOS/Logic Pro Iden

  • Services stopped responding to requests after several updates

    This week all services on a G5 dual 1.8Mhz tower stopped responding. Unfortunately, I cannot find a trigger event for this though perhaps it is related to recent updates. The services that stopped responding include bonjour, ssh, remote desktop/manag