Dropping the Hight Water Mark on a Queue table.

What is the best technique for dropping the High Water Mark on a queue table?
Will the dbms_aqadm.purge_queue_table procedure drop the high water mark (truncate the queue table) when purging all records from the queue?
If not, is it supported to manually truncate the queue table? My guess is that this is ok if the queue is empty.
Please advise on best strategies for maintaing performance of the queue following a period where the queue fills with a large number of transactions pushing the high water mark up.

http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535349

Similar Messages

  • 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

  • Why high water mark?

    Hi,
    These days I am always thinkin' about a question that why Oracle introduces high water mark.
    I've found some documents describing this concept, but I still can't make out what's the advantage of the high water mark.
    If someone could tell me, I will be very appreciated!

    Jaffy wrote:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:669044239081
    regards
    Jaffythanks Jaffy, I think I can accept this answer, maybe Oracle takes FTS from HWM as a safe way.
    The same thanx to Pavan Kumar and Aman....
    ----quote from http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:669044239081:
    The blocks are in use. The table is a complex data structure, it is not a fifo/lifo queue or
    anything like that -- it is a big old heap. Once used -- implies "could still be used".
    Edited by: user12977032 on May 14, 2010 12:54 AM

  • High water mark

    what is high water mark iin oracle all about. secondly what type of PL/SQL is describe dbms_start

    High Water Mark is all about knowing what table storage is used and what table storage is free. Blocks stored below the high water mark may be full, but if not they should be considered for use when inserting or updating records. On the other hand, blocks below the high water mark also need to be inspected during a full-table-scan query whether they are empty or not.
    DESCRIBE is not PL/SQL. It is a SQLPlus command used to show the API of a table or a procedure. Described [sic] in the SQLPlus reference manual at http://tahiti.oracle.com

  • High water mark creates performance degradation

    Hi all,
    I need help...
    How to find High water mark for tables. How to decide what are all tables needs to be reorginised. I want clear cut idea on this issue.
    Please help me.
    Regards,
    Kiran

    You use online segment shrink to reclaim fragmented free space below the high water mark in an Oracle Database segment. The benefits of segment shrink are these:
    Compaction of data leads to better cache utilization, which in turn leads to better online transaction processing (OLTP) performance.
    The compacted data requires fewer blocks to be scanned in full table scans, which in turns leads to better decision support system (DSS) performance.
    Please visit here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/schema.htm#ADMIN10161
    what were the objects and recommendations generated after Segment Advisor job execution?
    SQL> select af.task_name, ao.attr2 segname, ao.attr3 partition, ao.type, af.message
    from dba_advisor_findings af, dba_advisor_objects ao
    where ao.task_id = af.task_id
    and ao.object_id = af.object_id
    what are the objects my database that can be reduced?
    select tablespace_name, segment_name, segment_type, partition_name,
    recommendations, c1 from table(dbms_space.asa_recommendations('FALSE', 'FALSE', 'FALSE'));
    where c1 is the command to be used.Before such operations this has to be issued,
    ALTER TABLE ... ENABLE ROW MOVEMENT.
    Hope it helps.
    Adith

  • How to drop the multi columns?????

    how to drop the multi columns in oracle
    Like
    alter table drop column a,b;
    is it possible.

    how to drop the multi columns in oracle
    Like
    alter table drop column a,b;
    is it possible.Yes, it is possible.
    RTFM:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2124702
    pratz

  • Best practices in Queue table maintenance

    Hi Fellow AQ Users,
    I am looking to hear from the community about best practices in queue table maintenance.
    I have been mining through metalink about various Oracle recommendations and putting
    together a set of recommendations as a starting point for my DBAs.
    I am looking to answer questions like these --
    How often (in relation to messaging load) would you coalesce and rebuild the indexes?
    How often would you rebuild the table itself to get rid of the high water mark issues ?
    and what procedure would you use to do that?
    Would really love to learn from your experiences in this area. We are using 9.2.0.7
    64 bit DB and have plans to go to 10g over the next year. So, I am looking at 9i related
    stuff and then 10g.
    Thanks
    Vijay

    Hello,
    In general you coalesce once per day ideally during a quiet time to avoid ORA-54 errors as per <Note:271855.1>. Some customers do it more often than that but once per day is a good starting point.
    In terms of shrinking the queue tables you can use the procedure in <Note:304522.1> with a null 3rd parameter. This is an offline procedure so you could only run it during a maintenance window. In 10.2 onwards you can dynamically shrink the queue table and IOTS. Again it depends on exactly what you are doing with your queue tables how often you might need to do this.
    Thanks
    Peter

  • Finding the number of blocks occupied by a table

    Hi,
    I need to know how much space is being occupied by a table.
    NOTE: I dont need the allocated space of a table. I need the actual space occupied by a table currently.
    I have used the following two methods to determine the size, but i have two contradictory answers..
    The procedure i have used is:
    1. calculate the number of blocks being used.
    2. mulitply the number of blocks by db_block_size to get
    the space occupied by a table.
    I have used two ways to find out the number of blocks, but they both differ.
    Let me know which one is correct or is there any way to find out the number of blocks.
    1st Method
    SQL> analyze table employee estimate statistics;
    Table analyzed.
    SQL> select table_name, blocks, empty_blocks from dba_tables where table_name='EMPLOYEE';
    TABLE_NAME BLOCKS EMPTY_BLOCKS
    EMPLOYEE 184999 5000
    2nd method to find the number of blocks.
    SQL> select count(distinct(substr(dbms_rowid.rowid_to_Restricted(rowid,0),1,8))) from employee;
    COUNT(DISTINCT(SUBSTR(DBMS_ROWID.ROWID_TO_RESTRICTED(ROWID,0),1,8)))
    165058
    From the 1st method i got 184999 as the number of blocks and from 2nd method i got 165058.
    Please help me out as soon as possible.
    Thanks........

    If by "the number of blocks occupied by a table" you mean the number of blocks actually containing data, then the best you can do is an approximation. The supplied package DBMS_SPACE contains a procedure called Unused_Space that will give you the number of blocks above the high water mark. It takes 3 input paramters and returns 7 out parameters. You can call it as:
    DBMS_SPACE.Unused_Space (owner, obj_name, object_type,
                             total_blocks, total_bytes, unused_blocks,
                             unused_bytes, last_used_extent_file_id,
                             last_used_extent_block_id, last_used_block)The output parameters are:
    total_blocks - Number of blocks allocated to the table
    total_bytes - Number of bytes allocated to the table
    unused_blocks - Number of blocks above the high water mark
    unused_bytes - Number of bytes above the high water mark
    last_used_extent_file_id - file id containing the last used block
    last_used_extent_block_id - block id of the last used block
    last_used_block - row slot of the last used block
    Note that this does not take into account any free space within block below the high water mark.
    HTH
    John

  • Problems in creating Queue tables

    Hi I'm trying to create a Queue table. For that I'm creating a new Object, and then a table type of the same Object and then a Queue table of the payload type of the created table type, for which I'm getting an error. I'm using the following list of Queries:
    create or replace type CRM_TO_UMS_USR_DATA_TAB as object
    PROVISION_ID varchar2(25)
    PROVISION_DATE date
    ERROR_CODE varchar2(20)
    ERROR_MSG varchar2(50)
    STATUS char
    COMMENTS varchar2(50)
    Result => no Error
    create or replace type CRM_TO_UMS_USR_DATA_TYP as TABLE of CRM_TO_UMS_USR_DATA_TAB
    Result => no Error
    begin
    dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
    end;
    Result =>
    Error report:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2830
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 2
    00902. 00000 - "invalid datatype"
    I've given the following Grants for my schema user, for the purpose.
    Grant aq_administrator_role to siebel;
    GRANT EXECUTE ON dbms_aq TO siebel;
    GRANT RESOURCE TO siebel;
    GRANT CONNECT TO siebel;
    GRANT EXECUTE ANY PROCEDURE TO siebel;
    GRANT aq_administrator_role TO siebel;
    GRANT aq_user_role TO siebel;
    GRANT EXECUTE ON dbms_aqadm TO siebel;
    GRANT EXECUTE ON dbms_aqin TO siebel;
    Actually I've successfully created Queues with the above set of Queries in my other Development and UAT environments successfully, but when I'm trying to implement it with Prod I'm getting the Error. Anybody please help.
    Thanks & Regards,
    Srivathan, T.

    The type CRM_TO_UMS_USR_DATA_TAB is invalid because the syntax you're using is incorrect:
    SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
      2  (
      3  PROVISION_ID varchar2(25)
      4  PROVISION_DATE date
      5  ERROR_CODE varchar2(20)
      6  ERROR_MSG varchar2(50)
      7  STATUS char
      8  COMMENTS varchar2(50)
      9  );
    10  /
    Warning: Type created with compilation errors.
    SQL> begin
      2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
      3  end;
      4  /
    begin
    ERROR at line 1:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2822
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 2
    SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
      2  (
      3  PROVISION_ID varchar2(25),
      4  PROVISION_DATE date ,
      5  ERROR_CODE varchar2(20),
      6  ERROR_MSG varchar2(50),
      7  STATUS char(1),
      8  COMMENTS varchar2(50)
      9  );
    10  /
    Type created.
    SQL> begin
      2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
      3  end;
      4  /
    PL/SQL procedure successfully completed.Max
    http://oracleitalia.wordpress.com

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • I have a fully functioning iPhone 4S that has been in water, it has left slight water marks on screen, everything else works and is in mint condition. I want to exchange it for an iphone 5s and pay the difference. Would this be possible at the apple store

    I have a fully functioning iPhone 4S in mint condition apart some water marks on screen (dropped in bath) everything works perfectly as it should. I wish to exchange and pay the difference for an iphone 5s. Is this possible from the apple store (uk) how much do they normally give as a trade in and how much do they charge for an iphone 5s. Or should I just take it in and see if they will do a one for one swap and pay the difference. ( I don't like the water marks, it's annoying, maybe they will go away, I don't know) been sat in rice for a week.

    The only thing Apple will do for you is an out of warranty exchange, & you will get EXACTLY what you have now. The cost will be US $199. Make an appointment at any Apple store.

  • HT4759 I bought an audio book and downloaded it to my iphone...i dropped the phone in water and i have received a different iphone when i go to itunes it doesnt show my purchase.  I have the receipt number in my email how do i retrieve it??

    I bought an audio book and downloaded it to my iphone...i dropped the phone in water and i have received a different iphone when i go to itunes it doesnt show my purchase.  I have the receipt number in my email how do i retrieve it??

    At the present time, audiobooks are a one-time download and cannot be redownloaded again for free.  You can try contacting the iTunes store to see if they would grant you an exception: http://www.apple.com/emea/support/itunes/contact.html.

  • Configure the stamp ,Digital signature and water mark in DMS

    Hi...
    I want to configure the stamp ,Digital signature and water mark in for my client in DMS.
    Stamp:detaiils showing doc type, doc status,who has open, doc no,version,date and time
    Digital Sign:with respect to approval (system should ask user name and password while approvig)
    Water mark:for the status (Draft/approved)
    Can anybody guide me to do this?Please explan in details as i am doing it first time.
    In addition to do this what addition system requirement is needed?
    Regards,
    Sandip

    Hi Sandip,
    Please refer below links for required details
    For Redlining   Redlining
    Watermark      DMS Seal system watermarking solution
    Hope this will answer your query.
    Regards,
    Deepak Kori

  • Putting a water mark in the form

    Hello all,
    My requirement is to have a water mark image in the adobe form.
    Kindly let me know the procedure to do this.
    Thanks and Regards
    Rajesh

    Hi Rajesh
    You cannot add a PDF watermark to a form created in LiveCycle Designer, unless that form was created with a fixed PDF background or you need to use LiveCycle ES 8.0(but it doesn't support SAP) {Reference.  http://blogs.adobe.com/security/2008/01/pdf_watermark_demonstration.html}
    I'm not completely sure, but I think the best way you could do is add an image to Master page. To do this you'll need to create the watermark text as in image file. 
    STEPS:
    1.  Add image field to master page
    2.  click on image field and set the image
    3.  On the "Object" tab for the image field, change the field type to static image.
    Regards
    Pradeep Goli

  • I am not able to adjust the hight of one page on my site. I try to move the blue mark on the left side and it doesn't move. What should I do ? Thanks

    I am not able to adjust the hight of one page on my site. I try to move the blue mark on the left side and it doesn't move. What should I do ? Thanks

    Hi,
    could you please try to find any blank oject like rectangle/textbox, specially at the lower end of the page. Use Edit -> "Select All" to select everything on the page, it will be easier to locate it.
    Let me know if that works

Maybe you are looking for

  • PSE 7 with windows 7 cannot get edited pics just  not back in Org ?

    Since installinng windows 7 I have not been able to edit pictures and have them back in Organizer just have a blank icon this happend after installing windows photo gallery. went to default tried to put defalt as Adobe photoshop elements organizer bu

  • Windows 7 with CS4 and PSD Icons

    Hi, I have Windows 7 64bit, Photoshop CS4 and Photoshop 7 (for back-up). I know that Photoshop 7 allowed thumbnail previews on PSD's but that was taken out so CS4 is just a custom icon, but Windows 7 doesn't seem to really get what to do with either

  • Saving a filled-in secure form in Reader?

    Apologies if this has been covered somewhere in the forums. I've just not been able to find anything that answers this... I've created a form for a client in Acrobat 9 Pro. Security is set to allow printing and "Filling in form fields and signing exi

  • What Monitor or Monitors Should I Buy?

    I just built my first Video Editing PC. i7 4790k, 16GB RAM, GTX 760...it is amazingly fast for what I need...The only problem is I have 2 older monitors. 1 is 1080p and the other is 1600X900. They are ok but different brightness, horrible colors, lig

  • Dynamic activity naming

    Hi Is there a way to dynamiquely rename activities within a BPEL process ? For example, when I use flowN w/dynamic partnerLinks, I'd like to rename my invokes and receives in order to reflect the name of the invoked services in each branch of the flo