Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Not under consideration
Workspace Db2
Created by Guest
Created on Sep 27, 2019

Enabling Restrict on Drop clause logic in create table command for db2 LUW

There is a feature called "Restrict on Drop" that should be used by the database designers while creating a table for the db2 LUW database

 

1) If a database designer uses this "Restrict on Drop" clause for the creation of the table then the 

tables does not get dropped 

2) If a database designer does not use this clause "Restrict on Drop" clause during the creation of the table , then the tables gets dropped irrespective of whether the table has foreign keys and many more dependencies

 

So Say if the database designer opts for the second option and creates the tables in a database

and in future if he accidentally drops a table then the table gets dropped

 

Say if that table is referenced by around 10 tables again all thoese references are lost and also

all other dependencies on that table gets losted

 

So my point is why cant this logic of "Restrict on Drop" be embedded in the "Create table" Command itself so that by default the table goes into a state where it cannot be dropped

Needed by Date Nov 30, 2020
  • Guest
    Reply
    |
    Jul 7, 2022

    agree with the consensus; if controlled with a registry variable this would be a good idea. I don't think it should be default behaviour for CREATE TABLE

  • Guest
    Reply
    |
    Feb 21, 2022

    A registry variable (or DSNZPARM for Db2 z/OS) that would implement this is a good idea. The default behavior should remain unchanged, but having the system parameter would be a nice option for those shops choosing to implement RESTRICT ON DROP as a standard. Of course, removing RESTRICT ON DROP to actually drop the table needs to be as simple as today (where it is just a DDL statement) without having to change a system parameter to actually do a drop.

  • Guest
    Reply
    |
    May 5, 2021

    this will be very good feature to include at the DB2 registry level


  • Guest
    Reply
    |
    Oct 2, 2019

    It would be helpful for database designers if the 'Restrict on Drop' can be activated through a db2 registry variable

  • Guest
    Reply
    |
    Oct 1, 2019

    I don't agree with changing the default to enable 'Restrict on Drop'.

    1. As noted by Luis Pontes, previously written scripts could now fail.
    2. I am not sure FK's are in use enough to warrant making this the default in a 'CREATE TABLE...' command. If this is a default all non-FK'd tables would have to disable the option on table create. I am not in favour of what I call 'negative options'.
    3. While making this option a default can protect a developer from making a fatal error, following the proper process when performing a change is the correct method.
      1. Verify a successful backup is available before making a change
      2. Test the change on non-production
      3. Know your database.
    4. It could then be argued that other 'CREATE' commands have a similar option to protect a developer from accidents.

    An optional instance level registry variable would be acceptable.

  • Guest
    Reply
    |
    Oct 1, 2019

    Innovative feature of DB2 that needs to be activated the registry variable :)

  • Guest
    Reply
    |
    Sep 30, 2019

    Changing the default behavior will generate too many failures with previously written scripts.

    However, activating it trough a db2 registry variable may be an acceptable option.