oracle 02303,invalid queue cannot recreate

Hi guys

I have an issue with a queue. We had to change the underlying type, which I did, but then the queue became invalid.

The queue was defined as:

DBMS_AQADM.CREATE_QUEUE_TABLE (

QUEUE_TABLE =>'QUERCUS.TRANSACTION_OUT_QT',

QUEUE_PAYLOAD_TYPE =>'transaction_out_queue_type',

SORT_LIST => 'priority, enq_time',

multiple_consumers => TRUE);

DBMS_AQADM.CREATE_QUEUE (

queue_name => 'QUERCUS.TRANSACTION_OUT',

queue_table => 'QUERCUS.TRANSACTION_OUT_QT',

QUEUE_TYPE          =>   SYS.DBMS_AQADM.NORMAL_QUEUE,

MAX_RETRIES         =>   10,

RETRY_DELAY         =>   10,

RETENTION_TIME      =>   0);

I had to change the type (actually these are nested types), anyway at the end I could normally compile the type used by the queue:

alter type transaction_out_queue_type compile;

/

Here comes the trouble.

The queue was invalid and I couldn't drop it because I was getting and oracle internal error.

I followed the advice contained here:

deleting stuff in our system tables:

delete from system.aq$_queue_tables where objno=(select objno from system.aq$_queue_tables where name='TRANSACTION_OUT_QT');

delete from system.aq$_queues where table_objno=(select table_objno from system.aq$_queues where name ='TRANSACTION_OUT');

delete from sys.AQ$_QUEUE_TABLE_AFFINITIES where table_objno=95495;

delete from SYS.EXPDEPACT$ where obj#=95495;

delete from sys.obj$ where name like '%TRANSACTION_OUT%'

and owner# in (1,136,139)

and ctime < trunc(sysdate-1);

And I was finally able to drop force the queue:

begin

dbms_aqadm.drop_queue_table('QUERCUS.TRANSACTION_OUT_QT',force => true);

end;

At this point I was almost done, I only needed to recreate it, but now when I try to recreate it:

begin

DBMS_AQADM.CREATE_QUEUE_TABLE (

QUEUE_TABLE =>'QUERCUS.TRANSACTION_OUT_QT',

QUEUE_PAYLOAD_TYPE =>'transaction_out_queue_type',

SORT_LIST => 'priority, enq_time',

multiple_consumers => TRUE);

end;

I get an error oracle no_Data_found in DBMS_AQADM at line 115.

At this point I have no queue and I also cannot create it again. I could create it with a different name but that's not what we want.

Could anybody help me out please?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值