DBMS_AQ package

Hi there! I would like to send messages to a IBM WebSphere MQ using the DBMS_AQ package (ORACLE 10g) and PL/SQL but I don´t know how (as a matter of fact I am not sure if I have to use the DBMS_AQ package). I am very confused about it. No Java, I have to use PL/SQL. Sorry, I hate to post this kind of posts. Thank you in advanced.

Hi,
in order to send messages from an AQ to MQ you have to use the Oracle Message Gateway
(see e.g. http://filibeto.org/sun/lib/nonsun/oracle/11.2.0.1.0/E11882_01/server.112/e11013/mg_start.htm ).
Then you can put messages into an AQ (via DBMS_AQ) and then these messages will be transfered automatically
(via a DB scheduler and an agent process) to MQ. The installation is not so easy, but it is worthwile.
Kind regards,
WoG

Similar Messages

  • Help on Advanced Queing dbms_aq package

    How to install dbms_aq package on the database .
    please help
    vishal

    what version and edition of database are you running?

  • Using DBMS_AQ package in APEX

    Hello,
    I am trying to create a Queue table from application express. I read through a post on another forum that said some privs must be granted before a queue table can be created. They are:
    GRANT RESOURCE TO <UserName>;
    GRANT CONNECT TO <UserName>;
    GRANT EXECUTE ANY PROCEDURE TO <UserName>;
    GRANT aq_administrator_role TO <UserName>;
    GRANT aq_user_role TO <UserName>;
    GRANT EXECUTE ON dbms_aqadm TO <UserName>;
    GRANT EXECUTE ON dbms_aq TO <UserName>;
    GRANT EXECUTE ON dbms_aqin TO <UserName>;
    Once the above privs were granted, I was able to login to SQLPLUS and successfully create a queue table. The problem is, when I try to create the queue table from within Apex, I get the following error message:
    ORA-01950: no privileges on tablespace 'USERS'
    Any ideas why this could be happening?
    Thanks
    - Brian

    Scott,
    Thanks for the help so far. If I am understanding correctly, I basically just have to grant the necessary privileges needed to create the queue table to pads_devel. Here is some of the DDL I have for the pads_devel user:
    CREATE USER "PADS_DEVEL" PROFILE "DEFAULT" IDENTIFIED BY "*******" DEFAULT TABLESPACE "FLOW_3" TEMPORARY TABLESPACE "TEMP" QUOTA UNLIMITED ON "FLOW_2" QUOTA UNLIMITED ON "FLOW_3" QUOTA UNLIMITED ON "USERS" ACCOUNT UNLOCK
    BEGIN
       dbms_aqadm.grant_system_privilege(privilege=>'DEQUEUE_ANY',    
       grantee=>'PADS_DEVEL', admin_option=>FALSE);
       COMMIT;
    END;
    BEGIN
       dbms_aqadm.grant_system_privilege(privilege=>'ENQUEUE_ANY',  
       grantee=>'PADS_DEVEL', admin_option=>FALSE);
       COMMIT;
    END;
    BEGIN
       dbms_aqadm.grant_system_privilege(privilege=>'MANAGE_ANY',
       grantee=>'PADS_DEVEL', admin_option=>FALSE);
       COMMIT;
    END;
    GRANT SELECT ON "SYS"."DBA_AQ_AGENTS" TO "PADS_DEVEL"
    GRANT EXECUTE ON "SYS"."DBMS_AQ" TO "PADS_DEVEL"
    GRANT EXECUTE ON "SYS"."DBMS_AQADM" TO "PADS_DEVEL"
    GRANT EXECUTE ON "SYS"."DBMS_AQIN" TO "PADS_DEVEL"
    GRANT EXECUTE ON "SYS"."DBMS_AQ_BQVIEW" TO "PADS_DEVEL"There is obviously more but the above is what I think would be necessary to create the queue table and queue from apex 2.0.
    When I try to create a queue table I still get:
    ORA-01950: no privileges on tablespace 'USERS
    and when I try to create a queue (in a table I created in sqlplus) I still get:
    ORA-01031: insufficient privileges
    I'm not sure what I'm doing wrong here.
    Thanks a bunch!
    - Brian

  • Can not dequeue JMS message of type SYS.AQ$_JMS_TEXT_MESSAGE using DBMS_AQ

    I'm having a problem using DBMS_AQ package to dequeue a JMS message of type SYS.AQ$_JMS_TEXT_MESSAGE that was put on the queue using Java JMS API.
    Both JMS header and payload return empty but if I do "select user_data" from the queue table, I can see the message.
    Appreciate any helps or tips.
    Kim

    This has been asked a lot of times - I'm not sure how my initial searching missed all of the other questions/answers related to this topic.
    In our case, the solution was to:
    1) Leave the queue as a sys.aq$_jms_text_message type
    2) Construct a sys.xmltype object with our desired payload
    3) Do a getStringVal() on the xmltype object and use that string as the payload for our queue message
    - Nathan

  • Make execute privileges on a package default to all schemas

    I have to grant execute privileges on dbms_aq package to schemas created in our database. Instead of granting these privileges explicitly after a schema is created is there a way to make dbms_aq to be executable for all schemas and any new schemas created there after.
    Something along the lines of dbms_utility having executable privileges for all schemas.
    thanks for your help

    "grant execute on dbms_aq to public"

  • Issue in latest AQ/OC4J

    We have big problems using the latest preview version of OC4J (Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020725.1695)).
    There are two problems:
    v     Sending a message to the queue:
    In this case we try to send the message using the AQJMS libraries contained the latest OC4J. It shows an error:
    Error in Sending Messages : oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'AQ$_JMS_ENQUEUE_TEXT_MESSAGE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    v     Reading a message in a MDB:
    In this case we send the message using the old AQJMS libraries contained in JDeveloper 9.0.2.829.
    We use a MDB with Container managed persistence and <trans-attribute>Required</trans-attribute>
    The message is read correctly and the MDB.onMessage executed, OC4J creates a transaction (probably to delete the message) but never releases it: the database stays with a lock until we hard kill the oc4j server (shutdown not working in this case). (as if it did select message, delete message, execute onMessage, but never commit)
    If we start oc4j again, the messages are then re-executed. This might be normal behavior, but then, when are the messages released
    If we use <trans-attribute>Mandatory</trans-attribute>the message is read normally, but deleted right away from the queue. If we kill the server during the onMessage, the message is still deleted from the queue (as if it did select message, delete message, commit, execute onMessage) and this is not nice.
    It seems to me the problem comes from an incompatibility between the latest OC4J.jars and the DBMS_AQ* packages installed on the Oracle database. These packages are old: all dated from the 23/05/01).
    I therefore believe that a new version of these packages should have been installed along with the OC4J.jar, but these new version could not be found.
    Database version 9.0.1.3 + patch 2416054, as stated in the OC4J release note (date:22/07/02).
    Below: the MDB, the ejb-jar and orion-ejb-jar xml files, and the stand alone class used to send the message.
    // the MDB
    public class mdbTest implements MessageDrivenBean, javax.jms.MessageListener
         private MessageDrivenContext messageContext;
    public mdbTest()
         public void ejbRemove()
              System.out.println("mdbTest ejbRemove()");
         public void setMessageDrivenContext(MessageDrivenContext context)
              this.messageContext = context;
         public void ejbCreate()
              System.out.println("mdbTest ejbCreate()");
    public void onMessage(Message message)
    try
    System.out.println("Received message in mdbTest class.Sleeping now.");
    Thread.sleep(5000);
    System.out.println("end sleep");
    } catch (Exception ex)
    ex.printStackTrace();
    // the ejb-jar.xml
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
                   <ejb-name>mdbTest</ejb-name>
                   <ejb-class>dk.ergoidp.epostmessenger.test.mdbTest</ejb-class>
                   <transaction-type>Container</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Queue</destination-type>
                   </message-driven-destination>
              </message-driven>
    </enterprise-beans>
         <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>mdbTest</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    //the orion ejb-jar.xml
    <orion-ejb-jar>
    <enterprise-beans>
         <message-driven-deployment name="mdbTest"
    destination-location="java:comp/resource/ojms/Queues/jmsuser.IC_CONTROLLER_QUEUE"
    connection-factory-location="java:comp/resource/ojms/QueueConnectionFactories/lloQueueCF">
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role>" impliesAll="true"/>
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    //class used to send the message in the queue
    public class SendQueue
    public SendQueue()
    public static void sendQueue(String host, String dbName, int port,
    String driverType, String userName, String queueName)
    QueueSession qsess = null;
    QueueConnectionFactory qcfact;
    QueueConnection qconn;
    Queue q1 ;
    QueueSender qsender;
    try
    qcfact = AQjmsFactory.getQueueConnectionFactory(host, dbName, port, driverType);
    /* Create Queue Connection */
    qconn = qcfact.createQueueConnection( "jmsuser","jmsuser");
    /* Create a Queue Session */
    qsess = qconn.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    qconn.start() ;
    /* Get Queue */
    q1 = ((AQjmsSession)qsess).getQueue(userName, queueName) ;
    System.out.println("Sending messages...") ;
    TextMessage message = qsess.createTextMessage();
    message.setStringProperty("action", "start");
    // Create Queue Sender
    qsender = qsess.createSender(q1) ;
    qsender.send(q1, message, DeliveryMode.PERSISTENT,
    1, AQjmsConstants.EXPIRATION_NEVER ) ;
    qsess.commit();
    qsess.close() ;
    qconn.close() ;
    System.out.println("Successfully Sent Messages.");
    } catch (JMSException e) {
    System.out.println("Error in Sending Messages : " + e) ;
    public static void main (String [] args)
    SendQueue.sendQueue("magni", "test", 1521, "thin", "JMSUSER", "IC_CONTROLLER_QUEUE");
    // SendQueue.sendQueue("ntws13", "test", 1521, "thin", "JMSUSER", "IC_CONTROLLER_QUEUE");

    I install the database beniot is using.
    The database instance was created after the patches was applied.
    diff /oracle/oracle/OraHome1/rdbms/admin/.catqueue.sql.* /oracle/oracle/OraHome1/rdbms/admin/catqueue.sql
    50a51
    Rem qialiu 06/06/02 - add calling prvtaqal.plb.1525a1527
    @@prvtaqal.plbThe patch is 9.0.1.3.patch-set and 2416054 not 241605 as you write.
    The oc4j J2EE (build 020725.1695) from 2002-07-31 is install in D:\OC4J_903\
    The commend to run it is (JDev 9.0.2.829 :
    C:\Programs\jDev\jdk\bin\javaw.exe -ojvm -classpath D:\Code\testAQ\classes;D:\OC4J_903\j2ee\home\lib\aqapi.jar;D:\OC4J_903\j2ee\home\lib\jms.jar;D:\OC4J_903\j2ee\home\oc4j.jar;D:\OC4J_903\j2ee\home\lib\ejb.jar;D:\OC4J_903\j2ee\home\lib\activation.jar;D:\OC4J_903\j2ee\home\lib\jcert.jar;D:\OC4J_903\j2ee\home\lib\jndi.jar;D:\OC4J_903\j2ee\home\lib\jnet.jar;D:\OC4J_903\j2ee\home\lib\jta.jar;D:\OC4J_903\j2ee\home\lib\mail.jar;D:\OC4J_903\j2ee\home\lib\ejb.jar;D:\OC4J_903\j2ee\home\lib\jaxp.jar;D:\OC4J_903\j2ee\home\lib\jdbc.jar;D:\OC4J_903\j2ee\home\lib\jaas.jar;D:\OC4J_903\j2ee\home\lib\jsse.jar dk.ergoidp.epostmessenger.test.SendQueue
    The result:
    Error in Sending Messages : oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'AQ$_JMS_ENQUEUE_TEXT_MESSAGE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Is it the right jar file and in the right sequence?
    Lars

  • Access result set in user define type of table

    here is the situation. I have a stored procedure that dequeues messages of a AQ and passes them as an OUT parameter in a collection of a user defined type. The same type used to define the queues. The java code executes properly but seems like we don't/can't access the result set. We don't receive any erros but don't know how to access the results. I've included relevant parts of the problem.
    I know this should be doable but........Can someone please tell us what we are doing wrong....thanks in advance.
    -----create object type
    create type evt_ot as object(
    table_name varchar(40),
    table_data varchar(4000));
    ---create table of object types.
    create type msg_evt_table is table of evt_ot;
    ----create queue table with object type
    begin
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    Queue_table => 'etlload.aq_qtt_text',
    Queue_payload_type => 'etlload.evt_ot');
    end;
    ---create queues.
    begin
    DBMS_AQADM.CREATE_QUEUE (
    Queue_name => 'etlload.aq_text_que',
    Queue_table => 'etlload.aq_qtt_text');
    end;
    Rem
    Rem Starting the queues and enable both enqueue and dequeue
    Rem
    EXECUTE DBMS_AQADM.START_QUEUE (Queue_name => 'etlload.aq_text_que');
    ----create procedure to dequeue an array and pass it OUT using msg_evt_table ---type collection.
    create or replace procedure test_aq_q (
    i_array_size in number ,
    o_array_size out number ,
    text1 out msg_evt_table) is
    begin
    DECLARE
    message_properties_array dbms_aq.message_properties_array_t :=
    dbms_aq.message_properties_array_t();
    msgid_array dbms_aq.msgid_array_t;
    dequeue_options dbms_aq.dequeue_options_t;
    message etlload.msg_evt_table;
    id pls_integer := 0;
    retval pls_integer := 0;
    total_retval pls_integer := 0;
    ctr number :=0;
    havedata boolean :=true;
    java_exp exception;
    no_messages exception;
    pragma EXCEPTION_INIT (java_exp, -24197);
    pragma exception_init (no_messages, -25228);
    BEGIN
    DBMS_OUTPUT.ENABLE (20000);
    dequeue_options.wait :=0;
    dequeue_options.correlation := 'event' ;
    id := i_array_size;
    -- Dequeue this message from AQ queue using DBMS_AQ package
    begin
    retval := dbms_aq.dequeue_array(
    queue_name => 'etlload.aq_text_que',
    dequeue_options => dequeue_options,
    array_size => id,
    message_properties_array => message_properties_array,
    payload_array => message,
    msgid_array => msgid_array);
    text1 := message;
    o_array_size := retval;
    EXCEPTION
    WHEN java_exp THEN
    dbms_output.put_line('exception information:');
    WHEN no_messages THEN
    havedata := false;
    o_array_size := 0;
    end;
    end;
    END;
    ----below is the java code....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Struct;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    public class TestOracleArray {
         private final String SQL = "{call etlload.test_aq_q(?,?,?)}";//array size, var name for return value, MessageEventTable
         private final String driverClass = "oracle.jdbc.driver.OracleDriver";
         private final String serverName = "OurServerName";
         private final String port = "1500";
         private final String sid = "OurSid";
         private final String userId = "OurUser";
         private final String pwd = "OurPwd";
         Connection conn = null;
         public static void main(String[] args){
              TestOracleArray toa = new TestOracleArray();
              try {
                   toa.go();
              } catch (InstantiationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IllegalAccessException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private void go() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException{
              Class.forName(driverClass).newInstance();
              String url = "jdbc:oracle:thin:@"+serverName+":"+port+":"+sid;
              conn = DriverManager.getConnection(url,userId,pwd);
              OracleCallableStatement stmt = (OracleCallableStatement)conn.prepareCall(SQL);
              //set 1 input
              stmt.setInt(1, 50);
              //register out 1
              stmt.registerOutParameter(2, OracleTypes.NUMERIC);
              //register out 2
              stmt.registerOutParameter(3, OracleTypes.ARRAY, "MSG_EVT_TABLE");
              * This code returns a non-null ResultSet but there is no data in the ResultSet
              * ResultSet rs = stmt.executeQuery();
              * rs.close();
              * Tried all sorts of combinations of getXXXX(1);
              * All return the same error Message: Invalid column index
              * So it appears that the execute statment returns no data.
              stmt.execute();
              Struct myObject = (Struct)stmt.getObject(1);
              stmt.close();
              conn.close();
    }

    Hi,
    Sorry but I'd refer you to the following sections (and code samples/snippets) in my book:
    Mapping User-Defined Object Types (AD) to oracle.sql.STRUCT in section 3.3, shows how to pass user defined types as IN, OUT,IN/OUT
    JMS over Streams/AQ in the Database: shows how to consume AQ
    message paylod in section 4.2.4
    CorporateOnine, in section 17.2, show how to exchanges user defined type objects b/w AQ and JMS
    All these will hopefully help you achieve what you are trying to do.
    Kuassi

  • Reading Advance Queuing with XMLType payload and JDBC Driver character encoding

    Hi
    I've got a problem retrieving the message from the queue with XMLType payload in Java.
    It was working fine in 10g database but after the switch to 11g it returns corrupted string instead of real XML message. Database NLS_LANG setting is AL32UTF8
    It is said that JDBC driver should deal with that automatically but it obviously don't in this case. When I dequeue the message using database functionality (DBMS_AQ package) it looks fine but not when using JDBC driver so Ithink it is character encoding issue or so. The message itself is enqueued by the database and supposed to be retrieved by dedicated EJB.
    Driver file used: ojdbc6.jar
    Additional libraries: aqapi.jar, xdb.jar
    All file taken from 11g database installation.
    What shoul dI do to get the xml message correctly?

    Do you mean NLS_LANG is AL32UTF8 or the database character set is AL32UTF8? What is the database character set (SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET')?
    Thanks,
    Sergiusz

  • Queue name qualification

    We are using advanced queues.
    There's a user TIA which owns all db objects, one of those is advanced queue named AQ_INT_ONLINE_QUEUE_SEND.
    There's a package BCP_INT_ONLINE in which there's a function SendToAs, that (besides others) enqueue a message
    into above mentioned queue.
    Everything works fine.
    Then I create a user X :
    create user x identified by x;
    grant connect, resource to x;
    and I grant the execute privilege to x on above mentioned package.
    grant execute on bcp_int_online to x;
    Then I connect as user X.
    connect x/x
    And if I want to execute a function BCP_INT_ONLINE.SendToAs that enqueues a message I got the error message
    ORA-25205: the QUEUE X.AQ_INT_ONLINE_QUEUE_SEND does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 204
    ORA-06512: at "TIA.BCP_INT_ONLINE", line 608
    ORA-06512: at "TIA.BCP_INT_ONLINE", line 91
    Notice that the package is looking for the queue that is owned bz user X.
    I believe that the cause is that dbms_aq package is implemented with invoker rights, but I cannot find the solution.
    I tried also following grants to x, none of them helped.
    exec dbms_aqadm.grant_queue_privilege('ALL', 'AQ_INT_ONLINE_QUEUE_SEND', 'X')
    grant aq_user to x;
    grant dba to x;
    Thank you for any input.

    Hi,
    Abstrart from http://help.sap.com/saphelp_nw70/helpdata/EN/7b/94553b4d53273de10000000a114084/frameset.htm on EOIO.
    Quality of Service EOIO
    In this case, the queue names supplied by the application are used to determine the suffix of the sender, receiver, and inbound queues. This name must not be more than 16 characters long and it is added to the prefix of the queue name. You can use the following characters in the name: numbers (0-9); upper case letters (A-Z); underscores (_); and forward slashes (/).
    Queue name from the application: APPQUEUENAME (maximum 16 characters)
    Inbound queue name: XBQIAPPQUEUENAME
    The name of the corresponding outbound queue is determined on the central Integration Server to bundle the messages according to receiver. This is done by using the name of the determined receiver. In this case the name of the application queue is used as well.
    Receiver name: CLIENT_XYZ
    Encrypted name: 3___
    Outbound queue name: XBQO3___APPQUEUENAME (maximum of 24 characters)
    Inbound messages with the same receiver are processed in the same sequence that they arrived. The messages are also sent in this sequence to their respective receivers; because they have the same queue name that was supplied by the application, they are placed in the same outbound queue.
    If an error occurs in the processing, the incorrect message blocks the queue to preserve the processing order.
    However, if the messages have different receivers, the sequence does not have to stay the same.
    Cheers,
    sunil.

  • Can the AQ Adapter send a JMS Message?

    I'm trying to use the AQ adapter to enqueue an XML message into a queue who's payload type is AQ$JMS_TEXT_MESSAGE so that it can be consumed by a Message Driven Bean in OC4J.
    Simply sending the XML reults in:
    "AQ Adapter: ** Error ** Can not enqueue messages to queue PLEDGE. ADT Payload defined for Queue PLEDGE does not match with OAI Message. Please check attribute "Pledge". In order for the AQ Adapter to enqueue OAI messages to the queue, the queue payload must match the ADT imported through iStudio."
    I tried importing the AQ%JMS_TEXT_MESSAGE but can't see any easy way to construct it.
    Is this even possible?
    -Doug

    Doug,
    the AQ$JMS_TEXT_MESSAGE is an object type. So you'll need to import that type as your application view.
    The problem with this JMS objecttype is how to populate it.
    When your text (XML) is more than 4000 characters in length, the TEXT_LOB attribute should get the text. If less, the TEXT_VC attribute should get the text. In any case, the TEXT_LEN should be set to the length of the XML.
    AFAIK, you can't currently do this with InterConnect directly.
    The most popular solution is to have InterConnect deliver this message to a simple non-JMS queue and have some PL/SQL or java code convert it to a proper JMS text message and put it in the JMS text queue.
    There are some features in the DBMS_AQ package to register a plsql procedure to be triggered when a message arrives (dbms_aq.register). That could be a procedure which converts the message for you.
    In ProcessConnect (coming soon) there is a dedicated JMS adapter available.
    HTH, Marc

  • ORA-0001 on dequeue?

    In production every now and then we get an ORA-0001 error when dequeuing a message. We use:
    1 Solaris 10
    2 Oracle 10g
    3 C++ application
    4 PROC*C with dbms_aq package for queuing operations
    5 Queues with XML payload
    6 We handle a large volume of messages (1K/min).
    Any clue why would a dequeue result in an ORA-0001 (unique constraint) error?

    Hello,
    No it is not an issue I have ever come across on dequeue. The only time I could imagine this happening is on enqueue if the MSGID is not unique. Only on AIX have i seen an issue related to ORA-1 on enqueue.
    On dequeue your msgid has already been created and you are effectively just selecting out the message.
    The only way I could you progressing this would be to set an errorstack on ORA-1 but that would be more trouble than it is worth unless you can be reasonably sure you can reproduce the issue within a small timeframe otherwise you will get lots of tracefiles for perfectly legitimate ORA-1 errors.
    Thanks
    Peter

  • Dequeue from Advanced Queue

    Hi All,
    I have used the DBMS_AQ package provided dequeue functionality for dequeuing msgs from my advanced queue. Now there is a job which dequeue the items from this queue and sends out email. Now what is happening is the job picks up an item from the advanced queue for dequeuing and sends out email, but the item which is picked up still remains in the queue and is not dequeued. As the job runs every minute and polls the queue, it again picks up the same queue item and sends the email. This process repeats for 5-6 times and then the queue message expires. My requirement is that, the job should dequeue the item from the queue and just send email once. Please can anyone suggest what could be the solution to this problem?

    10g is not a version number it is a marketing label that applies equally to 10.1.0.2 and 10.2.0.4 and a lot of versions in between.
    That said I know this demo I wrote works in all versions of 10.2:
    http://www.psoug.org/reference/aq_demo1.html
    Compare it to what you are doing.

  • Is "unsuccessful export" any good?

    Hi:
    I did an export with full=Y direct=Y consistent=Y. It did everything OK except for...
    . exporting roles
    EXP-00008: ORACLE error 4045 encountered
    ORA-04045: errors during recompilation/revalidation of SYS.DBMS_AQ_SYS_EXP_INTERNAL
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-905: object SYS.AQ$_SUBSCRIBERS is invalid
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "SYS.DBMS_AQ_EXP_QUEUES", line 141
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AQ_EXP_QUEUES.grant_sysprivs_exp
    But it went ahead and exported millions and millions of data records, generating a evry large export file in the end.
    Q: Will I be able to IMPORT using this export file in the future should I need to do that?
    I don't want to experiment with this, because I'll clobber my DB in the process. My development DB instance does not have this problem, so I can't test there.
    Any insights as to what might be wrong with the DB instance to create this problem?
    Oracle8i 8.1.7.0.0 on Alpha Tru64
    Thanks

    891 INVALIDS (gulp!)
    SVRMGR> select object_name, object_type from dba_objects where status = 'INVALID';
    OBJECT_NAME OBJECT_TYPE
    ALL_POLICIES VIEW
    ALL_PROBE_OBJECTS VIEW
    ALL_QUEUES VIEW
    ALL_QUEUE_TABLES VIEW
    ALL_REGISTERED_SNAPSHOTS VIEW
    ALL_REPCAT VIEW
    ALL_REPCATLOG VIEW
    ALL_REPCAT_REFRESH_TEMPLATES VIEW
    ALL_REPCAT_TEMPLATE_OBJECTS VIEW
    ALL_REPCAT_TEMPLATE_PARMS VIEW
    ALL_REPCAT_TEMPLATE_SITES VIEW
    ALL_REPCAT_USER_AUTHORIZATIONS VIEW
    ALL_REPCAT_USER_PARM_VALUES VIEW
    ALL_REPCOLUMN VIEW
    ALL_REPCOLUMN_GROUP VIEW
    ALL_REPDDL VIEW
    ALL_REPFLAVOR_COLUMNS VIEW
    ALL_REPFLAVOR_OBJECTS VIEW
    ALL_REPGENERATED VIEW
    ALL_REPGENOBJECTS VIEW
    ALL_REPGROUP VIEW
    ALL_REPGROUPED_COLUMN VIEW
    ALL_REPGROUP_PRIVILEGES VIEW
    ALL_REPKEY_COLUMNS VIEW
    ALL_REPOBJECT VIEW
    ALL_REPPROP VIEW
    ALL_SNAPSHOTS VIEW
    ALL_SNAPSHOT_LOGS VIEW
    ALL_SNAPSHOT_REFRESH_TIMES VIEW
    ALL_SOURCE VIEW
    AQ$_DEQUEUE_HISTORY TYPE
    AQ$_DEQUEUE_HISTORY_T TYPE
    AQ$_DUMMY_T TYPE
    AQ$_HISTORY TYPE
    AQ$_JMS_BYTES_MESSAGE TYPE
    AQ$_JMS_HEADER TYPE
    AQ$_JMS_MAP_MESSAGE TYPE
    AQ$_JMS_OBJECT_MESSAGE TYPE
    AQ$_JMS_STREAM_MESSAGE TYPE
    AQ$_JMS_TEXT_MESSAGE TYPE
    AQ$_JMS_USERPROPARRAY TYPE
    AQ$_JMS_USERPROPERTY TYPE
    AQ$_NOTIFY_MSG TYPE
    AQ$_RECIPIENTS TYPE
    AQ$_SUBSCRIBERS TYPE
    CLIENT_IP_ADDRESS FUNCTION
    DATABASE_NAME FUNCTION
    DBA_CACHEABLE_OBJECTS VIEW
    DBA_IAS_GEN_STMTS VIEW
    DBA_IAS_GEN_STMTS_EXP VIEW
    DBA_IAS_OBJECTS VIEW
    DBA_IAS_OBJECTS_BASE VIEW
    DBA_IAS_POSTGEN_STMTS VIEW
    DBA_IAS_PREGEN_STMTS VIEW
    DBA_IAS_TEMPLATES VIEW
    DBA_QUEUES VIEW
    DBA_QUEUE_SCHEDULES VIEW
    DBA_REGISTERED_SNAPSHOTS VIEW
    DBA_REPCAT VIEW
    DBA_REPCAT_USER_AUTHORIZATIONS VIEW
    DBA_REPCAT_USER_PARM_VALUES VIEW
    DBA_REPCOLUMN VIEW
    DBA_REPFLAVOR_COLUMNS VIEW
    DBA_REPFLAVOR_OBJECTS VIEW
    DBA_REPGENERATED VIEW
    DBA_REPGENOBJECTS VIEW
    DBA_REPGROUP VIEW
    DBA_REPGROUP_PRIVILEGES VIEW
    DBA_REPOBJECT VIEW
    DBA_REPPRIORITY_GROUP VIEW
    DBA_REPPROP VIEW
    DBA_REPSITES VIEW
    DBA_RULESETS VIEW
    DBA_SEGMENTS VIEW
    DBA_SNAPSHOTS VIEW
    DBA_SNAPSHOT_LOGS VIEW
    DBA_TRIGGERS VIEW
    DBA_TRIGGER_COLS VIEW
    DBJ_LONG_NAME FUNCTION
    DBJ_SHORT_NAME FUNCTION
    DBMSOBJG PACKAGE
    DBMSOBJG PACKAGE BODY
    DBMSOBJG2 PACKAGE
    DBMSOBJG2 PACKAGE BODY
    DBMSOBJGWRAPPER PACKAGE
    DBMSOBJGWRAPPER PACKAGE BODY
    DBMS_ALERT PACKAGE
    DBMS_ALERT PACKAGE BODY
    DBMS_AQ PACKAGE
    DBMS_AQ PACKAGE BODY
    DBMS_AQADM PACKAGE BODY
    DBMS_AQADM_SYS PACKAGE BODY
    DBMS_AQADM_SYSCALLS PACKAGE
    DBMS_AQADM_SYSCALLS PACKAGE BODY
    DBMS_AQIN PACKAGE
    DBMS_AQIN PACKAGE BODY
    DBMS_AQJMS PACKAGE
    DBMS_AQJMS PACKAGE BODY
    DBMS_AQ_EXP_HISTORY_TABLES PACKAGE
    DBMS_AQ_EXP_HISTORY_TABLES PACKAGE BODY
    DBMS_AQ_EXP_INDEX_TABLES PACKAGE
    DBMS_AQ_EXP_INDEX_TABLES PACKAGE BODY
    DBMS_AQ_EXP_QUEUE_TABLES PACKAGE
    DBMS_AQ_EXP_QUEUE_TABLES PACKAGE BODY
    DBMS_AQ_EXP_SUBSCRIBER_TABLES PACKAGE
    DBMS_AQ_EXP_SUBSCRIBER_TABLES PACKAGE BODY
    DBMS_AQ_EXP_TIMEMGR_TABLES PACKAGE
    DBMS_AQ_EXP_TIMEMGR_TABLES PACKAGE BODY
    DBMS_AQ_EXP_ZECURITY PACKAGE BODY
    DBMS_AQ_IMPORT_INTERNAL PACKAGE BODY
    DBMS_AQ_IMP_INTERNAL PACKAGE
    DBMS_AQ_IMP_INTERNAL PACKAGE BODY
    DBMS_AQ_IMP_ZECURITY PACKAGE BODY
    DBMS_AQ_SYS_EXP_ACTIONS PACKAGE
    DBMS_AQ_SYS_EXP_ACTIONS PACKAGE BODY
    DBMS_AQ_SYS_EXP_INTERNAL PACKAGE BODY
    DBMS_AQ_SYS_IMP_INTERNAL PACKAGE
    DBMS_AQ_SYS_IMP_INTERNAL PACKAGE BODY
    DBMS_ASYNCRPC_PUSH PACKAGE
    DBMS_ASYNCRPC_PUSH PACKAGE BODY
    DBMS_BACKUP_RESTORE PACKAGE
    DBMS_BACKUP_RESTORE PACKAGE BODY
    DBMS_DDL_INTERNAL PACKAGE BODY
    DBMS_DEBUG PACKAGE
    DBMS_DEBUG PACKAGE BODY
    DBMS_DEBUG_VC2COLL TYPE
    DBMS_DEFER PACKAGE
    DBMS_DEFER PACKAGE BODY
    DBMS_DEFERGEN PACKAGE
    DBMS_DEFERGEN PACKAGE BODY
    DBMS_DEFERGEN_AUDIT PACKAGE
    DBMS_DEFERGEN_AUDIT PACKAGE BODY
    DBMS_DEFERGEN_INTERNAL PACKAGE
    DBMS_DEFERGEN_INTERNAL PACKAGE BODY
    DBMS_DEFERGEN_LOB PACKAGE
    DBMS_DEFERGEN_LOB PACKAGE BODY
    DBMS_DEFERGEN_PRIORITY PACKAGE
    DBMS_DEFERGEN_PRIORITY PACKAGE BODY
    DBMS_DEFERGEN_RESOLUTION PACKAGE
    DBMS_DEFERGEN_RESOLUTION PACKAGE BODY
    DBMS_DEFERGEN_UTIL PACKAGE
    DBMS_DEFERGEN_UTIL PACKAGE BODY
    DBMS_DEFERGEN_WRAP PACKAGE
    DBMS_DEFERGEN_WRAP PACKAGE BODY
    DBMS_DEFER_ENQ_UTL PACKAGE
    DBMS_DEFER_ENQ_UTL PACKAGE BODY
    DBMS_DEFER_INTERNAL_QUERY PACKAGE
    DBMS_DEFER_INTERNAL_QUERY PACKAGE BODY
    DBMS_DEFER_INTERNAL_SYS PACKAGE
    DBMS_DEFER_INTERNAL_SYS PACKAGE BODY
    DBMS_DEFER_QUERY PACKAGE
    DBMS_DEFER_QUERY PACKAGE BODY
    DBMS_DEFER_QUERY_UTL PACKAGE
    DBMS_DEFER_QUERY_UTL PACKAGE BODY
    DBMS_DEFER_REPCAT PACKAGE
    DBMS_DEFER_REPCAT PACKAGE BODY
    DBMS_DEFER_SYS PACKAGE BODY
    DBMS_DEFER_SYS_PART1 PACKAGE
    DBMS_DEFER_SYS_PART1 PACKAGE BODY
    DBMS_DESCRIBE PACKAGE
    DBMS_DESCRIBE PACKAGE BODY
    DBMS_DISTRIBUTED_TRUST_ADMIN PACKAGE
    DBMS_DISTRIBUTED_TRUST_ADMIN PACKAGE BODY
    DBMS_EPGC PACKAGE
    DBMS_EPGC PACKAGE BODY
    DBMS_HS PACKAGE
    DBMS_HS PACKAGE BODY
    DBMS_HS_ALT PACKAGE
    DBMS_HS_ALT PACKAGE BODY
    DBMS_HS_CHK PACKAGE
    DBMS_HS_CHK PACKAGE BODY
    DBMS_HS_EXTPROC PACKAGE
    DBMS_HS_EXTPROC PACKAGE BODY
    DBMS_HS_UTL PACKAGE
    DBMS_HS_UTL PACKAGE BODY
    DBMS_IAS_CONFIGURE PACKAGE
    DBMS_IAS_CONFIGURE PACKAGE BODY
    DBMS_IAS_INST PACKAGE
    DBMS_IAS_INST PACKAGE BODY
    DBMS_IAS_INST_UTL PACKAGE
    DBMS_IAS_INST_UTL PACKAGE BODY
    DBMS_IAS_MT_INST PACKAGE
    DBMS_IAS_MT_INST PACKAGE BODY
    DBMS_IAS_QUERY PACKAGE
    DBMS_IAS_QUERY PACKAGE BODY
    DBMS_IAS_SESSION PACKAGE BODY
    DBMS_IAS_TEMPLATE PACKAGE
    DBMS_IAS_TEMPLATE PACKAGE BODY
    DBMS_IJOB PACKAGE BODY
    DBMS_INTERNAL_REPCAT PACKAGE
    DBMS_INTERNAL_REPCAT PACKAGE BODY
    DBMS_INTERNAL_TRIGGER PACKAGE
    DBMS_INTERNAL_TRIGGER PACKAGE BODY
    DBMS_IREFRESH PACKAGE
    DBMS_IREFRESH PACKAGE BODY
    DBMS_ISNAPSHOT PACKAGE
    DBMS_ISNAPSHOT PACKAGE BODY
    DBMS_JAVA_TEST PACKAGE
    DBMS_JAVA_TEST PACKAGE BODY
    DBMS_JOB PACKAGE BODY
    DBMS_LOB PACKAGE
    DBMS_LOB PACKAGE BODY
    DBMS_LOCK PACKAGE BODY
    DBMS_LOGMNR PACKAGE
    DBMS_LOGMNR PACKAGE BODY
    DBMS_LOGMNR_D PACKAGE
    DBMS_LOGMNR_D PACKAGE BODY
    DBMS_MAINT_GEN PACKAGE
    DBMS_MAINT_GEN PACKAGE BODY
    DBMS_NAMESPACE PACKAGE
    DBMS_NAMESPACE PACKAGE BODY
    DBMS_OBFUSCATION_TOOLKIT PACKAGE
    DBMS_OBFUSCATION_TOOLKIT PACKAGE BODY
    DBMS_OBFUSCATION_TOOLKIT_FFI PACKAGE
    DBMS_OBFUSCATION_TOOLKIT_FFI PACKAGE BODY
    DBMS_OFFLINE_INTERNAL PACKAGE
    DBMS_OFFLINE_INTERNAL PACKAGE BODY
    DBMS_OFFLINE_OG PACKAGE
    DBMS_OFFLINE_OG PACKAGE BODY
    DBMS_OFFLINE_RGT PACKAGE
    DBMS_OFFLINE_RGT PACKAGE BODY
    DBMS_OFFLINE_SNAPSHOT PACKAGE
    DBMS_OFFLINE_SNAPSHOT PACKAGE BODY
    DBMS_OFFLINE_UTL PACKAGE
    DBMS_OFFLINE_UTL PACKAGE BODY
    DBMS_ORACLE_TRACE_AGENT PACKAGE
    DBMS_ORACLE_TRACE_AGENT PACKAGE BODY
    DBMS_ORACLE_TRACE_USER PACKAGE
    DBMS_ORACLE_TRACE_USER PACKAGE BODY
    DBMS_PCLXUTIL PACKAGE
    DBMS_PCLXUTIL PACKAGE BODY
    DBMS_PICKLER PACKAGE
    DBMS_PICKLER PACKAGE BODY
    DBMS_PIPE PACKAGE
    DBMS_PIPE PACKAGE BODY
    DBMS_PITR PACKAGE
    DBMS_PITR PACKAGE BODY
    DBMS_PLUGTS PACKAGE
    DBMS_PLUGTS PACKAGE BODY
    DBMS_PRVTAQIM PACKAGE
    DBMS_PRVTAQIM PACKAGE BODY
    DBMS_PRVTAQIP PACKAGE
    DBMS_PRVTAQIP PACKAGE BODY
    DBMS_PRVTAQIS PACKAGE
    DBMS_PRVTAQIS PACKAGE BODY
    DBMS_PSP PACKAGE
    DBMS_PSP PACKAGE BODY
    DBMS_PSWMG_IMPORT PACKAGE
    DBMS_PSWMG_IMPORT PACKAGE BODY
    DBMS_RANDOM PACKAGE
    DBMS_RANDOM PACKAGE BODY
    DBMS_RCVMAN PACKAGE
    DBMS_RCVMAN PACKAGE BODY
    DBMS_RECTIFIER_DIFF PACKAGE
    DBMS_RECTIFIER_DIFF PACKAGE BODY
    DBMS_RECTIFIER_FRIENDS PACKAGE
    DBMS_RECTIFIER_FRIENDS PACKAGE BODY
    DBMS_REFRESH PACKAGE
    DBMS_REFRESH PACKAGE BODY
    DBMS_REPAIR PACKAGE
    DBMS_REPAIR PACKAGE BODY
    DBMS_REPCAT PACKAGE
    DBMS_REPCAT PACKAGE BODY
    DBMS_REPCAT_ADMIN PACKAGE
    DBMS_REPCAT_ADMIN PACKAGE BODY
    DBMS_REPCAT_AUTH PACKAGE
    DBMS_REPCAT_AUTH PACKAGE BODY
    DBMS_REPCAT_CACHE PACKAGE
    DBMS_REPCAT_CACHE PACKAGE BODY
    DBMS_REPCAT_CONF PACKAGE
    DBMS_REPCAT_CONF PACKAGE BODY
    DBMS_REPCAT_DECL PACKAGE
    DBMS_REPCAT_DECL PACKAGE BODY
    DBMS_REPCAT_FLA PACKAGE
    DBMS_REPCAT_FLA PACKAGE BODY
    DBMS_REPCAT_FLA_MAS PACKAGE
    DBMS_REPCAT_FLA_MAS PACKAGE BODY
    DBMS_REPCAT_FLA_UTL PACKAGE
    DBMS_REPCAT_FLA_UTL PACKAGE BODY
    DBMS_REPCAT_INSTANTIATE PACKAGE
    DBMS_REPCAT_INSTANTIATE PACKAGE BODY
    DBMS_REPCAT_INTERNAL PACKAGE
    DBMS_REPCAT_INTERNAL PACKAGE BODY
    DBMS_REPCAT_INTERNAL_PACKAGE PACKAGE
    DBMS_REPCAT_INTERNAL_PACKAGE PACKAGE BODY
    DBMS_REPCAT_MAS PACKAGE
    DBMS_REPCAT_MAS PACKAGE BODY
    DBMS_REPCAT_MIG PACKAGE
    DBMS_REPCAT_MIG PACKAGE BODY
    DBMS_REPCAT_MIG_INTERNAL PACKAGE
    DBMS_REPCAT_MIG_INTERNAL PACKAGE BODY
    DBMS_REPCAT_OUTPUT PACKAGE
    DBMS_REPCAT_OUTPUT PACKAGE BODY
    DBMS_REPCAT_RGT PACKAGE
    DBMS_REPCAT_RGT PACKAGE BODY
    DBMS_REPCAT_RGT_ALT PACKAGE
    DBMS_REPCAT_RGT_ALT PACKAGE BODY
    DBMS_REPCAT_RGT_CHK PACKAGE
    DBMS_REPCAT_RGT_CHK PACKAGE BODY
    DBMS_REPCAT_RGT_CUST PACKAGE
    DBMS_REPCAT_RGT_CUST PACKAGE BODY
    DBMS_REPCAT_RGT_CUST2 PACKAGE
    DBMS_REPCAT_RGT_CUST2 PACKAGE BODY
    DBMS_REPCAT_RGT_UTL PACKAGE
    DBMS_REPCAT_RGT_UTL PACKAGE BODY
    DBMS_REPCAT_RPC PACKAGE
    DBMS_REPCAT_RPC PACKAGE BODY
    DBMS_REPCAT_RPC_UTL PACKAGE
    DBMS_REPCAT_RPC_UTL PACKAGE BODY
    DBMS_REPCAT_SNA PACKAGE
    DBMS_REPCAT_SNA PACKAGE BODY
    DBMS_REPCAT_SNA_UTL PACKAGE
    DBMS_REPCAT_SNA_UTL PACKAGE BODY
    DBMS_REPCAT_UNTRUSTED PACKAGE
    DBMS_REPCAT_UNTRUSTED PACKAGE BODY
    DBMS_REPCAT_UTL PACKAGE
    DBMS_REPCAT_UTL PACKAGE BODY
    DBMS_REPCAT_UTL2 PACKAGE
    DBMS_REPCAT_UTL2 PACKAGE BODY
    DBMS_REPCAT_UTL3 PACKAGE
    DBMS_REPCAT_UTL3 PACKAGE BODY
    DBMS_REPCAT_UTL4 PACKAGE
    DBMS_REPCAT_UTL4 PACKAGE BODY
    DBMS_REPCAT_VALIDATE PACKAGE
    DBMS_REPCAT_VALIDATE PACKAGE BODY
    DBMS_REPUTIL PACKAGE
    DBMS_REPUTIL PACKAGE BODY
    DBMS_REPUTIL2 PACKAGE
    DBMS_REPUTIL2 PACKAGE BODY
    DBMS_RESOURCE_MANAGER PACKAGE
    DBMS_RESOURCE_MANAGER PACKAGE BODY
    DBMS_RESOURCE_MANAGER_PRIVS PACKAGE
    DBMS_RESOURCE_MANAGER_PRIVS PACKAGE BODY
    DBMS_RLS PACKAGE
    DBMS_RLS PACKAGE BODY
    DBMS_RMIN PACKAGE
    DBMS_RMIN PACKAGE BODY
    DBMS_ROWID PACKAGE
    DBMS_ROWID PACKAGE BODY
    DBMS_RULE PACKAGE
    DBMS_RULE PACKAGE BODY
    DBMS_RULE_ADM PACKAGE
    DBMS_RULE_ADM PACKAGE BODY
    DBMS_RULE_EXIMP PACKAGE
    DBMS_RULE_EXIMP PACKAGE BODY
    DBMS_SESSION PACKAGE BODY
    DBMS_SNAPSHOT PACKAGE
    DBMS_SNAPSHOT PACKAGE BODY
    DBMS_SNAPSHOT_UTL PACKAGE
    DBMS_SNAPSHOT_UTL PACKAGE BODY
    DBMS_SNAP_INTERNAL PACKAGE
    DBMS_SNAP_INTERNAL PACKAGE BODY
    DBMS_SNAP_REPAPI PACKAGE
    DBMS_SNAP_REPAPI PACKAGE BODY
    DBMS_SPACE PACKAGE
    DBMS_SPACE PACKAGE BODY
    DBMS_SUMADV PACKAGE
    DBMS_SUMADV PACKAGE BODY
    DBMS_SUMMARY PACKAGE
    DBMS_SUMMARY PACKAGE BODY
    DBMS_SUMREF_CHILD PACKAGE
    DBMS_SUMREF_CHILD PACKAGE BODY
    DBMS_SUMREF_PARENT PACKAGE
    DBMS_SUMREF_PARENT PACKAGE BODY
    DBMS_SUMREF_UTIL PACKAGE
    DBMS_SUMREF_UTIL PACKAGE BODY
    DBMS_SUMREF_UTIL2 PACKAGE
    DBMS_SUMREF_UTIL2 PACKAGE BODY
    DBMS_SUMVDM PACKAGE
    DBMS_SUMVDM PACKAGE BODY
    DBMS_SYSTEM PACKAGE
    DBMS_SYSTEM PACKAGE BODY
    DBMS_SYS_ERROR PACKAGE BODY
    DBMS_TRACE PACKAGE
    DBMS_TRACE PACKAGE BODY
    DBMS_TRANSACTION PACKAGE
    DBMS_TRANSACTION PACKAGE BODY
    DBMS_TTS PACKAGE
    DBMS_TTS PACKAGE BODY
    DBMS_XMLQUERY PACKAGE
    DBMS_XMLQUERY PACKAGE BODY
    DBMS_XMLSAVE PACKAGE
    DBMS_XMLSAVE PACKAGE BODY
    DEFCALL VIEW
    DEFCALLDEST VIEW
    DEFTRANDEST VIEW
    DES_ENCRYPTED_PASSWORD FUNCTION
    DIANA PACKAGE BODY
    DICTIONARY_OBJ_NAME_LIST FUNCTION
    DICTIONARY_OBJ_OWNER FUNCTION
    DICTIONARY_OBJ_OWNER_LIST FUNCTION
    DIUTIL PACKAGE BODY
    GET_ERROR$ PACKAGE
    GET_ERROR$ PACKAGE BODY
    GRANTEE FUNCTION
    HS_CLASS_CAPS VIEW
    HS_CLASS_DD VIEW
    HS_CLASS_INIT VIEW
    HS_EXTERNAL_OBJECTS VIEW
    HS_FDS_CLASS VIEW
    HS_FDS_INST VIEW
    HS_INST_CAPS VIEW
    HS_INST_DD VIEW
    HS_INST_INIT VIEW
    HTF PACKAGE
    HTF PACKAGE BODY
    HTP PACKAGE
    HTP PACKAGE BODY
    HTTP_EXP PACKAGE
    HTTP_EXP PACKAGE BODY
    IFR_EXP PACKAGE
    IFR_EXP PACKAGE BODY
    INITJVMAUX PACKAGE
    INITJVMAUX PACKAGE BODY
    INSTANCE_NUM FUNCTION
    IS_ALTER_COLUMN FUNCTION
    IS_CREATING_NESTED_TABLE FUNCTION
    IS_DROP_COLUMN FUNCTION
    IS_SERVERERROR FUNCTION
    JAVA_AUTONOMOUS_TRANSACTION PACKAGE
    JAVA_AUTONOMOUS_TRANSACTION PACKAGE BODY
    JAVA_XA PACKAGE
    JAVA_XA PACKAGE BODY
    JIS$INTERCEPTOR$ PACKAGE
    JIS$INTERCEPTOR$ PACKAGE BODY
    JIS_EXIT_JAVA_SESSION PROCEDURE
    JIS_EXP PACKAGE
    JIS_EXP PACKAGE BODY
    JIS_EXP_AUX PACKAGE
    JIS_EXP_AUX PACKAGE BODY
    JIS_IMP_AUX PACKAGE
    JIS_IMP_AUX PACKAGE BODY
    LOGIN_USER FUNCTION
    NameFromLastDDL FUNCTION
    ODCIARGDESC TYPE
    ODCIARGDESCLIST TYPE
    ODCICOLINFO TYPE
    ODCICOLINFODUMP PROCEDURE
    ODCICOLINFOLIST TYPE
    ODCICONST PACKAGE
    ODCICOST TYPE
    ODCIFUNCINFO TYPE
    ODCIINDEXALTEROPTIONDUMP PROCEDURE
    ODCIINDEXCTX TYPE
    ODCIINDEXINFO TYPE
    ODCIINDEXINFODUMP PROCEDURE
    ODCIOBJECT TYPE
    ODCIOBJECTLIST TYPE
    ODCIPREDINFO TYPE
    ODCIPREDINFODUMP PROCEDURE
    ODCIQUERYINFO TYPE
    ODCIQUERYINFODUMP PROCEDURE
    ODCIRIDLIST TYPE
    ODCISTATSOPTIONS TYPE
    ODCISTATSOPTIONSDUMP PROCEDURE
    ORB_EXP PACKAGE
    ORB_EXP PACKAGE BODY
    OWA PACKAGE
    OWA PACKAGE BODY
    OWA_CACHE PACKAGE
    OWA_CACHE PACKAGE BODY
    OWA_COOKIE PACKAGE
    OWA_COOKIE PACKAGE BODY
    OWA_CUSTOM PACKAGE
    OWA_CUSTOM PACKAGE BODY
    OWA_IMAGE PACKAGE
    OWA_IMAGE PACKAGE BODY
    OWA_OPT_LOCK PACKAGE
    OWA_OPT_LOCK PACKAGE BODY
    OWA_PATTERN PACKAGE
    OWA_PATTERN PACKAGE BODY
    OWA_SEC PACKAGE
    OWA_SEC PACKAGE BODY
    OWA_TEXT PACKAGE
    OWA_TEXT PACKAGE BODY
    OWA_UTIL PACKAGE
    OWA_UTIL PACKAGE BODY
    PBREAK PACKAGE
    PBREAK PACKAGE BODY
    PBRPH PACKAGE
    PBRPH PACKAGE BODY
    PBSDE PACKAGE
    PBSDE PACKAGE BODY
    PBUTL PACKAGE
    PIDL PACKAGE BODY
    PRIVILEGE_LIST FUNCTION
    PRVT_EGUTL PACKAGE
    PRVT_EGUTL PACKAGE BODY
    PRVT_EPGC PACKAGE
    PRVT_EPGC PACKAGE BODY
    PSTUB PROCEDURE
    PSTUBT PROCEDURE
    REPCAT$_CDEF VIEW
    REPCAT_GENERATED VIEW
    REPCAT_REPCAT VIEW
    REPCAT_REPOBJECT VIEW
    REPCAT_REPOBJECT_BASE VIEW
    REVOKEE FUNCTION
    RMJVM PACKAGE
    RMJVM PACKAGE BODY
    SERVER_ERROR FUNCTION
    SESSION_CONTEXT VIEW
    SM$INTEGRITY_CONS VIEW
    SM$TS_USED VIEW
    SM_$VERSION VIEW
    SNS_EXP PACKAGE
    SNS_EXP PACKAGE BODY
    SQLJUTL PACKAGE
    SQLJUTL PACKAGE BODY
    SYSEVENT FUNCTION
    TS_PITR_OBJECTS_TO_BE_DROPPED VIEW
    USER_JOBS VIEW
    USER_QUEUES VIEW
    USER_QUEUE_SCHEDULES VIEW
    USER_REGISTERED_SNAPSHOTS VIEW
    USER_REPCAT VIEW
    USER_REPCATLOG VIEW
    USER_REPCAT_REFRESH_TEMPLATES VIEW
    USER_REPCAT_TEMPLATE_OBJECTS VIEW
    USER_REPCAT_TEMPLATE_PARMS VIEW
    USER_REPCAT_TEMPLATE_SITES VIEW
    USER_REPCAT_USER_AUTHORIZATION VIEW
    USER_REPCAT_USER_PARM_VALUES VIEW
    USER_REPCOLUMN VIEW
    USER_REPDDL VIEW
    USER_REPFLAVOR_COLUMNS VIEW
    USER_REPFLAVOR_OBJECTS VIEW
    USER_REPGENERATED VIEW
    USER_REPGENOBJECTS VIEW
    USER_REPGROUP VIEW
    USER_REPGROUP_PRIVILEGES VIEW
    USER_REPKEY_COLUMNS VIEW
    USER_REPOBJECT VIEW
    USER_REPPROP VIEW
    USER_REPSCHEMA VIEW
    USER_REPSITES VIEW
    USER_SEGMENTS VIEW
    USER_SNAPSHOTS VIEW
    USER_SNAPSHOT_LOGS VIEW
    UTL_COLL PACKAGE
    UTL_COLL PACKAGE BODY
    UTL_FILE PACKAGE
    UTL_FILE PACKAGE BODY
    UTL_HTTP PACKAGE
    UTL_HTTP PACKAGE BODY
    UTL_INADDR PACKAGE
    UTL_INADDR PACKAGE BODY
    UTL_RAW PACKAGE BODY
    UTL_REF PACKAGE
    UTL_REF PACKAGE BODY
    UTL_SMTP PACKAGE
    UTL_SMTP PACKAGE BODY
    UTL_TCP PACKAGE
    UTL_TCP PACKAGE BODY
    WAR_DEPLOYMENT PACKAGE
    WAR_DEPLOYMENT PACKAGE BODY
    WITH_GRANT_OPTION FUNCTION
    WPG_DOCLOAD PACKAGE
    WPG_DOCLOAD PACKAGE BODY
    WPIUTL PACKAGE
    WPIUTL PACKAGE BODY
    XMLATTRCOVER PACKAGE
    XMLCHARDATACOVER PACKAGE
    XMLDOCUMENTCOVER PACKAGE
    XMLDOM PACKAGE
    XMLDOM PACKAGE BODY
    XMLDOMIMPLCOVER PACKAGE
    XMLDTDCOVER PACKAGE
    XMLELEMENTCOVER PACKAGE
    XMLENTITYCOVER PACKAGE
    XMLGEN PACKAGE
    XMLGEN PACKAGE BODY
    XMLNNMCOVER PACKAGE
    XMLNODECOVER PACKAGE
    XMLNODELISTCOVER PACKAGE
    XMLNOTATIONCOVER PACKAGE
    XMLPARSER PACKAGE
    XMLPARSER PACKAGE BODY
    XMLPARSERCOVER PACKAGE
    XMLPICOVER PACKAGE
    XMLTEXTCOVER PACKAGE
    XSLPROCESSOR PACKAGE
    XSLPROCESSOR PACKAGE BODY
    XSLPROCESSORCOVER PACKAGE
    XSLSTYLESHEETCOVER PACKAGE
    ALLREPCOLUMN VIEW
    ALLREPFLAVOR_OBJECTS VIEW
    DBMS_REPCAT_AUTH PACKAGE
    DBMS_REPCAT_AUTH PACKAGE BODY
    DEF$_PROPAGATOR_TRIG TRIGGER
    ORA$_SYS_REP_AUTH PROCEDURE
    REPCATLOGTRIG TRIGGER
    CARTRIDGE PACKAGE
    CARTRIDGE PACKAGE BODY
    IM PACKAGE
    IM PACKAGE BODY
    ORDANNOTATION TYPE
    ORDANNOTATIONLIST TYPE
    ORDANNOTATIONS TYPE
    ORDANNOTATIONS PACKAGE BODY
    ORDAUDIO TYPE
    ORDAUDIO PACKAGE BODY
    ORDAUDIO_PKG PACKAGE
    ORDAUDIO_PKG PACKAGE BODY
    ORDIMAGE TYPE
    ORDIMAGE PACKAGE BODY
    ORDIMAGECONSTANTS PACKAGE
    ORDIMERRORCODES PACKAGE
    ORDIMERRORCODES PACKAGE BODY
    ORDIMGB TYPE
    ORDIMGB PACKAGE BODY
    ORDIMGF TYPE
    ORDIMGF PACKAGE BODY
    ORDIMG_PKG PACKAGE
    ORDIMG_PKG PACKAGE BODY
    ORDSOURCE TYPE
    ORDSOURCE PACKAGE BODY
    ORDVIDEO TYPE
    ORDVIDEO PACKAGE BODY
    ORDVIDEO_PKG PACKAGE
    ORDVIDEO_PKG PACKAGE BODY
    ORDVIR TYPE
    ORDVIR PACKAGE BODY
    ORDVIRATTR_VARRAY TYPE
    ORDVIRB TYPE
    ORDVIRB PACKAGE BODY
    ORDVIREXCEPTIONS PACKAGE
    ORDVIRF TYPE
    ORDVIRF PACKAGE BODY
    ORDVIRIDX INDEXTYPE
    ORDVIRIDXMETHODS TYPE
    ORDVIRIDXMETHODS PACKAGE BODY
    ORDVIRIDXSTATS TYPE
    ORDVIRIDXSTATS PACKAGE BODY
    ORDVIRROWID_TABLE TYPE
    ORDVIRSCR_VARRAY TYPE
    ORDVIR_PKG PACKAGE
    ORDVIR_PKG PACKAGE BODY
    PVTCARTRIDGE PACKAGE
    PVTCARTRIDGE PACKAGE BODY
    VIRSCORE OPERATOR
    VIRSIMILAR OPERATOR
    ORDX_AIFC_AUDIO PACKAGE
    ORDX_AIFC_AUDIO PACKAGE BODY
    ORDX_AIFF_AUDIO PACKAGE
    ORDX_AIFF_AUDIO PACKAGE BODY
    ORDX_AUFF_AUDIO PACKAGE
    ORDX_AUFF_AUDIO PACKAGE BODY
    ORDX_AVI_VIDEO PACKAGE
    ORDX_AVI_VIDEO PACKAGE BODY
    ORDX_DEFAULT_AUDIO PACKAGE
    ORDX_DEFAULT_AUDIO PACKAGE BODY
    ORDX_DEFAULT_VIDEO PACKAGE
    ORDX_DEFAULT_VIDEO PACKAGE BODY
    ORDX_FILE_SOURCE PACKAGE
    ORDX_FILE_SOURCE PACKAGE BODY
    ORDX_HTTP_SOURCE PACKAGE
    ORDX_HTTP_SOURCE PACKAGE BODY
    ORDX_MOOV_VIDEO PACKAGE
    ORDX_MOOV_VIDEO PACKAGE BODY
    ORDX_MPEG_VIDEO PACKAGE
    ORDX_MPEG_VIDEO PACKAGE BODY
    ORDX_MPGA_AUDIO PACKAGE
    ORDX_MPGA_AUDIO PACKAGE BODY
    ORDX_RMFF_VIDEO PACKAGE
    ORDX_RMFF_VIDEO PACKAGE BODY
    ORDX_WAVE_AUDIO PACKAGE
    ORDX_WAVE_AUDIO PACKAGE BODY
    ALL_GEOMETRY_COLUMNS VIEW
    ALL_MD_COLUMNS VIEW
    ALL_MD_DIMENSIONS VIEW
    ALL_MD_EXCEPTIONS VIEW
    ALL_MD_LOADER_ERRORS VIEW
    ALL_MD_PARTITIONS VIEW
    ALL_MD_TABLES VIEW
    ALL_MD_TABLESPACES VIEW
    ALL_SDO_GEOM_METADATA VIEW
    ALL_SDO_INDEX_INFO VIEW
    DBA_MD_COLUMNS VIEW
    DBA_MD_PARTITIONS VIEW
    DBA_MD_TABLES VIEW
    DBA_MD_TABLESPACES VIEW
    DBA_SDO_GEOM_METADATA VIEW
    DBA_SDO_INDEX_INFO VIEW
    DBA_SDO_INDEX_METADATA VIEW
    F81_INDEX_OBJECT TYPE
    F81_INDEX_OBJ_ARRAY TYPE
    F81_NT_IND_TYPE TYPE
    GEOCODER_HTTP PACKAGE
    GEOCODER_HTTP PACKAGE BODY
    GEOCODE_RESULT TYPE
    GEODETIC_SRIDS VIEW
    H81_INDEX_OBJECT TYPE
    H81_INDEX_OBJ_ARRAY TYPE
    H81_NT_IND_TYPE TYPE
    LOCATOR_WITHIN_DISTANCE OPERATOR
    MD PACKAGE
    MD PACKAGE BODY
    MD1 PACKAGE
    MD1 PACKAGE BODY
    MD2 PACKAGE
    MD2 PACKAGE BODY
    MDBOOTSTRAP PACKAGE
    MDBOOTSTRAP PACKAGE BODY
    MDDICT PACKAGE
    MDDICT PACKAGE BODY
    MDERR PACKAGE
    MDERR PACKAGE BODY
    MDEXEC PACKAGE
    MDEXEC PACKAGE BODY
    MDEXEX PACKAGE
    MDEXEX PACKAGE BODY
    MDGEN PACKAGE
    MDGEN PACKAGE BODY
    MDLEXR PACKAGE
    MDLEXR PACKAGE BODY
    MDLIB PACKAGE
    MDLIB PACKAGE BODY
    MDTRIG PACKAGE
    MDTRIG PACKAGE BODY
    MDVERIFY PACKAGE
    MDVERIFY PACKAGE BODY
    MD_DDL PACKAGE
    MD_DDL PACKAGE BODY
    MD_DML PACKAGE
    MD_DML PACKAGE BODY
    MD_PART PACKAGE
    MD_PART PACKAGE BODY
    PRVT_IDX PACKAGE
    PRVT_IDX PACKAGE BODY
    RTREE_FILTER OPERATOR
    RTREE_IDX PACKAGE
    RTREE_IDX PACKAGE BODY
    RTREE_INDEX INDEXTYPE
    RTREE_INDEX_METHOD TYPE
    RTREE_INDEX_METHOD PACKAGE BODY
    RTREE_NN OPERATOR
    SDO PACKAGE
    SDO PACKAGE BODY
    SDO_3GL PACKAGE
    SDO_3GL PACKAGE BODY
    SDO_ADMIN PACKAGE
    SDO_ADMIN PACKAGE BODY
    SDO_CATALOG PACKAGE
    SDO_CATALOG PACKAGE BODY
    SDO_CS PACKAGE
    SDO_CS PACKAGE BODY
    SDO_DIM_ARRAY TYPE
    SDO_DIM_ELEMENT TYPE
    SDO_ELEM_INFO_ARRAY TYPE
    SDO_FILTER OPERATOR
    SDO_GEOM PACKAGE
    SDO_GEOM PACKAGE BODY
    SDO_GEOMETRY TYPE
    SDO_GEOM_TRIG_DEL1 TRIGGER
    SDO_GEOM_TRIG_INS1 TRIGGER
    SDO_GEOM_TRIG_UPD1 TRIGGER
    SDO_IDX PACKAGE
    SDO_IDX PACKAGE BODY
    SDO_INDEX_METHOD TYPE
    SDO_INDEX_METHOD PACKAGE BODY
    SDO_INT2_FILTER OPERATOR
    SDO_INT2_RELATE OPERATOR
    SDO_INT_FILTER OPERATOR
    SDO_INT_RELATE OPERATOR
    SDO_LRS PACKAGE
    SDO_LRS PACKAGE BODY
    SDO_MBR TYPE
    SDO_META PACKAGE
    SDO_META PACKAGE BODY
    SDO_MIGRATE PACKAGE
    SDO_MIGRATE PACKAGE BODY
    SDO_NN OPERATOR
    SDO_ORDINATE_ARRAY TYPE
    SDO_POINT_TYPE TYPE
    SDO_RELATE OPERATOR
    SDO_RELATEMASK_TABLE VIEW
    SDO_RELATE_MASK PACKAGE
    SDO_RELATE_MASK PACKAGE BODY
    SDO_RTREE_ADMIN PACKAGE
    SDO_RTREE_ADMIN PACKAGE BODY
    SDO_RTREE_FILTER OPERATOR
    SDO_RTREE_RELATE OPERATOR
    SDO_TUNE PACKAGE
    SDO_TUNE PACKAGE BODY
    SDO_VPOINT_TYPE TYPE
    SDO_WITHIN_DISTANCE OPERATOR
    SERV_PART PACKAGE
    SERV_PART PACKAGE BODY
    SPATIAL_INDEX INDEXTYPE
    USER_MD_COLUMNS VIEW
    USER_SDO_GEOM_METADATA VIEW
    USER_SDO_INDEX_INFO VIEW
    USER_SDO_INDEX_METADATA VIEW
    V81_INDEX_OBJECT TYPE
    V81_INDEX_OBJ_ARRAY TYPE
    V81_NT_IND_TYPE TYPE
    CATINDEXMETHODS TYPE
    CATINDEXMETHODS PACKAGE BODY
    CATSEARCH OPERATOR
    CONTAINS OPERATOR
    CONTEXT INDEXTYPE
    CTXCAT INDEXTYPE
    CTX_ADM PACKAGE
    CTX_ADM PACKAGE BODY
    CTX_CATSEARCH PACKAGE
    CTX_CONTAINS PACKAGE
    CTX_DDL PACKAGE
    CTX_DDL PACKAGE BODY
    CTX_DOC PACKAGE
    CTX_DOC PACKAGE BODY
    CTX_FEEDBACK_ITEM_TYPE TYPE
    CTX_FEEDBACK_ITEM_TYPE PACKAGE BODY
    CTX_FEEDBACK_TYPE TYPE
    CTX_OUTPUT PACKAGE
    CTX_OUTPUT PACKAGE BODY
    CTX_QUERY PACKAGE
    CTX_QUERY PACKAGE BODY
    CTX_SERVERS VIEW
    CTX_THES PACKAGE
    CTX_THES PACKAGE BODY
    DRIACC PACKAGE
    DRIACC PACKAGE BODY
    DRIADM PACKAGE
    DRIADM PACKAGE BODY
    DRICON PACKAGE
    DRICON PACKAGE BODY
    DRIDDL PACKAGE
    DRIDDL PACKAGE BODY
    DRIDDLC PACKAGE
    DRIDDLC PACKAGE BODY
    DRIDISP PACKAGE
    DRIDISP PACKAGE BODY
    DRIDML PACKAGE
    DRIDML PACKAGE BODY
    DRIDOC PACKAGE
    DRIDOC PACKAGE BODY
    DRIEXP PACKAGE
    DRIEXP PACKAGE BODY
    DRIG PACKAGE
    DRIIMP PACKAGE
    DRIIMP PACKAGE BODY
    DRILIST PACKAGE
    DRILIST PACKAGE BODY
    DRILOAD PACKAGE
    DRILOAD PACKAGE BODY
    DRIOBJ PACKAGE
    DRIOPT PACKAGE
    DRIOPT PACKAGE BODY
    DRIPARSE PACKAGE
    DRIPARSE PACKAGE BODY
    DRIPIPE PACKAGE
    DRIPIPE PACKAGE BODY
    DRIPREF PACKAGE
    DRIPREF PACKAGE BODY
    DRIREC PACKAGE
    DRIREC PACKAGE BODY
    DRISCORE PACKAGE
    DRITHS PACKAGE
    DRITHS PACKAGE BODY
    DRITHSC PACKAGE
    DRITHSC PACKAGE BODY
    DRITHSD PACKAGE
    DRITHSD PACKAGE BODY
    DRITHSL PACKAGE
    DRITHSL PACKAGE BODY
    DRITHSX PACKAGE
    DRITHSX PACKAGE BODY
    DRIUTL PACKAGE
    DRIUTL PACKAGE BODY
    DRIVAL PACKAGE
    DRIVAL PACKAGE BODY
    DRIXTAB PACKAGE
    DRIXTAB PACKAGE BODY
    DRUE PACKAGE
    DRUE PACKAGE BODY
    DR_DEF PACKAGE
    SCORE OPERATOR
    SYNCRN PROCEDURE
    TEXTINDEXMETHODS TYPE
    TEXTINDEXMETHODS PACKAGE BODY
    TEXTOPTSTATS TYPE
    TEXTOPTSTATS PACKAGE BODY
    FOOTESTCREATE FUNCTION
    IMP_GET_SOFT_CONNS PROCEDURE
    IMP_LOAD_ALLCONNINFO PROCEDURE
    LOAD_DANGLE_REPORT PROCEDURE
    NQT_INFO PROCEDURE
    RTL_LEAF_DANGLE_REPORT PROCEDURE
    TOPSIGNAME FUNCTION
    TOPSIGNAME_RTL FUNCTION
    891 rows selected.
    SVRMGR>

  • Monitoring AQ instances

    What is a good way to monitor AQ instances? I was looking at using GV$AQ and/or
    V$AQ views;
    Worry with GV$AQ is that it does cross instance traffic and may contribute to
    interconnect traffic;
    Ran a trace on V$AQ and it does not appear to get it's stuff from
    the SGA, but does runs queries on the queue tables themselves. Based on the
    sql traces, it looks like these might get expensive. (there are full table scans in
    the plans)
    Any opinions? I am in a 9.2.0.7 version, 4 node environment with one queue with affinity to each rac node.
    Thanks
    Vijay

    Here are more stuff now in 10g
    New DBMS_AQ packages
    New DBMS_AQADM packages
    V$BUFFERED_QUEUES
    V$BUFFERED_SUBSCRIBERS
    V$BUFFERED_PUBLISHERS
    --Khaleel                                                                                                                                                                                                                                                                                                                                               

  • 00439 : Feature not enabled : Database Queuing

    Hi,
    I get the "Database queuing not enabled" error. As a result, i
    cannot create any queues, moreover, the default SYS queues have
    not got created. Someone advised me to run the following scripts
    1) dbmsaqad.sql
    2) catqueue.sql
    3) catdefrt.sql
    I did, but this did not help. Selecting from V$option still
    shows "Database Queuing : FALSE" and i cannot create any queue
    tables and hence queues. Pls HELP !!!!
    Thanks
    Regards,
    Naren

    hi ,
    i think u don't have access to dbms_aqadm,dbms_aq packages . try to get it from dba. upto 8.1.7 Oracle db was not directly come with AQ's . after initial versions of Oracle 9i db Aq become part of it but still u need access to those packages along with roles like JavaUserPrivs & javaSystemPrivs.
    any help u needed on aq contact me on [email protected]
    Mandar

Maybe you are looking for