How to exclude table grants from getting being streamed

I have one way schema level streams replication setup with DDL. The destination database does not have all the roles and users setup that the source database has so when a grant happens on the source and the role or user does not exist in the destination database the grant fails and I get an apply error. I want to be able to ignore these.
Thanks

Assigning grants is not an automated process so why not use the DBMS_STREAMS.SET_TAG on source DB into the session and then issue the grant :
SQL> exec DBMS_STREAMS.SET_TAG(tag => HEXTORAW('17'));
PL/SQL procedure successfully completed.
grant MY_ROLE to MY_OWNER ;
-- the grant is not captured by streams, so not apply error
SQL> exec DBMS_STREAMS.SET_TAG(tag => null ) ;
PL/SQL procedure successfully completed.
-- capture enabled again in this sessionhttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_strm.htm

Similar Messages

  • How to keep Reader from being installed if running Pro? Running Acrobat X Pro. Occaisionally, a website with a PDF triggers Reader to be installed on my system. NEVER want reader (that's why i bought Pro). How do i keep Reader from EVER being installed?

    Running Acrobat X Pro.
    Occasionally, a website with a PDF triggers Reader to be installed on my system.
    NEVER want reader (that's why i bought Pro).
    How do i keep Reader from EVER being installed?

    I don't get a pop-up. Something triggers the Reader installer to be loaded on my system. This occurs without my knowledge. Then, the next time i go to open a PDF, instead of it opening immediately with Acrobat Pro, I get the first screen of the installation stuff for Reader (Accept/Decline Terms of use, etc.). At this point, i get out of the install, go into control panel and uninstall Reader (which is listed as a loaded program, even though i haven't finished the install). After i uninstall reader and open a PDF, it opens correctly with Acrobat Pro. This happens once or twice a month at least. Is it possible that the Adobe Acrobat Update Service task loads Reader on my system at some interval? How do i block Reader form EVER being installed or loaded?

  • How to exclude salary arrears from pension deduction?

    I have setup a pension retro element and its calculating the retro amount correctly.
    However, its using sum of salary arrears (say,arrears for the month of March and April) and adding that to May salary and deducting pension on the total sum.
    (we do not want this, we want only May salary to be considered for pension retro element)
    Does anyone know how to exclude salary arrears from pension deduction element? Is there any obvious step, which I am missing in while defining the element?

    Hi,
    While doing retro for arrears, it will give at a time in one payroll only, no standard for installment payments.
    2nd option:
    Calculate the Total Arrears amount and divide it by four installments and through IT 0014 with New wage type and give for 4 months as start and end date.
    * you have to create a new wage type which is taxable and assigned to IT 0014.
    * add this new wt in Remuneration form in Earnings side.
    Regards,
    Praneeth kumar

  • My phone gets super hot! What is making my phone of this and how do I stop it from getting hot?

    My phone gets super hot! What is making my phone of this and how do I stop it from getting hot?

    If the internal temperature gets too high, you will see the following.
    Has this occured?

  • How to transfer table data from one client to another client?

    How to transfer table data from one client to another client?

    Hi,
    Look at the Blog
    /people/community.user/blog/2007/01/07/transport-table-entries
    Regards
    Sudheer

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • How do I download pictures from my photo stream in iCloud to my non-Mac computer running Windows 8?

    How do I download pictures from my photo streams in iCloud to my computer so that I can delete the photo streams to save space on my iPhone but still save the pictures?  My computer is a Dell running Windows 8.1?

    Hi smdahl85,
    Pictures in My Photo Stream can be brought into your Windows computer using the steps in this article -
    My Photo Stream FAQ - Apple Support
    Specifically the section titled How do I view photos in My Photo Stream?
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to detele the photos from the photo stream on the iphone

    how to detele the photos from the photo stream on the iphone

    you can't delete individual pictures from it. You can only reset it, so that the cached pictures are reset to zero by turning off photostream on the PC/Mac as well as on the iOS5 device.
    Once you turn it on again, the same pictures randomly start populating it. Always the recent 1000 pictures . You can't select really which one will go there and which wont.

  • How to exclude certain playlists from being shuffled?

    I have Video IPOD and would like to know how to exclude certain play lists from being played when the "shuffle song" function is on?
    Appreciate your help.

    Going back to the beginning I think I misinterpretted your original question. I thought you wanted to be able to turn on the Shuffle Songs function of the iPod and when you played any playlist it would shuffle normally but you wanted to have some playlists that would play without shuffling without having to turn off that function.
    Now I think what you wanted to say was you want to shuffle song when playing your library on the iPod but if certain songs exist in your "do not shuffle" playlist, they would be skipped, right?
    If that is the case, you can do it with some Smart playlist manipulation. First create the "Do Not Shuffle" playlist and put everything in there that you do not want to show up when you are shuffle playing your library. Now create a new Smart Playlist where the rules are "Playlist IS NOT [do not shuffle]". Make that the only rule, check live updating and only checked songs. What will happen is that playlist will contain your entire library EXCEPT the ones you don't want shuffle played.
    Now when you listen to your iPod, you can use the Shuffle Songs option turned ON and play that smart playlist which will basically let you hear anything and everything in your library shuffled EXCEPT for those songs you designated to not include.
    Patrick

  • How to exclude tablespace UNDOTBS1 from backup in OEM

    I use OEM to backup our database (11.2 on Redhat 2.6.18-92.el5 ). It take quite a bit time and disk space (32gb) to backup the UNDOTBS1 table space. I do not think that we need undo tablespace for a recovery. If this is correct how can I excludeit from the backup. OEM allow to exclude data tablespace from backup but not UNDOTBS1.
    Thanks

    To create a physical standby you need the entire database. Not just parts of it. The only thing at the standby system that will be different is the controlfile (it will be a standby controlfile) and the spfile. Everything else will be exactly the same. Locations of the files can differ of course if you set the appropriate parameters.
    Please make sure you have read Chapter 3 "http://download.oracle.com/docs/cd/E11882_01/server.112/e10700/create_ps.htm#i63561" of the Data Guard Concepts and Administration manual.
    You can use the RMAN qualifier FROM ACTIVE DATABASE to the DUPLICATE FOR STANDBY command to avoid the need for interim storage for the backup. That method streams the backup from the Primary directly into the standby server. Refer to Chapter 2 of our book "Oracle Data Guard 11g Handbook (http://www.amazon.com/Oracle-Guard-Handbook-Osborne-ORACLE/dp/0071621113)" for details.
    Since you are using OEM, make sure you are using 10.2.0.4/5 Grid Control. The Data Guard standby creation wizard has a new option to use this RMAN option. It is the first selection on the type of backup page. (To get to the DG pages select your Primary database from the Database Targets page and then select the Availability tab, and then under Data Guard select the Add Standby Database link).
    As for block change tracking, since we all thought you were just doing a backup and did not realize you were trying to create standby BCT can help make it faster. However it does not apply in this case.
    Larry

  • How to access table ADR6 from smartform

    I'm trying to get the email address of a customer in my smartform but I don't know how to pass table ADR6 to my smartform.  I've tried using a SELECT statement from ADR6 but nothing ever gets set to the variable, so I'm guessing I need to store the table into a local workspace first?  How do I do this?  If I'm on the wrong path can someone tell me how to pass in an external table that has no connection to your form interface variables being passed in?

    Hi,
    I've tried using a SELECT statement from ADR6 but nothing ever gets set to the variable, so I'm guessing I need to store the table into a local workspace first? How do I do this? If I'm on the wrong path can someone tell me how to pass in an external table that has no connection to your form interface variables being passed in?
    Need not to store the whole table. SELECT statement works in this case. In Global declaration-->Types define the structute with the fields u want to display. like this
    TYPES: begin of type_adr6,
            ADDRNUMBER like ADR6-ADDRNUMBER,
            SMTP_ADDR like ADR6-SMTP_ADDR,
           end of type_adr6.
    and then declare it in Global data Tab like this
    WA_ADR6   TYPE  TYPE_ADR6
    end then write SELECT statement in program lines node and fetch the required fields into the work area WA_ADR6.
    now u display these fields.
    regards
    raam

  • How to exclude Web App from search results

    Hi
    Search results link to a unstyled Web App instead to the actual page it resides in.
    Please do this:
    1. go to: http://kinship.businesscatalyst.com/
    2. search for "Michael" on the top global search
    3. on the search results page click on the name (link).
    4. you will see Michael's web app item not the actuall page it resides in (http://kinship.businesscatalyst.com/About/the-team)
    How to avoid getting web app results in search?
    Thanks
    Micha

    Hi Micha
    Just add “&OT=35 “ at the end of the action in your search form:
    Ex:
    <form name=”xxxx” method=”post” action=”/Default.aspx?SiteSearchID=3566&amp;ID=/results&OT=35”>
    <div class=”search-box”><input type=”text” class= ............../>
    <input type=”submit” class=”cat_button” value=”search” />
    </div>
    </form>
    Here are the rest of the content types IDs, should you come across similar situations in the future:
    Web Pages = 1
    Literature = 6
    Announcements = 7
    FAQs = 9
    Forums = 43
    Blogs = 55
    Web Apps = 35
    Catalogs = 26
    Bookings = 48
    You can exclude multiple areas from a search, simply list them with commas: &OT=35,1,6

  • How to copy table data from onde DB to another DB using clipboard

    HI,
    i copied table data from one DB to another DB, but it displays an error as "policy with check option violation" when inserting the table data.. so how to resolve the proble.. thanks in advance.

    DECLARE
    log_utl_dir VARCHAR2(100) :=('/apps/home/cmsftp/log/gaa');
    CURSOR tb_compy_cur is
    select tb.compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb,tb_xop_entitlements te
    where tb.grant_award_accept_flag = 'Y'
    and tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RECONCILED'
    union all
    select compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb
    where tb.res_stock_flag = 'Y'
    --and   (tb.res_auto_lapse_flag = 2 OR
    --tb.res_auto_lapse_flag = 3)
    and exists (select entitle_name from tb_xop_entitlements te
    where tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RES_FLAG'
    and te.optionee = 'Y'
    and te.psrep = 'Y'
    and te.sponsor = 'Y'
    and te.advisor = 'Y');
    v_xopgrantz_insertcount NUMBER := 0;
    -- QC 158113 - added below
    v_xopgrantz_accpt_count NUMBER := 0;
    v_user_id VARCHAR2(30);
    insert_file_id UTL_FILE.FILE_TYPE;
    insert_log_file varchar2(45) := 'xop_grantz_insertstats.log';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('success1');
    insert_file_id := UTL_FILE.fopen(log_utl_dir,insert_log_file,'w');
    UTL_FILE.put_line(insert_file_id,'Starting the Process at '|| CURRENT_TIMESTAMP);
    UTL_FILE.put_line(insert_file_id,'INSERTING ROWS FOR Companies turned on for GAA_RECONCILE and GAA/RESSTOCK');
    for compy_rec in tb_compy_cur loop
    v_user_id := 'CMS'||compy_rec.compy_acronym||'_USER';
    ctx_set_session.set_user_session(v_user_id);
    dbms_output.put_line ('success2'||''|| v_user_id);
    INSERT into xop_grantz(grant_num,
    user_id,
    last_user_id,
    restrict_grant,
    child_symbol,
    parent_grant_flag,
    bulking_overide_flag,
    exerrestrict_code,
    rounding_method,
    exercisiable_dt,
    def_res_units_flag,
    opt_gain_def_elig_flag,
    opt_gain_deferred_flag,
    opt_gain_deferred_dt,
    opts_accepted,
    lst_updtby_usercd,
    accepted_type,
    GAA_eligible,
    GAA_LST_UPDTBY)
    select g.grant_num,
    v_user_id,
    'GRNTACCPT',
    'N',
    'N',
    (sel ect code
    from tb_xop_exerrestrict_codes
    where cash_allowed = 'Y'
    and cashlesshold_allowed = 'Y'
    and cashlesssell_allowed = 'Y'
    and stockswap_allowed = 'Y'
    and restricted_allowed = 'Y'
    and sar_allowed = 'Y'
    and cashmargin_allowed = 'Y'
    and cashpartial_allowed = 'Y'
    and sarsale_allowed = 'Y'),
    NULL,
    'N',
    'N',
    'N',
    NULL,
    NULL,
    NULL,
    'N',
    NULL,
    NULL
    from grantz g
    where not exists(select 1
    from xop_grantz xg
    where xg.grant_num = g.grant_num);
    v_xopgrantz_insertcount := SQL%ROWCOUNT;
    dbms_output.put_line ('1');
    -- QC158113 - Optimisation fix--starts
    DELETE FROM gt_xop_grant_accpt_type;
    INSERT INTO gt_xop_grant_accpt_type
    SELECT g.grant_num,e.ivr_plan_num,
    pk_xop_grntaccpt.fn_get_accpt_type (v_user_id,
    g.plan_num,
    g.grant_dt,
    g.opt_num,
    g.grant_cd,
    g.plan_type,
    'Y'
    FROM grantz g,tb_xop_entitlements e
    WHERE plan_type IN (2, 4, 5, 7, 8)
    and g.user_id = v_user_id
    and e.ivr_plan_num = compy_rec.ivr_plan_num
    and entitle_name = 'GAA_RES_FLAG' ;
    dbms_output.put_line ('success3');
    v_xopgrantz_accpt_count := SQL%ROWCOUNT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in gt_xop_grant_acceptance '|| v_user_id||v_xopgrantz_accpt_count);
    -- QC158113 - Optimisation fix--ends
    COMMIT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in XOP_GRANTZ for USER_ID '|| v_user_id||v_xopgrantz_insertcount);
    ctx_set_session.set_user_session('');
    dbms_output.put_line ('process completed');
    end loop;
    UTL_FILE.fclose(insert_file_id);
    EXCEPTION
    when others then
    rollback;
    dbms_output.put_line ('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||'INSERTING into xop_grantz for ALL grants');
    END;
    i received this error when running the procedure also, so the table gt_xop_grant_accpt_type is not populated
    {Code -28115:ORA-28115: policy with check option violation at CMSFB_USER .pr_xopgrantz_insert}

  • How to exclude a partition from schema mode export?

    I am using Oracle 10g Data Pump Export utility expdp. What I am trying to do is to export a single schema, except for a certain partition P in table T.
    I have tried:
    expdp user/pass@db dumpfile=... logfile=... exclude=table:" = 'T:P' "
    (please ignore the OS specific text escaping issue)
    It doesn't work. The whole table T gets exported.
    Is there a way to exclude partitions from schema mode export?
    If not, is there a way I can achieve the same with DBMS_DATAPUMP API?
    Edited by: 950367 on 2-Aug-2012 10:42 AM

    Try “QUERY” Data Pump Export parameter. Unless your partition is a hash partition, you should be able to constrict a where clause that gets you all records in the table, except the records for the partition you want to exclude.
    For instance if you want to exclude a range partition (between 100 and 200) on the col1 column you should put something like this:
    QUERY= USR.TAB:”WHERE COL1  < 100 OR COL1  > 200”This approach would export the partition definition though.
    Iordan Iotzov
    http://iiotzov.wordpress.com/
    Edited by: Iordan Iotzov on Aug 2, 2012 10:55 AM

  • How can I prevent Mail from Getting Messages Automatically?

    I want to stop Apple Mail from getting new messages until I click on the "Get Mail" button.
    This is proving hard to achieve.
    In Mail Preferences, I have set Check for New Messages to "Manually."
    This does nothing.
    Additionally, I went to each account, went into the Advanced tab and unchecked "Include when automatically checking for new messages."
    This also changed nothing.
    This should be fairly easy to achieve, and yet it is not. Any thoughts on how I can set this up? I have one iCloud account, one Google Apps via IMAP account and one generic IMAP account. They all seem to ignore the settings for message fetching.
    I am running OS X Yosemite 10.10.2. Apple Mail version 8.2 (2070.6).
    Mid-2011 iMac 21.5", 16GB Ram, 2.5 GHz Quad-Core i5.

    Same issue since Mavericks.

Maybe you are looking for

  • Synchronize MII transaction - only one running instance at a time

    Hello, I have a scenario where I use an MII transaction triggered by PCO, and it may be the case that the same PCO notification triggers this transaction twice within a very short time, i.e., the second transaction instance starts its execution befor

  • ACL Best Practice - On the Internet interface

    I have a question relating to ACL's on a routers 'Internet' facing interface. Further to reading several whitepapers on the topic, a recommended ACL would typically contain the following statements. In addition, the Cisco SDM automatically generates

  • How do you batch re-name pdfs in Acrobat X Pro?

    If I have 5000 pdf files in a folder and I need to change the file names from Document A.pdf, Document B.pdf, Document C.pdf, Document D.pdf, etc. to Document A-1.pdf, Document B-1.pdf, Document C-1.pdf, Document D-1.pdf, etc and don't have time to g

  • Can't create new messages in Mail

    When I click on New Message or Reply I don't get a new window or a new draft message. Nothing seems to happen. But if I quit Mail and then re-launch, I get all the new mail windows appearing, and they are all there in my drafts mailbox, and they can

  • ABAP-HR Time managment

    Could any one send me ABAP-HR Time Managment documet(Tutorials) THanks and regards vamsin [email protected]