Enqueue only apply process?

I'm trying to setup a streams apply process that will enqueue a persistent LCR only. I do not need to apply the LCR.
I can get the LCR enqueued as a user message using the DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION but I cannot "turn off" the apply of the LCR.
I'm wondering if I should have my DML handler "discard" the message or if I need to write my own procedure to enqueue the message and skip the "SET_ENQUEUE_DESTINATION"?
Any help is appreciated.
Thx!
rb

I found the answer to my question in the documentation.
The SET_EXECUTE procedure can be used with the SET_ENQUEUE_DESTINATION procedure if you want to enqueue messages that satisfy a particular rule into a destination queue without executing these messages. After a message is enqueued using the SET_ENQUEUE_DESTINATION procedure, it is the same as any message that is enqueued manually. Therefore, it can be manually dequeued, applied by an apply process, or propagated to another queue.
Sorry for the post...
rb

Similar Messages

  • Apply process against user-enqueued lcrs

    I am working on a project where we want the ability to do multiple things with each lcr in a streams queue. We would like to utilize more than one stored procedure to do this. So to get around the single dml handler allowed for a captured lcr (per dml operation type), we are trying to dequeue and re-enqueue the lcr as a user-enqueued lcr in a multi-consumer or streams queue, and then use one or multiple apply process(es) to further process these lcrs. I've tried it with both the original streams queue, a new streams queue, and a normal AQ queue. In every instance the second apply process against the user-enqueued lcr crashes. The documentation seems to indicate we should be able to do this. Any input on this would be appreciated.

    Patricia, I really appreciate your input on this!
    There is a generic error in the dba_apply_error view, which does not help much: "ORA-06550: line , column :".
    As far as the apply user having privileges, the apply user is the owner of the custom apply procedure.
    There are trace files generated that are fairly cryptic, they appear to memory-related, here are samples:
    <sid>ap10<process>.trc:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    ORACLE_HOME = /orasw/app/oracle/product/9.2.0
    System name: HP-UX
    Node name: tsttib01
    Release: B.11.11
    Version: U
    Machine: 9000/800
    Instance name: ttib
    Redo thread mounted by this instance: 1
    Oracle process number: 22
    Unix process pid: 5313, image: oracle@tsttib01 (AP10)
    *** 2003-10-13 09:14:08.582
    *** SESSION ID:(52.5922) 2003-10-13 09:14:08.581
    knluSetStatus()+{
    finished knluSetStatus()+ }
    knldso: state object 5daae248, action 2 memory 0000000000000000
    knldso: state object 5da871a8, action 2 memory 0000000000000000
    <sid>p009<process>.trc:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    ORACLE_HOME = /orasw/app/oracle/product/9.2.0
    System name: HP-UX
    Node name: tsttib01
    Release: B.11.11
    Version: U
    Machine: 9000/800
    Instance name: ttib
    Redo thread mounted by this instance: 1
    Oracle process number: 28
    Unix process pid: 5317, image: oracle@tsttib01 (P009)
    *** 2003-10-13 09:14:08.475
    *** SESSION ID:(45.10480) 2003-10-13 09:14:08.471
    kngoPic: imagesize = 273

  • Capture LCR's  without Apply Process

    I want to capture the LCR's of a single table. So I have setup a capture process. When I do a SELECT * FROM V$STREAMS_CAPTURE I see that the value for "TOTAL_MESSAGES_ENQUEUED" increases BUT I don't get ANY messages in my queue_table that was setup for LCR's.
    Please note that I don't have a APPLY process running because I want to read the LCR's from an external process (directly from the LCR queue).
    So I have two questions:
    (1) Is it possible to use only a Capture Process (to collect the LCR's) and use an external Program (e.g. C++ program) that enqueues the LCR's from the queue (using OCI).
    (2) I have read a previous article where it was stated that if there is an external program the LCR's have to be re-enqueued? - What does this mean? - Do I have to move the LCR's in a different queue? - I thought the Apply Process is optional?

    You got to have an apply process(DML handler) that dequeues the LCRs from Capture process and re-enqueues them back to the same Streams queue. Only then you can dequeue LCRs from an external application.
    I'm using JMS to dequeue these LCRs.
    Does anybody face any perfromance issues while using JMS to dequeue LCRs? In my case PL/SQL could dequeue as fast as 40 messages/second while JMS could dequeue only 7 msgs/sec.
    Thanks

  • Presets - only applying to images as they are seen in library pane

    I have lightroom version 1.2
    Mac user 10.4.11 2.1 ghz processor
    When I apply one of my presets to a large number of images (as in more than you can see at any one time in library pane) I notice it will only apply the preset to the images that I can see in the library pane.
    As in if I scroll done to view images not already see on the library pane it then appears to start processing those images.
    It is definitely doing this and not updating a preset that has already been applied. Why would it only apply preset to images as they are viewed in library pane.
    Eventually of course the preset is applied to all images and once done it is done, but a bit of a nuisance as I need to babysit it.
    Cannot think of a preference that would change this..
    Any ideas?
    Regards
    Larry

    Ah yes I see if you go into library>previews>render standard previews as soon as you run your preset it will do it all for you.
    Thanks
    L

  • Apply process is aborting with:ORA-12801: error signaled in parallel query

    hi,
    We created a queue of a specific type, capture and apply process on the queue. Then we started the queue capture and the apply process. The problem is that the apply process is getting enabled and with in moments going into aborted state. wea re getting the follwoing error:
    ORA-12801: error signaled in parallel query server P000
    ORA-00600: internal error code, arguments: [kwqiceval:anyconv], [], [], [], [], [], [], []
    Any idea what could have gone wrong?
    scripts:
    exec dbms_aqadm.create_queue_table(queue_table=>'qt_anc',queue_payload_type=>'type_anc',multiple_consumers=> true, compatible => '9.0');
    exec dbms_aqadm.create_queue (queue_name => 'q_anc',queue_table=>'qt_anc');
    EXEC DBMS_AQADM.START_QUEUE (queue_name => 'q_anc');
    DECLARE
    emp_rule_name_dml VARCHAR2(300);
    emp_rule_name_ddl VARCHAR2(300);
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'ops.t_anc',
    streams_type => 'capture',
    streams_name => 'capture_anc',
    queue_name => 'strmadmin.q_anc',
    include_dml => true,
    include_ddl => false,
    source_database => null,
    dml_rule_name => emp_rule_name_dml,
    ddl_rule_name => emp_rule_name_ddl);
    DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION(
    rule_name => emp_rule_name_dml,
    destination_queue_name => 'strmadmin.q_anc');
    END;
    DECLARE
    emp_rule_name_dml VARCHAR2(300);
    emp_rule_name_ddl VARCHAR2(300);
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'ops.t_anc',
    streams_type => 'apply',
    streams_name => 'apply_anc',
    queue_name => 'strmadmin.q_anc',
    include_dml => true,
    include_ddl => false,
    source_database => null,
    dml_rule_name => emp_rule_name_dml,
    ddl_rule_name => emp_rule_name_ddl);
    DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION(
    rule_name => emp_rule_name_dml,
    destination_queue_name => 'strmadmin.q_anc');
    END;
    BEGIN
    DBMS_APPLY_ADM.START_APPLY(
    apply_name => 'apply_anc');
    END;
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE(
    capture_name => 'capture_anc');
    END;
    /

    Hello
    The above configuration is never supported. The implicit capture expects the queue payload to be SYS.ANYDATA and same with implicit apply also.
    However you can use Streams Messaging capability to achieve this. You need to wrap the messages with SYS.ANYDATA for this to work. The implicit capture uses a persistent logminer session to generate LCRs and it then wraps it with SYS.ANYDATA and enqueues into the capture queue, it then propagated to apply queue. You can generate LCRs and wrap it with SYS.ANYDATA and then enqueue into the capture queue then apply can recognise the messages.
    Here is an example on creating LCRs (tested in 10g):
    CREATE TABLE lcr_test (col1 NUMBER);
    DECLARE
         l_lcr SYS.LCR$_ROW_RECORD;
    BEGIN
         l_lcr :=
    SYS.LCR$_ROW_RECORD.CONSTRUCT
         source_database_name=>SYS_CONTEXT('USERENV','DB_NAME'),
         command_type=>'INSERT',
         object_owner=>USER,
         object_name=>'LCR_TEST'
         l_lcr.ADD_COLUMN('new','col1',SYS.AnyData.ConvertNumber(99));
         l_lcr.EXECUTE(TRUE);
         COMMIT;
    END;
    SELECT * FROM lcr_test;
    Converting to SYS.ANYDATA:
    DECLARE
         l_lcr SYS.LCR$_ROW_RECORD;
         l_anydata SYS.ANYDATA;
    BEGIN
         l_lcr :=
    SYS.LCR$_ROW_RECORD.CONSTRUCT
         source_database_name=>SYS_CONTEXT('USERENV','DB_NAME'),
         command_type=>'INSERT',
         object_owner=>USER,
         object_name=>'LCR_TEST'
         l_lcr.ADD_COLUMN('new','col1',SYS.AnyData.ConvertNumber(99));
         l_anydata:=SYS.ANYDATA.ConvertObject(l_lcr);
         ENQ_PROC(l_anydata);
         COMMIT;
    END;
    Thanks,
    Rijesh

  • The Apply Process meet some errors when applying..

    Hi all,
    My OS is Win Server 2003, Oracle is 10.2.0
    I were setup my streams environtment one-way. All my works were ok. But today, when I open the OEM console, at the Apply node, I recognized that Total Received is 10 but Total Applied is 4 and status is APLLYING. I open the arlert log at the source database, have some errors:
    Propagation Schedule for (STRMADMIN.capture_src_bosc_q, BOCENTER.REGRESS.RDBMS.DEV.US.ORACLE.COM) encountered following error:
    ORA-25307: Enqueue rate too high, flow control enabled
    I use
    select propagation_name,status
    from dba_propagation;
    *==> STATUS is ENABLE*
    At the Aplly process, I set the DISABLE_ON_ERROR is N, but seem as the apply process was halt (not continue apply some change at destination database).
    Have any ideas for this problem ?
    Edited by: changemylife on Nov 2, 2009 8:38 AM

    I had same problem too , and by increasing the Streams pool , it solved .

  • Will the apply process send back an acknowledgement when error or conflict?

    Hi.
    To ensure data integration, some mechanisms are introduced into streams. One of those is, when an apply process in the destination receive the LCR, it will send an acknowledgement to the propagation process in the source, and only when the propagation process in the source receive acknowledgements from all destinations, it will remove the LCR from the stream queue.
    My question is, when the apply process encountered with some exceptions, i.e. errors or conflicts, will it still send back the acknowledgement? Or this depends on whether the errors and conflicts are handled appropriately? Or some other conditions?
    Thanks for any suggestions.

    It's really two seperate things. The propagation process will push the lcr to all targets. Once it is safely in all of the target queues, the lcr will be removed from the source queue. If the apply processes successfully executes the lcr, then it will be removed from the target queue for that apply process. If an unhandled exception happens, then you will see the message in dba_apply_error. The apply processes don't know (or care) about what the other apply processes may do with the lcr.

  • Adaptive noise reduction filter only applying to parts of a clip

    MAC 10.9.4
    3.5 Ghz 6-core
    16GB ram
    AUDITION CC
    PREMIERE CC 2014
    This is happening over and over to me, along multiple projects and multiple clips.
    I apply Adaptive Noise Reduction, and tweak the properties. It sounds great but then when I 'apply', the filter is only applied to about 50% of the clip.....meaning it sounds great when tweaking the filter, but after when it is actually applied, only parts of it will apply.
    IE, If I have a 15 second and apply noise reduction.......It sill sounds while tweaking parameters. Then after I hit apply, seconds 1 - 4 will sounds great (filter applied) seconds 5-9 will sound awful like no filter has been applied, and seconds 9-11 will sounds great again, and 12-15 will sounds awful again.
    There is def something wrong here., This never used to happen in CS6, ever. Only when switching to CC.

    Hi,
    I have little use for/of the adaptive version of the noise reduction filters only because I want it ALL cleaner, so here is what I suggest: I left a very-detailed posting about "batch processing" in which I outlined using the the process version in the Waveform Editor. Give that post a read Re: How Do You Apply Process Effects To Multiple Clips In A Multi-Track?
    Let me know if you need more help.
    -CS

  • Trying to drag and drop a text parameter, but it only applies to one letter

    Hiya,
    In Motion 3, you could drag and drop a Text - Style Parameter to another text object.
    Now, in Motion 4, when I try to drag a Parameter it only applies to the first letter of my text object.
    So when I drag my Glow from one object to another, my Bleary In Behavior has a blue glow on T in THIS and a yellow glow on HIS in THIS.
    I'm guessing this has to do with the ability to adjust each letter with the glyph tool. However, it won't allow me to drag the Parameter to each individual letter...
    Which I see a need for...
    But why would I want to do a time consuming thing like that?
    It's stupid.
    Any advice is much appreciated!
    Thank you

    Well, I'm not sure what to say. I can't replicate your problem. I can drag the outline parameters onto a text object in the viewer, layers pane, or timeline and it copies it exactly as it did in Motion 3, over the entire text object.
    However, if I have the glyph tool selected and try to do the same thing, it crashes Motion 100% of the time.
    Neither situation is what you're reporting though. It helped me find a bug, and something to avoid however.
    Andy

  • Logical Standby Apply Process Performance

    Hello,
    We are testing our logical standby database for sql apply process.We run batch jobs in our active database and monitor the standby database for the time it takes to bring the database in sync following are the steps we follow:
    1) Insure active and standby are in sync.
    2) Stop sql apply on standby database.
    3) Run Batch job on active database.
    4) After completion of the job on active,start sql apply on standby.
    Following are the details of the time taken by sql apply,based on the previous runs:
    1st. 654K volume = 4 hrs (2727 records per min)
    2nd. 810K volume = 8 hrs 45 mins (1543 records per min)
    3rd. 744K volume = 7 hrs 17 mins (1704 records per min)
    Following are the details of the logical stdby parameters :
    MAX_SGA 100
    MAX_SERVERS 15
    PREPARE_SERVERS 4
    APPLY_SERVERS 8
    MAX_EVENTS_RECORDED 10000
    RECORD_SKIP_ERRORS TRUE
    RECORD_SKIP_DDL TRUE
    RECORD_APPLIED_DDL FALSE
    RECORD_UNSUPPORTED_OPERATIONS FALSE
    EVENT_LOG_DEST DEST_EVENTS_TABLE
    LOG_AUTO_DELETE TRUE
    LOG_AUTO_DEL_RETENTION_TARGET 1440
    PRESERVE_COMMIT_ORDER TRUE
    ALLOW_TRANSFORMATION FALSE
    can we ensure SQL apply process to apply data in consistent volume,Is it okay for a sql apply process to take same amount of time what the actual batch takes in active instance,can we further tweak apply process to get better performance.
    Please help.
    Thank you !!

    Following are the details of the time taken by sql apply,based on the previous runs:
    1st. 654K volume = 4 hrs (2727 records per min)
    2nd. 810K volume = 8 hrs 45 mins (1543 records per min)
    3rd. 744K volume = 7 hrs 17 mins (1704 records per min)
    Following are the details of the logical stdby parameters :
    Hi,
    By looking at the above apply rate, the apply process is working normally and not having issues.
    Since it's a bulk batch data update in PRIMARY, it's obvious and quite normal that it will take time in STANDBY database to get applied and in sync with PRIMARY.
    Still, if you need to consider improving the performance, look out for adjusting the APPLIER & PREPARER process. (parameteres, APPLY_SERVERS & PREPAR_SERVERS).

  • How do I create a rule that only applies to one mailbox?

    How do I create a rule that only applies to one mailbox? For example deleting the messages in the box after 10 days.

    You don't.  Rules are applied only to new incoming messages, or manually to the selected messages.  They cannot be used to delete messages after an amount of time.  You could create an AppleScript or Automator action that would do that and then use a recurring event in iCal to run that script.

  • IDOC_ADAPTER.ATTRIBUTE_BE_NOT_SUPP Only asynchronous processing supported

    Hello Expert,
    Error while send IDOC
    " IDOC_ADAPTER.ATTRIBUTE_BE_NOT_SUPP Only asynchronous processing
    supported for IDOC Adapter" is returned.
    Please suggest
    Thulasi

    Hi,
    Make sure that you have mentioned the Recever message interface as Async mode
    Here it is saying that IDOC suports only Async that means some where else u have mentioned as Sync interface
    Regards
    Seshagiri

  • When applying a transition between particular clips it only applies to the end of the previous clip and will neither 'Center on Edit' nor 'Start on Edit'. I'm kind new to FCE 4 so please excuse my inexperience.

    When applying a transition between particular clips it only applies to the end of the previous clip and will neither 'Center on Edit' nor 'Start on Edit'. I'm kind new to FCE 4 so please excuse my inexperience.

    This indicates that you only have handles available on one side of the edit point. If the transition ends on the edit, that means that the next shop begins on the first frame of the media file and there is no room for it to extend and create the necessary overlap.
    Click <a class="jive-link-external" href="http://www.fcpbook.com/Effects1.html">here</a> to find out how transitions work.

  • Logical Standby Apply Processes Die when granting a user sysdba on Primary

    I've run into an issue where the sql apply processes are stopping when granting a user sysdba privilege on the primary.
    The error is insufficient privileges.
    Of course the workaround that we have used is to skip the transaction on the logical and then manually grant the sysdba privilege on the standby. I'm hoping there is a more elegant solution as I have 8 DBAs on my team and each on of the transactions will need to be skipped individually, and is a bit of a pain. Just thought I would ask if anyone out there has run into the same issue and has a better workaround.

    I think you misunderstand. We run our standby in guard_mode 'STANDBY', which allows sys to perform the grant operation directly on the logical. Where it is failing is when we grant on the primary. That or I misunderstand. Are you saying that if I put in the script on the primary, the alter session command, then it will propagate down cleanly? That is something I have not tried of course, but makes sense how that could work, unless it throws an error on the primary because it is not a standby.

  • Increase Apply Process Performance

    Dear All,
    I want to know how can I increase Apply Process Performance in Oracle Streams Setup.
    I use Windows 2003 and Oracle 10g R2

    Check metalink Note:335516.1
    HTH...

Maybe you are looking for

  • How do I move imported photos into an existing album in photos

    I have a large collection of photos in iPhoto, arranged into events and albums. If I now import from my camera i open up photos, not iPhoto. After importing images how do I add specific images to one, or more, of my existing albums. If I close photos

  • N:1 mapping issue

    Hi All, Please can you guys put your little valuable time to help me in this. I have got one scenario like xml files to xml file, with one outbound interface to one inbound interface. These input 'n' xmls are coming into the folder in 5 to 10 minutes

  • Illustrator no longer opens files or saves changes w/ Mac

    Since I downloaded a new Security Update (Snow Leapord 10.6.8) I can no longer open new files in Illustrator.  Also when I open old files they will no longer save to PDF.  Anybody else see this issue? thanks

  • ITunes 8 will not install

    Since my old iPod died I invested in a new iPod Classic only to learn that I had to upgrade to iTunes 8 to use it. Unfortunately after trying everything suggested in this and other forums, I have had no success in getting iTunes 8 to install. When I

  • Battery Status Indicator (in menu bar) does not update

    I've recently noticed that the battery status indicator in the menu bar gets "stuck," and won't update. I can force it to update by disabling and re-enabling it, or by changing the view style, but if I leave it alone, it won't change, even across sle