Delete Rule for ActiveSync

Hi all,
idm version SP4
I have a configured MySQL resource with ActiveSync.
My table has a field 'type' that says if it's a delete or not.
I want configure a delete rule depending value's field 'type', but I don't Know do it.
How works delete rule?
Can you help me, please?
Thanks
Kiernan

Ignore my previous post, I had an unnecessary table in the join. Let's try again.
Query:
select
   ou.name as constraint_owner,
   oc.name as constraint_name,
   decode (c.refact, 1, 'CASCADE', 2, 'SET NULL', 'NO ACTION') as delete_rule
from
   sys.con$ oc, sys.user$ ou,
   sys.cdef$ c
where
   oc.owner# = ou.user#
   and oc.con# = c.con#
   and c.type# = 4 ;Example:
SQL> select
  2     ou.name as constraint_owner,
  3     oc.name as constraint_name,
  4     decode (c.refact, 1, 'CASCADE', 2, 'SET NULL', 'NO ACTION') as delete_rule
  5  from
  6     sys.con$ oc, sys.user$ ou,
  7     sys.cdef$ c
  8  where
  9     oc.owner# = ou.user#
10     and oc.con# = c.con#
11     and c.type# = 4
12     and ou.name = 'SPC_TBL_OWNER'
13     and oc.name = 'HUMID_SPOT_HISTORY_FK1' ;
CONSTRAINT_OWNER               CONSTRAINT_NAME                DELETE_RU
SPC_TBL_OWNER                  HUMID_SPOT_HISTORY_FK1         SET NULL

Similar Messages

  • How do you handle update and delete rules for fact tables?

    I have a fact table with a composite key of 5 columns. Two of the columns are FKs to the date dimension. I was setting the delete/update rules for the FK relationship in SSMS and it had a problem with me creating cascade action on the FKs that connected
    to the date dimension.
    What is the proper way to set up FK relationships in fact tables with SSMS when  you have composite keys as most fact tables do?

    Yeah I understand all that. What I'm trying to do is to protect my database from RI violations that occur by production support people blowing away stuff in a dimension table but forgetting to blow away related records in the fact table. I want those fact
    records deleted automatically so we don't have orphan records which was a real issue at a previous engagement. Production support is usually just people that know SQL and some relational modeling. It's not too likely they will understand the details of dimensional
    modeling enough such that they would know that they had to blow away the fact record first.
    My problem is I have a FK to a role playing dimension (the date dimension in this case). So basically I have to columns in the fact table that have a FK relationship to the PK of the date dimension. When I create both relationships SSMS and try to have both
    of them cascade delete SSMS has an issue with it.
    The error I get is:
    Unable to create relationship '[relationship name]'
    Introducing Foreign Key constraint '[constraint name]' on table '[table name]' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other foreign key constraints.
    I can go ahead and put no action and the table will save fine. The question now becomes how does the cascade delete actually work. Can I just set one part of the key to cascade delete?
    Actually I just realized that this is an even bigger design issue. What DOES happen to a fact record when one of it's dimensions gets deleted and I've got full RI set up on the table?
    Or am I totally thinking about this wrong. Do you set up cascade deletes in a dimensional model? Is there a way to prevent deletes from the dimension table if there are related fact records?

  • Compare/Merge Models does not recognise changes to FK delete rules

    Hi,
    I think I have found some functional gap in the data modeler (Version 3.0.0.665) comparison tool. I'd be glad to learn that I am wrong, but otherwise please consider this for a future version.
    Start with model "A"
    Model "B" = "A" + changed delete rules for some foreign keys, e.g. from CASCADE to RESTRICT.
    If I now compare A and B via Tools > Compare/Merge models, the ddl preview is empty.
    I only realised that because I explicitly tried to change FK delete rules in my db. I guess that if you do delete rule changes on the side of many other changes, you might easily overlook that the according constraint changes are missing in the ddl.
    Best regards,
    Martin

    Hi Martin,
    thanks for feedback. I logged bug on that.
    Philip

  • In the tranformation i have deleted a rule for an info object material?

    Hi all,
    In the transformation i have deleted a rule for an info object material and then moved into quality. The number of columns is 10 after the material is excluded.
    And the same transport moveed to production with warning messages.
    the number of columns is 11 and it is not 10 when i check in the quality!!
    Can anyone help me on this!!
    thanks
    Pooja

    Hi,
    As you said you removed the rule in transformation for an object (attribute) in matreila master data object.
    Number of column/attrbute will remain same when you will see data in master data object (material). It is just the mapping from source is removed so you will not see any data in that attribute/column for whihc you have removed the rule/transformation.
    For removing column you need to remove attribute/Info Object from Master data object (Material) attribute list.
    I hope it will help.
    Thanks,
    S

  • [SOLVED] how to use diffrent iptables rules for different ppp account?

    x86 plantform run arch linux system , have two network interface etn1 eth0 .eth1 connect to internet. eth0 connect to other terminals through switch. want use different iptables rules for different pppoe account .also want to know how to forbidden more than one terminals established pppoe link use same account at the same time .
    Last edited by linuxsir (2013-09-26 06:48:01)

    (You establish PPPoE sessions over the local network to the Arch machine? Which then routes the traffic?)
    first question ,yes that is exactly what i am done. second question i also have a small  scripts on windows pc to solve routes traffic problem
    route -p delete 0.0.0.0
    route -p add 192.168.9.0 mask 255.255.255.0 192.168.9.1
    route -p add 0.0.0.0 mask 0.0.0.0 192.168.22.0
    but after a while i found scripts is not necessary because windows always attempt to use PPPoE sessions as default internet connection local connection is also ok
    and use  -i pppX in my iptables rules dose not  solve my problem , because same account start PPPoE session could be marked as ppp0 or ppp1. it is hard to identified which account start session.

  • How to set up rules for emails to go to junk on iphone 4

    i have an iphone4 that i use for work and a coworker sent out over 40,000 emails which has now overloaded my email to where i cannot send or recieve emails can i set up rules for his emails to go straight to junk? and how my email address is linked to iphone4s and ipad as well.
    ps i did set up the rules on my desktop but it didnt seem to work or flow over to the iphone or ipad or maybe i just need to delete the emails? however theres literally 30,000 of them who do i do that quickly? please

    The Mail app on the iPhone doesn't support filters. You'd need to do that on the server side (not desktop). There is just no quick way to delete 30,000 emails.  At this point, I would remove the email account from your phone, delete the offending emails from your account, then add the account back to the iPhone.
    I would also report the co-worker to your IT department (if they haven't already noticed) for sending that many emails. I'm surprised that it didn't cause issues.
    Best of luck.

  • Disable Delete Button for infotype 2001 subtype 0025

    I want to Disable Delete Button for infotype 2001 subtype 0025 only in PA30/61.
    Is there any EXIT available

    Hi
    Try it .
    Somebody already given this type of answers.
    Pls first use Search then post.
    Well FYI,
    <b>There is a standard User Exit for PA30 / 40 for PBO and PAI events.
    ZXPADU01 for PBO and
    ZXPADU02 for PAI events.
    By writing proper code in here for the IT2001, you can write your rules.
    PBAS0001 ( PA: Pers.Admin./Recruitment: Default values and checks ),</b>
    Manoj Shakya.

  • 'Activation error..' message when uploading rules for multiple territories

    Hi All,
    When trying to upload rules for multiple territories using Excel, only a few territories get activated and for the rest an error saying 'Activation Error for Function <hexadecimal values>...N: see following message for details' is displayed. It was found that this is due to the territories getting locked.
    The create_rule() and save_rule() methods of CL_CRM_FDT class and FM  CRM_TERRMAN_LINK_BUFFER_UPDATE are used for this functionality.
    Kindly suggest some ways to unlock or any other alternatives.
    Thanks & Regards
    Jagathshree

    Hi Leonie,
    Thanks for your reply.
    Error message below. The preview is fine . I can discount the first 2messages as its a new computer so plenty of disk space and upload doesn't seem to be interrupted. I have uploaded to iphoto before. have tried to upload 3times with the same error message. I had to photo my slides with a Kaiser Baas photo maker , which apparently doesn't scan but takes photos in megapixels of the slides. I am wondering now if the format is incompatible though they are jpg files or the colour type wrong. The image files are  around 1-3 mb each and  72 ppi. I think  I will now scan them properly with a scanner to 300dpi anyway to improve quality.
    Apple  talks about image files not being too big for uploading but gives no sizing of what too big is?
    Error message
    1. Upload Error. Loss of connection or file corruption during order upload may cause an incomplete order. Resubmitting your order usually resolves this issue.
    2. Low Disk Space. If your computer is running on low disk space, your files may be assembled incorrectly. Create more space by deleting unused files.
    3. Unreadable PDF file or image files. Files are sometimes assembled incorrectly due to CMYK or Grayscale color space. Use the RGB color space for best results.

  • Delete rule from logical to relational model

    hello!
    I use data modeler Version 3.1.0.700 and I have some problems with delete rule.
    I have set delete rule in logical model on every relation (NO ACTION) but when i engineer it to relational there is everything randomized.
    How do i change this to be as it is in logical model?
    Thank you for your answer in advance!
    Grega

    as I explained in previous post "delete rule"in logical model is used in only one case:
    the setting in logical model is used only when relationship will be transformed into optional foreign key with non mandatory FK columns.Settings in compare/copy options" tab are used to exclude some properties from compare and engineer process.
    Philip

  • Delete rule not being generated in DDL

    Hi,
    I've only recently started using SQL Developer Data Modeler (coming from the Designer world), and it's been a good learning experience. There's a piece that I can't seem to figure out though, and it's related to the generation of DDL for foreign keys. In all my models (logical, relational, physical, I have the Delete Rule set to "Restrict". This isn't just the default preference I'm talking about, when I actually drill down to the properties of the FK, it says that the delete rule is restrict. However, when I generate the DDL, no delete rule is generated. The only option generated is NOT DEFERRABLE.
    There are two issues with this:
    1) The rule isn't going into the DB unless I manually alter the DDL, and
    2) Every time I re-import the DB to generate ALTER statements, the comparison detects that the rule in the DB (NO ACTION) is different than the rule in the model (RESTRICT), so it deletes and re-generates the FK. However, it re-generates it still not having the delete rule set, so it doesn't fix the problem.
    Is this a known bug, or is there some way of telling the program to generate the delete rule in DDL that I'm missing? I should add I'm using version 3.1.1.703.
    Thanks in advance for your help.
    Mike
    Edited by: user10832262 on Apr 12, 2012 9:53 AM

    I did some more research and I think I was completely misunderstanding Oracle's implementation of delete rules. Now I believe that Oracle implements the "RESTRICT" option in SQL Developer Data Modeler as "No Action", which is the default option, hence why no DDL option is generated. However, it would still be nice if Data Modeler could detect this fact when comparing two models. What I mean it, if comparing an Oracle DB to a model, treat Restrict and No Action as the same, and thus don't attempt to re-generate the DDL for this "difference". For now, I'll just change the action on my models to No Action, and this should resolve the issue.

  • Where do I set up rules for conflict resolution when syncing iTunes with Outlook?

    I just got an iPhone 5 and I'm coming from a Blackberry.  I've been syncing Outlook Calendar and Contacts to a portable device for over 10 years, even back in the day of the pocket pc and more recently the Blackberry.  My iPhone 5 syncs great and seemlessly with Outlook using iTunes.  I've had no issues as of yet.  The problem for me is, it just seems "too" easy.  I didn't see anywhere where I could set rules for conflict resolutions.  For example, if your pc says one thing but your iPhone says another, who wins and supercedes the other?  What if by accident your iPhone loses all of its data, then iTunes syncs with your pc - will it delete all the Outlook data on your pc because it thinks it's syncing with updated data from your iPhone?  (in my case data I've had for over 10 years) 
    With the Blackberry software it asked you to set up rules for conflict resolution when first connecting the phone (including an option to ask you first).  In my case, I chose to have it ask me whenever it discovered a conflict.  So whenever I synced, it specifically alerted me exactly how many items are being synced, and then if there were any conflicts, it'd stop and then ask me which device I want to supercede the other.  This gave me a lot of piece of mind.  Now after getting my iPhone and using iTunes to sync, it's been great so far but I have to say that I don't have as much piece of mind.  Does anyone have any feedback on how to set up conflict resolution with iTunes and Outlook or does it not exist at all?  Again, what would happen if there was a conflict between the two devices? 

    Yes! Thankyou for that. I had of course put the context.xml file in the web-inf directory.
    I followed your example to the letter and it still wouldn't work. Or rather, I followed to the letter expect for the difference between "WEB" and "META".
    Once I worked that out, it started working like a dream.
    Note to anyone else who has a similar problem, make sure you REALLY look at the answer given. Make sure you REALLY do have all the files in the suggested places. It will save you time.
    Thanks again.

  • Need help with Rules for mail accounts

    Today I deleted a rule for a mail account and now I cant receive mail in 4 of 8 accounts. I'm not experienced with Mac's Mail program. Id there something you have to do for multiple accounts to recieve all mail? I can send but not receive.
    Help!
    ~ Tammy

    It's hard to believe that deleting a rule could have a bearing on the ability to receive messages from any account... unless that rule did something that prevented subsequent rules to process the messages that you apparently can't receive now.
    That is, either having deleted the rule has absolutely no bearing on your problem, or the problem is that those messages are now being processed in an unexpected way by some of your other rules.
    What type of accounts are these (POP, IMAP, .Mac)? What does "I cant receive mail in 4 of 8 accounts" mean?

  • Deleted CSS for Horizontal Menu Bar. Help!

    I deleted the css for my spry horizontal menu bar and now when I try to upload it into a new page it is distored.  I added back the css rules for the menu bar and it helped but I cannot get the menu bar to line up horizontally like it was originally.  The bars are vertically staggered across the page.  Can anyone help me with the css settings to get the menu bar back to normal?
    Thank you
    Teresa

    Hello Teresa,
    we should not resign ourselves. I for my part, I'm very "happy" with my DW,  particularly you/we find here many unselfish helpers! What concerns your "way to build website an easier way" I'll propose DW itself (see screenshot of my German DW):
    or many of interesting templates (Google is your friend) and here my favorite are these of Nancy O.:
    http://alt-web.com/Free-CSS-Templates.shtml.
    And I want to reoeat my hints from above:
    If you have a budget to work with, look at PVII's Pop-Menu Magic3.
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    jQuery Superfish (free): http://users.tpg.com.au/j_birch/plugins/superfish/ aso.
    Good luck!
    Hans-Günter
    P.S.
    And whether you use DW or other programs, sooner or later you have to become familiar with CSS and html aso.

  • Something interesting with check rule for VAT registration no.

    Hi Guys,
    I found something weird in sap with check rule for VAT registration no.
    If I set any of check rules for US and save(tcode oy17), then change the country of a customer from DE to US and save(not change the VAT registration no), the system post error messages "ISO code DE is not correct in the VAT registration number". But if I set rule for AU(australia) with same rule as US, and change the customer's country from DE to AU(not change the VAT no), no error happens and customer can be saved successfully. So anybody can give any explanation on this problem?
    Thanks in advance, point will be rewared. Waiting for the comments.
    Regards,
    Alex

    <TABLE align=center border=0 cellPadding=1 cellSpacing=1 width="95%"><tr><td width="15px"><input type="image" src="wwv_flow_file_mgr.get_file?p_security_group_id=1046425373323359&p_fname=add2d1.jpg" name="add_QTB_5174" id="add_QTB_5174" onclick="javascript:addRowToTable('QTB_5174',4,22.5);return false;"/></td><td width="15px"><input type="image" src="wwv_flow_file_mgr.get_file?p_security_group_id=1046425373323359&p_fname=delete2d.gif" alt="delete" name="delete_QTB_5174" id="delete_QTB_5174" onclick="javascript:removeRowFromTable('QTB_5174');return false;"/></td><td><input type="image" src="wwv_flow_file_mgr.get_file?p_security_group_id=1046425373323359&p_fname=edit2d.jpg" alt="edit" name="edit_QTB_5174" id="edit_QTB_5174" onclick="javascript:updateTableRow('QTB_5174',22.5);return false;"/></td></tr></table>
    <input type="hidden" value="QTB_5174" id="5174"><TABLE align=center border=0 cellPadding=1 cellSpacing=1 width="95%" id="QTB_5174" name="QTB_5174">
    this a sample code. I have marked the name attrib in bold.

  • Logical M:N Relation with Delete Rule:"NO ACTION" creates "CASCADE" FK

    I think I've detected a bug in the generation of FK when we have"N: N" relations, give me idea that the delete rule that is defined in the relationship of logical model is ignored.
    So I give you a small example to reproduce it:
    I've a simple example of 2 entities:
    Logical Model:
    Entity_A(#id_a, desc)
    Entity_B(#id_b, desc)
    M:N Relation between Entity_A and Entity_B (REL_A_B) with Delete Rule: "NO ACTION".
    When apply "Engineer to Relational Model" I've as result 3 tables:
    Relational Model:
    Entity_A(#id_a, desc)
    Entity_B(#id_b, desc)
    REL_A_B(#id_a, #id_b) but the generated foreign keys are defined using Delete rule "CASCADE".
    Is not supposed to have been generated with delete rule "NOT ACTION"?
    As result the generation of DDL scripts is creating FKs with the clause " ON DELETE CASCADE", which was not originally intended.
    I try to change this value in logical model but I've seen not effect on result.
    I hope I have helped!

    Hi Ariel,
    thanks for reporting the problem. I assume it's for Data Modeler 3.3.
    I logged a bug for that.
    Philip

Maybe you are looking for