Remove primary key Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Remove primary key

  1. #1
    Join Date
    Oct 2007

    Remove primary key

    This is an Oracle dababase on solaris 10.
    I want to remove the primary keys from specific tables on certain named columns. Also I want to drop the specific named columns from the table.
    I will appreciate suggestions as to the best possible approach.



  2. #2
    Join Date
    Mar 2007
    Ft. Lauderdale, FL
    Check business requirement one more time...
    If sure... go and ask again...
    Test it... Test it... Test it...

    Drop PKs
    - Research alter table drop constraint to get rid of PK

    Drop columns
    - You should also get rid of all indexes referencing columns you want to drop
    - I would create new tables, like CTAS
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width