oracle11g - Oracle queue is not been imp or exp in Oracle 11g -
i exported oracle database using command
exp system/password@sid file=c:\expdb.dmp
after import in instance using
imp system/password@sid file=c:\expdb.dmp
everything looks in closer notice queues , queue_tables did not new database.
after try exp/imp work while decide easier reinstall queues find had tables related queries in database first try
delete table
and got error:
ora-24005: inappropriate utilities used perform ddl on aq table
so try
begin dbms_aqadm.drop_queue_table('table',true); end;
and work. question is, how avoid trouble in first place? there way export database queues? missing flag? painful exersise each time have import new database queues.
you don't export oracle queues using exp or expdp.
you must create new queues in target database.
exp/imp queues lead database catalog corruption.
note: in 11gr2 documentation states:
export import of queues supported @ queue table level granularity. user needs export queue table. queues in queue table, primary object grants, related objects views, iots, rules automatically exported.
this valid if exp/imp using 11gr2 source , target database. aq definitions changes 11gr1 11gr2 instance.
and error message face when submitting delete statement:
this expected behaviour in 11.2. prevented performing inappropriate ddl on aq objects in 11.2 , ora-24005 reported.
to truncate queue table , associated iots, use dbms_aqadm.purge_queue_table.
Comments
Post a Comment