Drop a queue

Hi all,
I'm asked to delete invalid queues in a schema. I tried using exec dbms_aqadm.drop_queue('QUEUE_NAME'); but not successful.
It is showing queue not found. It is an invalid object (queue).
please let me know how to delete an invalid queue
--donepudi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi,
Please run the following SQL to get owner of the queue you'd like to drop:
select owner, name from dba_queues where name like '%YOUR_QUEUE_NAME%';Then drop an existing queue:
BEGIN
   DBMS_AQADM.DROP_QUEUE(
      queue_name         => 'owner_of_the_queue.obj_queue');
END;
/Hope this will help.
Best Regards,
http://dba-star.blogspot.com/

Similar Messages

  • Error in stage : drop capture queue ORA-04063: AGADM_SCHEMA1.RM_QUEUE_ID3

    Hi,
    Recently i upgrade my database from Oracle 11.2.0.1 to Oracle 11.2.0.2 on RHEL 5. I have two way replication configured on my servers. I am trying to reconfigure by dropping existing queues.
    SQL> begin
    2 dbms_streams_adm.remove_queue('RM_QUEUE_ID3', TRUE);
    3 exception
    4 when others then
    5 dbms_output.put_line('error in stage : drop capture queue');
    6 dbms_output.put_line(sqlerrm);
    7 end;
    8 /
    error in stage : drop capture queue
    ORA-04063: AGADM_SCHEMA1.RM_QUEUE_ID3 has errors
    PL/SQL procedure successfully completed
    SQL> select status from user_objects where object_name like 'RM_QUEUE_ID3';
    STATUS
    INVALID
    One issue i observe is queue is in invalid state.
    Please suggest.
    Thanks
    Umesh

    Thanks Paul
    Please see below:
    SQL> select name, queue_Table, qid, queue_type from user_queues;
    AQ$_RM_QUEUE_TABLE16_E RM_QUEUE_TABLE16 978860 EXCEPTION_QUEUE
    RM_QUEUE_ID16 RM_QUEUE_TABLE16 978861 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE6_E RM_QUEUE_TABLE6 978641 EXCEPTION_QUEUE
    RM_QUEUE_ID6 RM_QUEUE_TABLE6 978642 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE2_E RM_QUEUE_TABLE2 978541 EXCEPTION_QUEUE
    RM_QUEUE_ID2 RM_QUEUE_TABLE2 978542 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE15_E RM_QUEUE_TABLE15 978292 EXCEPTION_QUEUE
    RM_QUEUE_ID15 RM_QUEUE_TABLE15 978293 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE12_E RM_QUEUE_TABLE12 978112 EXCEPTION_QUEUE
    RM_QUEUE_ID12 RM_QUEUE_TABLE12 978114 NORMAL_QUEUE
    RM_QUEUE_ID11 RM_QUEUE_TABLE11 978001 NORMAL_QUEUE
    RM_QUEUE_ID7 RM_QUEUE_TABLE7 977918 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE5_E RM_QUEUE_TABLE5 977834 EXCEPTION_QUEUE
    RM_QUEUE_ID5 RM_QUEUE_TABLE5 977835 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE1_E RM_QUEUE_TABLE1 977665 EXCEPTION_QUEUE
    RM_QUEUE_ID1 RM_QUEUE_TABLE1 977666 NORMAL_QUEUE
    AQ$_RM_QUEUE_TABLE3_E RM_QUEUE_TABLE3 977751 EXCEPTION_QUEUE
    RM_QUEUE_ID3 RM_QUEUE_TABLE3 977752 NORMAL_QUEUE
    18 rows selected
    SQL> select queue_table, type, object_type, compatible from user_queue_tables;
    RM_QUEUE_TABLE1 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE11 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE12 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE15 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE16 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE2 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE3 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE5 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE6 OBJECT SYS.ANYDATA 10.0.0
    RM_QUEUE_TABLE7 OBJECT SYS.ANYDATA 10.0.0
    10 rows selected
    SQL> select view_name from user_views where view_name like 'AQ$%';
    AQ$_RM_QUEUE_TABLE7_F
    AQ$_RM_QUEUE_TABLE6_F
    AQ$_RM_QUEUE_TABLE5_F
    AQ$_RM_QUEUE_TABLE3_F
    AQ$_RM_QUEUE_TABLE2_F
    AQ$_RM_QUEUE_TABLE1_F
    AQ$_RM_QUEUE_TABLE16_F
    AQ$_RM_QUEUE_TABLE15_F
    AQ$_RM_QUEUE_TABLE12_F
    AQ$_RM_QUEUE_TABLE11_F
    AQ$RM_QUEUE_TABLE7_S
    AQ$RM_QUEUE_TABLE7_R
    AQ$RM_QUEUE_TABLE7
    AQ$RM_QUEUE_TABLE6_S
    AQ$RM_QUEUE_TABLE6_R
    AQ$RM_QUEUE_TABLE6
    AQ$RM_QUEUE_TABLE5_S
    AQ$RM_QUEUE_TABLE5_R
    AQ$RM_QUEUE_TABLE5
    AQ$RM_QUEUE_TABLE3_S
    AQ$RM_QUEUE_TABLE3_R
    AQ$RM_QUEUE_TABLE3
    AQ$RM_QUEUE_TABLE2_S
    AQ$RM_QUEUE_TABLE2_R
    AQ$RM_QUEUE_TABLE2
    AQ$RM_QUEUE_TABLE1_S
    AQ$RM_QUEUE_TABLE1_R
    AQ$RM_QUEUE_TABLE16_S
    AQ$RM_QUEUE_TABLE16_R
    AQ$RM_QUEUE_TABLE16
    AQ$RM_QUEUE_TABLE15_S
    AQ$RM_QUEUE_TABLE15_R
    AQ$RM_QUEUE_TABLE15
    AQ$RM_QUEUE_TABLE12_S
    AQ$RM_QUEUE_TABLE12_R
    AQ$RM_QUEUE_TABLE12
    AQ$RM_QUEUE_TABLE11_S
    AQ$RM_QUEUE_TABLE11_R
    AQ$RM_QUEUE_TABLE11
    AQ$RM_QUEUE_TABLE1
    40 rows selected
    SQL> select table_name, iot_type from user_tables where table_name like 'AQ$%';
    AQ$_RM_QUEUE_TABLE7_S
    AQ$_RM_QUEUE_TABLE7_P
    AQ$_RM_QUEUE_TABLE7_L
    AQ$_RM_QUEUE_TABLE6_S
    AQ$_RM_QUEUE_TABLE6_P
    AQ$_RM_QUEUE_TABLE6_L
    AQ$_RM_QUEUE_TABLE5_S
    AQ$_RM_QUEUE_TABLE5_P
    AQ$_RM_QUEUE_TABLE5_L
    AQ$_RM_QUEUE_TABLE3_S
    AQ$_RM_QUEUE_TABLE3_P
    AQ$_RM_QUEUE_TABLE3_L
    AQ$_RM_QUEUE_TABLE2_S
    AQ$_RM_QUEUE_TABLE2_P
    AQ$_RM_QUEUE_TABLE2_L
    AQ$_RM_QUEUE_TABLE1_S
    AQ$_RM_QUEUE_TABLE1_P
    AQ$_RM_QUEUE_TABLE1_L
    AQ$_RM_QUEUE_TABLE16_S
    AQ$_RM_QUEUE_TABLE16_P
    AQ$_RM_QUEUE_TABLE16_L
    AQ$_RM_QUEUE_TABLE15_S
    AQ$_RM_QUEUE_TABLE15_P
    AQ$_RM_QUEUE_TABLE15_L
    AQ$_RM_QUEUE_TABLE12_S
    AQ$_RM_QUEUE_TABLE12_P
    AQ$_RM_QUEUE_TABLE12_L
    AQ$_RM_QUEUE_TABLE11_S
    AQ$_RM_QUEUE_TABLE11_P
    AQ$_RM_QUEUE_TABLE11_L
    AQ$_RM_QUEUE_TABLE7_T IOT
    AQ$_RM_QUEUE_TABLE7_I IOT
    AQ$_RM_QUEUE_TABLE7_H IOT
    AQ$_RM_QUEUE_TABLE7_G IOT
    AQ$_RM_QUEUE_TABLE7_D IOT
    AQ$_RM_QUEUE_TABLE7_C IOT
    AQ$_RM_QUEUE_TABLE6_T IOT
    AQ$_RM_QUEUE_TABLE6_I IOT
    AQ$_RM_QUEUE_TABLE6_H IOT
    AQ$_RM_QUEUE_TABLE6_G IOT
    AQ$_RM_QUEUE_TABLE6_D IOT
    AQ$_RM_QUEUE_TABLE6_C IOT
    AQ$_RM_QUEUE_TABLE5_T IOT
    AQ$_RM_QUEUE_TABLE5_I IOT
    AQ$_RM_QUEUE_TABLE5_H IOT
    AQ$_RM_QUEUE_TABLE5_G IOT
    AQ$_RM_QUEUE_TABLE5_D IOT
    AQ$_RM_QUEUE_TABLE5_C IOT
    AQ$_RM_QUEUE_TABLE3_T IOT
    AQ$_RM_QUEUE_TABLE3_I IOT
    AQ$_RM_QUEUE_TABLE3_H IOT
    AQ$_RM_QUEUE_TABLE3_G IOT
    AQ$_RM_QUEUE_TABLE3_D IOT
    AQ$_RM_QUEUE_TABLE3_C IOT
    AQ$_RM_QUEUE_TABLE2_T IOT
    AQ$_RM_QUEUE_TABLE2_I IOT
    AQ$_RM_QUEUE_TABLE2_H IOT
    AQ$_RM_QUEUE_TABLE2_G IOT
    AQ$_RM_QUEUE_TABLE2_D IOT
    AQ$_RM_QUEUE_TABLE2_C IOT
    AQ$_RM_QUEUE_TABLE1_T IOT
    AQ$_RM_QUEUE_TABLE1_I IOT
    AQ$_RM_QUEUE_TABLE1_H IOT
    AQ$_RM_QUEUE_TABLE1_G IOT
    AQ$_RM_QUEUE_TABLE1_D IOT
    AQ$_RM_QUEUE_TABLE1_C IOT
    AQ$_RM_QUEUE_TABLE16_T IOT
    AQ$_RM_QUEUE_TABLE16_I IOT
    AQ$_RM_QUEUE_TABLE16_H IOT
    AQ$_RM_QUEUE_TABLE16_G IOT
    AQ$_RM_QUEUE_TABLE16_D IOT
    AQ$_RM_QUEUE_TABLE16_C IOT
    AQ$_RM_QUEUE_TABLE15_T IOT
    AQ$_RM_QUEUE_TABLE15_I IOT
    AQ$_RM_QUEUE_TABLE15_H IOT
    AQ$_RM_QUEUE_TABLE15_G IOT
    AQ$_RM_QUEUE_TABLE15_D IOT
    AQ$_RM_QUEUE_TABLE15_C IOT
    AQ$_RM_QUEUE_TABLE12_T IOT
    AQ$_RM_QUEUE_TABLE12_I IOT
    AQ$_RM_QUEUE_TABLE12_H IOT
    AQ$_RM_QUEUE_TABLE12_G IOT
    AQ$_RM_QUEUE_TABLE12_D IOT
    AQ$_RM_QUEUE_TABLE12_C IOT
    AQ$_RM_QUEUE_TABLE11_T IOT
    AQ$_RM_QUEUE_TABLE11_I IOT
    AQ$_RM_QUEUE_TABLE11_H IOT
    AQ$_RM_QUEUE_TABLE11_G IOT
    AQ$_RM_QUEUE_TABLE11_D IOT
    AQ$_RM_QUEUE_TABLE11_C IOT
    90 rows selected
    SQL>

  • Dropping database queue from a databsae user

    Hi
    I want to drop a user chealth1 from our databse
    when i run the command
    drop user chealth1 cascade - I am getting error
    SQL> drop user chealth1 cascade;
    drop user chealth1 cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    all the queue from dba_queue belong to SYS user.
    how can i do this. when i run command
    EXEC dbms_aqadm.stop_queue('ALERT_QUE' ) i am getting error
    SQL> EXEC dbms_aqadm.stop_queue('ALERT_QUE' )
    BEGIN dbms_aqadm.stop_queue('ALERT_QUE' ); END;
    ERROR at line 1:
    ORA-24010: QUEUE CHEALTH1.ALERT_QUE does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4354
    ORA-06512: at "SYS.DBMS_AQADM", line 240
    ORA-06512: at line 1
    any suggestions
    kedar

    How did you know the queue name was ALERT_QUE ?
    what is the output of :
    SQL> select name, queue_table from user_queues ;?

  • 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.

  • 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?

  • Cannot drop queue objects - invalid username/password

    Folks - I'm having an issue where I cannot drop the user that owns my AQ/streams objects from an 11g database.
    SYS@bwapepd1> drop user streams cascade;
    drop user streams cascade
    ERROR at line 1:
    ORA-24008: queue table STREAMS.LB_SUBS_SOURCE_QT must be dropped first
    So then I try to drop the queue -
    SYS@bwapepd1> execute dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q');
    BEGIN dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q'); END;
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 3472
    ORA-06512: at "SYS.DBMS_AQADM", line 167
    ORA-06512: at line 1
    So, next I tried to drop the queue table with a force -
    SYS@bwapepd1> BEGIN
    dbms_aqadm.drop_queue_table(
    queue_table => 'STREAMS.LB_SUBS_SOURCE_QT',
    force => TRUE);
    END;
    BEGIN
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4215
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 2
    I've tried as both SYS and the STREAMS owner and both get the same invalid username/password error.
    Any help is much appreciated.
    Thx!
    rb

    There is insufficient information here to help you but my recommendation would be:
    1. Stop the queue
    2. Drop the queue
    3. Drop the queue table
    4. Drop the user with cascade
    If you are getting an insufficient privs message when logged on as SYS then you need to make sure that you are where you think you are: You are not. Perhaps you have a remote connection, for example.
    PS: Is this Windows and are you using the joke that is remote desktop? That is one example of not being where you think you are.

  • QoS - output queues dropped.

    Hi, i have a phone thats no working fine, it unregister all the time from the sip server. 
    The port connected to the phone has output queues dropped on queue 1. ¿That's normal? ¿What could be the cause that there drop packet?
    Thanks!
    I have this configuration for Qos on the switch port:
    interface FastEthernet0/15
     switchport mode access
     switchport voice vlan 15
     priority-queue out
     mls qos trust cos
     spanning-tree portfast
    sh mls qos int fa0/15 st
    FastEthernet0/15 (All statistics are in packets)
      dscp: incoming
      0 -  4 :      184994            0            0            0            0
      5 -  9 :           0            0            0            0            0
     10 - 14 :           0            0            0            0            0
     15 - 19 :           0            0            0            0            0
     20 - 24 :           0            0            0            0            0
     25 - 29 :           0      2298420            0            0            0
     30 - 34 :           0            0            0            0            0
     35 - 39 :           0            0            0            0            0
     40 - 44 :           0            0            0            0            0
     45 - 49 :           0      4806226            0        16934            0
     50 - 54 :           0            0            0            0            0
     55 - 59 :           0            0            0            0            0
     60 - 64 :           0            0            0            0
      dscp: outgoing
      0 -  4 :     8134930            0            0            0            0
      5 -  9 :           0            0            0            0            0
     10 - 14 :           0            0            0            0            0
     15 - 19 :           0            0            0            0            0
     20 - 24 :           0            0            0            0            0
     25 - 29 :           0            0            0            0            0
     30 - 34 :           0            0            0            0            0
     35 - 39 :           0            0            0            0            0
     40 - 44 :         861            0            0            0            0
     45 - 49 :           0            0            0            5            0
     50 - 54 :           0            0            0            0            0
     55 - 59 :           0            0            0            0            0
     60 - 64 :           0            0            0            0
      cos: incoming
      0 -  4 :      875001            0            0            0            0
      5 -  7 :     6544104            0            0
      cos: outgoing
      0 -  4 :     8781009            3            6            1            2
      5 -  7 :      275463            5        17983
      output queues enqueued:
     queue:    threshold1   threshold2   threshold3
     queue 0:      292615           0           0
     queue 1:     8562114       44049     5388502
     queue 2:           0           0           0
     queue 3:       17982           0      183824
      output queues dropped:
     queue:    threshold1   threshold2   threshold3
     queue 0:           0           0           0
     queue 1:        5349           0           0
     queue 2:           0           0           0
     queue 3:           0           0           0
    Policer: Inprofile:            0 OutofProfile:            0

    Martin,
    Refer to this link you need to modify your buffers etc. :http://www.cisco.com/c/en/us/support/docs/switches/catalyst-3750-series-switches/116089-technote-switches-output-drops-qos-00.html
    -Terry
    Please rate all helpful posts

  • Unable to drop database user

    Hi All,
    I am unable to drop database user and getting the folllowing error:
    " must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables "
    I find 3 table with AQ prefix in the schema but unable to drop these table even by using "sys" user.
    Any idea how can I do that ?
    Regards,

    Hi,
    select object_name,object_type from dba_objects where owner='USERNAME' and object_name like '%AQ%';TO drop the queue table, login as the owner and
    exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'PASTE_THE_OBJECT_NAME_FROM_ABOVE',force =>TRUE);Anand

  • Trying to set up some queue Variables

    I am trying to set some options up in a script and am having a few issues getting them right. Below is the list of things i am trying to do...
    Between the Queued label  and the QUEUE_START/Play Prompt step, we could add a Set Counter = 1  step
    Between the  QUEUE_START/Play Prompt step and the queueStatus = Get Reporting Statistics  step, we could add an If step to see If Counter > 5
    - True = Goto the logic  that offers the call to the Front Desk CSQ via the Select Resource  step
    - False (fall through to the existing Switch int step)
    Insert an Increment  Counter step between the Play Prompt and Goto QUEUE_START  steps
    So my first question is I do not see a "SET Counter" tag to insert. I am assuming it is the "SET" tag I want but then I need to add acounter variable to add to the tag. So  not sure how to add that variable down in the lower box
    Thanks
    Dave Peter

    I have a complete script attached
    with all the variables needed to for call queueing ring back
    and timing out after 6 minutes so that a Nurse
    queue will ring to the front desk queue. I have not tested this yet but everything is in it.
    Would be happy for someone to look over.
    basicly this script needs to send to to 2 diffrent queues and then if call is stuck in Nurse queue for 6 minutes it should roll to the Main Desk queue.
    I also am trying top figure out if I can make a sound play on the computer when the call is dropped in queue or is the only option to ring a phone?

  • Cannot drop user cascade

    Hi masters
    I cannot drop a user cascade, i'll get that error
    drop user HOMER cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    I'''ve triied the work around given in metalink but i do not have
    select owner, QUEUE_TABLE from dba_queue_tables for my HOMER user is empty.
    What shall i do now?

    ajallen wrote:
    Try note 236898.1. It is for 8 and 9 but may work for you. The symptoms seem similar.
    Or note 203225.1.
    I had the same problem (oracle 9.2.0.5 on Windows 2003).
    The table was visible in TOAD under the tables tab.
    SQL> EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE( queue_table => 'SYSADM.DOCDISTR_QTABLE
    ', FORCE => TRUE);
    BEGIN DBMS_AQADM.DROP_QUEUE_TABLE( queue_table => 'SYSADM.DOCDISTR_QTABLE', FORC
    E => TRUE); END;
    ERROR at line 1:
    ORA-24002: QUEUE_TABLE SYSADM.DOCDISTR_QTABLE does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2973
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 1
    SQL> select owner, queue_table from dba_queue_tables;
    OWNER QUEUE_TABLE
    SYS AQ_EVENT_TABLE
    SYS AQ_SRVNTFN_TABLE
    SYSTEM DEF$_AQCALL
    SYSTEM DEF$_AQERROR
    SQL> select object_name, object_type from user_objects where object_name like 'D
    OCDI%';
    OBJECT_NAME OBJECT_TYPE
    DOCDISTR_QTABLE TABLE
    I used note 236898.1 to drop this queue table. (read the statements carefully because the names of the functions can be confused with each other: corr_aq_92.drop_corrupted_ qt 92(..) and corr_aq_92.drop_corrupted_ q 92(..)
    For me, this is the solution.

  • 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/

  • Ghost QUEUE : exists to DBA but doesnt to the right schema

    Hello everyone!
    Im having some problems with Advanced queue ...
    I had to drop the queues from my schema, and unfortntly I made a bad decision to do that (I guess)
    To drop the Queue table, I executed the following command:
    alter session set events '10851 trace name context forever, level 2';
    then, I dropped like a usual table:
    DROP TABLE QUEUE_INIT_I1
    Some problems came with this ... I tried to drop the queue, but I couldn't (dont remember why, some kind of problem about the queue_table that I dropped). So, looking at the internet I found the following command:
    alter session set events '25475 trace name context forever, level 2';
    [Just like I did with the queue_table]
    then, I dropped it like a normal queue:
    exec exec DBMS_AQADM.DROP_QUEUE('QUEUE_INIT_I1');
    So ... here comes the problem: I tried to drop the user, then I couldn't, because I get the following error:
    ORA-24008: queue table USER.QUEUE_INIT_I1 must be dropped first
    But it already been dropped!
    With SYSTEM, I did the query:
    SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, STATUS FROM DBA_OBJECTS where object_name LIKE 'QUEUE_INIT_I1'
    OWNER OBJECT_NAME OBJECT_TYPE STATUS
    USER QUEUE_INIT_I1 QUEUE INVALID
    But with the user USER, I cant see the object! So, it's kind of a ghost queue. DBA_OBJECTS says that it exists, but in the right schema, it doesn't show up!
    Then, I tried to drop it, but the DBMS_AQADM says that it doesn't exists... I tried to recreate the following queue and DBMS_AQADM says that IT DOES EXISTS!
    It's a paradox
    So, anybody knows why this is happening? and how can I fixed? (to drop the user, or just recreate the queue again)
    Thanks for helping!

    It doesnt exists anymore at metalink.oracle.com
    but its ok ... I fixed the problem!
    looking the query that DBA_QUEUES and DBA_QUEUE_TABLES does, I found the following tables:
    aq$_queues
    aq$_queue_tables
    the DBA_QUEUES does a join between those tables, and the problem was that the PK was different in both. So, it couldnt show the queues in DBA_QUEUES because of that ...
    but, as I said, the queue didn't exists, and I just wanted to clean it from the system ... to be able to drop the schema!
    so, I doing this query:
    SELECT OWNER, OBJECT_NAME FROM DBA_OBJECTS WHERE UPPER(OBJECT_NAME) LIKE 'AQ%' AND OBJECT_TYPE='TABLE' AND OWNER IN ('SYS','SYSTEM','OWNER_OF_QUEUE');
    I found the candidates tables that could have registers about this queue ...
    then I did a search in every table looking for a table_name [or some column like that] that could have a register about that queue ...
    So I deleted those registers from there, and from obj$
    Finally, all the register about that queue was gone, and I was able to drop the schema
    I know that what I did was risk (TOO TOO risk), but was the only way to be able to drop the schema ...
    but dropping the schema, my problem was over and I was able to recreate it without problems...
    Not the best solution, but ... what can I do?
    but thanks for everyone that helped me !! I really appreciated that!

  • Problems in dropping the user

    Hi I am trying to drop the user which has got some queue tables. When I drop the user it is giving me
    SQL> drop user O2AQ_ADMIN cascade;
    drop user O2AQ_ADMIN cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    I read about in and learned that we need to use DBMS_AQADM.DROP_QUEUE_TABLE to drop the queue tables. So i queried the dba_queue_tables view to findout the name of the queue table, but it gave me this result.
    SQL> SELECT queue_table FROM DBA_QUEUE_TABLES WHERE owner ='O2AQ_ADMIN';
    no rows selected
    How can i proceed? I tried dropping the entire tablespace but that too is giving error
    Please advice . One more thing,I have the full logical backup of the db. Will that help in anyways?
    Thanks

    If you have already partially dropped a user owning Q's some manual cleanup may be required, have a look at the below note on My Oracle Support:
    How to Manually Cleanup Advanced Queuing Tables (Doc ID 203225.1)
    Thanks,
    Paul

  • Queue Tables

    How to drop Queue tables ?
    QL> drop user test cascade;
    drop user test cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables

    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/

  • Queue or Queue Table getting hanged

    Hi. I am having an interesting issue. The problem goes as below
    I have a queue table QT_PROMO_QUEUE and the associated queue Q_PROMO_QUEUE. This Queue has two agents QUEUE_AGENT1 and QUEUE_AGENT2.
    Suppose say i have enqueued one message into the this Q_PROMO_QUEUE, then if i have manually deleted(not purging) that message from the queue table QT_PROMO_QUEUE, then the queue is getting hanged. I am not able to perform any operations on the queue except enqueuing the new messages.
    I am not able to do below operations
    dequeuing the messages from the queue, stopping the queue, removing the subscribers from the queue, dropping the queue, or even purging the queue table, and dropping the queue table.
    Early replies are appreciated...Thanks in advance.

    when the Init is sucessfull in BW it initializes the DS in Delta Queue(RSA7) and if any of the documents gets posted they will come to update tables/extraction queue depends on the update mode you have selected in LO Cokpit. when you schedule the job control on LBWE - it transfer the delta records to RSA7

Maybe you are looking for