Editing IX.AQ$ORDERS QUEUETABLE (view)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|- valign="top"
+
|-
| '''View
+
| '''view
 
| IX.AQ$ORDERS_QUEUETABLE
 
| IX.AQ$ORDERS_QUEUETABLE
 +
|-
 
|}
 
|}
  
=== Source ===
 
 
<pre>
 
<pre>
CREATE OR REPLACE VIEW IX.AQ$ORDERS_QUEUETABLE AS
+
 
SELECT  q_name QUEUE, qt.msgid MSG_ID, corrid CORR_ID,  priority MSG_PRIORITY,  decode(h.dequeue_time, NULL,  
 
      (decode(state, 0,  'READY',    
 
                                  1,  'WAIT',    
 
    2,  'PROCESSED',    
 
                                            3,  'EXPIRED',
 
                                            8,  'DEFERRED')),     
 
        (decode(h.transaction_id,   
 
      NULL, 'UNDELIVERABLE',  
 
      'PROCESSED'))) MSG_STATE,  cast(FROM_TZ(qt.delay, '-08:00')
 
                at time zone sessiontimezone as date) delay,  delay DELAY_TIMESTAMP, expiration,  cast(FROM_TZ(qt.enq_time, '-08:00')
 
                at time zone sessiontimezone as date) enq_time,  cast(FROM_TZ(qt.enq_time, '-08:00')
 
                at time zone sessiontimezone as timestamp)
 
                enq_timestamp,  enq_uid ENQ_USER_ID,  enq_tid ENQ_TXN_ID,  decode(h.transaction_id, NULL, TO_DATE(NULL),  
 
                        cast(FROM_TZ(h.dequeue_time, '-08:00')
 
           
 
 
</pre>
 
</pre>

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)