Remove the primary key constraint and add new primar key to the table.

Hi all,
We had a design plan to remove a primary from the table on column X(VARCHAR) and add a new primary key on column Y(sequence)(dimensional table). Instead, I am planning to create a unique index on the column Y (I am referring column Y in my Fact table).
I am using the column Y while joining the dimensional and fact table. Now, my question is.
Is the retrieval will be faster if I make column Y as primary key or Is it the performance same if I create a unique index on it ?
Note: Both column X and Y in dimension table are unique and not null. Don't want to alter the existing system hence want to create unique index .
Please suggest.
Thanks and Regards
Nagaraja Akkivalli

When you define a column as Primary key column you give certain information to Oracle that i can use when accessing that table. And similarly when you say a column as Unique Key column you give certain details to oracle that i can use when accessing that table.
So it is up to you to decide if the what that column is meant to do. And decide based on that.
For example a Unique column can have NULL values. But a primary key cannot have NULL value. This piece of information can be critical to oracle to generate the best plan.

Similar Messages

  • How to Remove a bad mailbox server and add new mailbox server to DAG and copy mailboxes over

    DAG
    2- cas - VM
    2- mbx- physical blade  (mbx1, mbx2)
    5- mailbox databases
    OS: Win 2008 SP2
    Exchange 2010SP3
    Storage: Tegile Disk jbod  Luns
    We have bad disks on mbx1.  our plan is to get a new blade to replace the bad one named mbx3. we need to do this asap since we are running on 1 server without failover capability
    How can I safely:
    1. Add a new mailbox server to the DAG
    2. Copy\Move the databases from the old (passive) server to the new server
    3. Remove the bad mailbox server from DAG

    You'll want to make sure that the new server is on all the same networks that the server you are removing is on, specifically networks that are DAG networks. Also, you'll want to avoid using Windows Network Load Balancing on the new mailbox server
    since it will be part of the DAG. Also, just as you did with the current DAG members, ensure that the disk drive letters match the existing disks that hold databases & logs. Other than that, it's as simple as you have stated.
    1.) Once you have the new mbx server built & configured with the mailbox role, you can use:
    Get-DatabaseAvailabilityGroup "Name of DAG" | Add-DatabaseAvailabilityGroupServer "Name of New MBX Server"
    2.) Add the databases to the new DAG member:
    Add-MailboxDatabaseCopy "name of database" -MailboxServer "name of new DAG member" -ActivationPreference "[you decide based on the server replacing mbx1]"
    3.) Once your databases are Mounted and/or Healthy on the new DAG member, you'll want to remove the databases from the "bad" server (make sure they are all passive on the server first):
    Get-MailboxDatabaseCopy "SERVER\Database" | Remove-MailboxDatabaseCopy
    4.) Once all of the databases are removed from the "bad" DAG member, remove him from the DAG:
    Get-DatabaseAvailabilityGroup "Name of DAG" | Remove-DatabaseAvailabilityGroupServer "Name of old MBX Server"
    Before you pull the blade, uninstall Exchange Server gracefully, as this will save you AD & Exchange headaches later on.
    Petri has a pretty good GUI walk-through for some of the above steps here:
    How to Configure Database Availability Group for Exchange Server 2010
    Woody Colling, MCITP Exchange 2010
    --The incentive for the experts to answer posts is to get their replies marked as helpful, or as the answer to our questions, help them help us, mark posts accordingly--

  • Need to remove default dock menu item and add new.

    Hi ,
    I am working on Carbon application on Xcode . I need to remove default menu item attached to my application dock menu like ( Remove from Dock , Open at Login , Show in Finder ).
    I also need to attach new items to my application dock menu and want to handle its event.
    Thanks in advance,
    Sunil Adhyaru.

    Well, this is a programming question more than a question on how to use the Leopard environment (you might want to post to one to the programming forums).
    However, basically, you can't remove the Dock menu items that the Dock itself adds (add/remove from dock, etc.). You can add your own menu items, however. Use the interface builder to create a nib that has a menu in it -- call it something catchy like MyMenu.nib.
    Then in the application property list file (Info.plist) add property called "AppleDockMenu" and set the value to a string that's the name of your nib file (without the .nib extension).
    Subsequently, you treat that menu just as you would the menus in your menu bar. That's all there is to it.

  • Is there anyway to have the ability to edit and add contacts without syncing to the cloud?

    My husband and I share an account.  He has a very large number of contacts that I do not need and don't want on my phone.  I turned off syncing my contacts to the cloud for this reason but now do not seem to have the ability to add contacts or edit my existing contacts.  Any suggestions? 

    It seems like you need to set up your own iCloud account.  Just set one up different from his.  Create a new one if you don't have another already.

  • I need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by ste

    i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner

    Please post (a relevant section of) it right on this Forum.

  • SSIS - "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object ' tablename '. The duplicate key value is 1234 . Though there are no duplicate records.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.
    I suspect you are trying to insert modified records instead of updating.

  • I have a new IPAD. There are no "list", "date," and "add a reminder" buttons on the Reminder app. There are also no "calendar" and "add an event" bottons on the Calendar App. Why?

    I just bought a new IPAD. There are no "list", "date," and "add a reminder" buttons on the Reminder App. There are also no  "calendar" and "add an event" buttons on the Calendar App. Why? Is there a way to add either a reminder or an event?

    For the reminders app - just tap on an open space on the ruled paper window under the heading in order to create a new reminder. Or tap on the + sign in the upper right corner of the app. You do not have the + sign on the app?
    For the calendars app to go Settings>iCloud>Calendars>On. Toggle the setting on and off and the + sign should appear in the lower right corner of the calendars app. Tap the + sign to create a new event.

  • When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    I just found the solution!
    Niel
    Re: Why is my Finder window popping up when I open my Safari window? 
    Jan 20, 2008 7:58 PM (in response to alak)
    Open the General tab of the Safari preferences and correct the home page; the default page is this one. If it has become set to a folder on an FTP server or a local drive, that request will be sent to the Finder. (28252) 
    iMac Late 2007 Core 2 Duo, Mac OS X (10.5.1)

  • I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    click and hold on one cell, then drag to select the range, then release, then type the delete key.  Only inlude cells in the range you do not want to keey the contents of the cell.  You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
    You can download the Numbers users guide here:
    http://support.apple.com/manuals/#productivitysoftware

  • EM  - Delete Existing Tracking ID and add New Tracking ID

    Hello Everyone
    I am working on u201CDual Tracking IDu201D issue for EM Project.
    Issue: Current design, when Users change Tracking ID (Inbound Delivery Bill of Lading #), In Event Management, we have both Old and New Tracking ID (YTRACK_NO).
    Solution: Users / Business Requested to Update Existing Tracking ID (YTRACK_NO) in EM. Anytime in EM, we will have only NEW value of YTRACK_NO.
    For the same, I modified FM in ECC and Config (Rules) in EM.
    Added  Tracking References in Event Message FM whenever there is change in Tracking No.
    Replace Existing Tracking ID YTRACK_NO with new Value
          ls_trackreferences-evtcnt   = lv_evtcnt.
          ls_trackreferences-refcod   = 'YTRACK_NO'.
          ls_trackreferences-refid    = <ls_xlikp>-bolnr.
          ls_trackreferences-refusage = 'T'.
          ls_trackreferences-action   = 'A'.
          APPEND ls_trackreferences TO lt_trackreferences.
    Configuration / Rules in EM:
    For YIDN_CHANGED_TRAC Activity:
    Iu2019ve added Task12 u2013 Delete Tracking u2013 Activity TRACKING_ID_REMOVE
    TASK 15 u2013 Added Tracking ID u2013 Activity TRACKING_ID_SET
    Once the FM and Config is completed,
    When I change Existing Inbound Delivery BOL #, I see TRACKING ID (YTRACK_NO) is deleted from Tracking ID Tab for Inbound Delivery EH but new Tracking ID (YTRACK_NO) is not added either.
    I checked SLG1 ( logs) and I see Activity is Triggered and RC = 0. Donu2019t see any errors either.
    I see entry in /saptrx/evm_ref ( New Tracking ID) table.
    Any thoughts?
    Any help is appreciated.
    PS:
    u2022     Once the Event Messages is posted, If I do Reprocess Event Messages (Manually), interestingly New Tracking ID is getting added to EH.
    u2022     Also if post Event Messages through BADI (/SAPTRX/BAPI_EH_ADDEVENTMSG_02) in EM (manually) , it works Perfectly (Deletes and Adds new Tracking ID)

    you sign in on apple website and then you can add or remove any account..

  • Violation of PRIMARY KEY constraint . Cannot insert duplicate key in object

    hi i am using SQL Server, when i try to insert data from my jsp page it is inserting the data double time and when i try to submit for second time it is showing the following error.
    Violation of PRIMARY KEY constraint 'PK_EMPLOYEE'. Cannot insert duplicate key in object 'EMPLOYEE'.
    I didnt set identity for primary key. If i try to set identity to true then it is allowing data to submit only if i uncheck my primary key column in cached row set. And if i uncheck that primary key element then i can not retrieve the data by edit button. So how to solve this problem.
    Please any help would be appreciated.
    Thank You in Advance.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.
    I suspect you are trying to insert modified records instead of updating.

  • Why "New Item" in ribbon and "Add new item" in xsllistview link to different form

    Hi all,
    I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
    I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
    1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
    2. Will open new form that created in SPD when click on "Add new item" in list view.

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • I bought a relative's original iPad. I want to leave the apps on it and add my own pdfs to read. My itunes account is really for my iPod. the computer says that if I "Sync" the iPad will be erase, and become like my iPods. how can I just get my files onto

    I am a first-time iPad owner/user. I bought a relative's original iPad. I want to leave the apps on it and add my own pdfs to read. My itunes account is really for my iPod. iTunes message says that if I "Sync" the iPad will be erase, and become like my iPods. If I make a new iTunes account, would the apps be erased when I tried to use it?
    How can I just get my files onto this iPad, and still have the apps that my relative left there for me?
    Thank you.

    iPads sync to 1 computer only.
    All media and apps are tied to the Apple ID that purchased them.
    Without your relatives ID and password, you cannot update any of the Apps.
    I am pretty certain he is also violating Apples terms of service by giving you the apps.

  • TS3376 How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    iPods (except for iPod touch) are not linked to any iTunes "account."  They are associated with your iTunes library. The account in iTunes is your Apple ID, and that is used to buy and download content from the iTunes Store.  It is not required to use an iPod.
    The 1st (and 2nd) gen shuffle can only be used with one iTunes library at a time.  When you connect it, iTunes should prompt you to start using it with your iTunes library, and warn that the shuffle's existing content will be erased.  Have iTunes erase the shuffle, and it will be associated with your iTunes library going forward.  You can then add content to your shuffle.
    The need for the previous owner's Apple ID and password should only come up if you are trying to transfer existing content from the shuffle to your iTunes library, AND the previous owner had content purchased from the iTunes Store.  Just cancel out of that step, if iTunes asks.

  • How to add new marketing attribute to the existing marketing attribute set?

    Hi all,
                  I searched for existing forums but I didn't find the required one. I found some using Tcodes ,which is not my requirement. My requirement is to add new marketing attribute to the already existing marketing attribute set. This  attribute set is created by my team lead with 4 attributes but now i have to add new attribute to this set so total will become 5 attributes for this attribute set. This has to be done through marketing professional business role. If this is not done through marketing attribute set, then I will go for the transaction where I can add marketing attribute for attribute set.
    Please send the details of both marketing professional business role and transaction code.
    Your help is highly appreciated.
    Thanks,
    Baasanthi.

    Hi,
    SAP CRM Marketing Attributes explained
    Path to create Marketing attributes from webui: log in with Marketing Pro role->Marketing->Create->Marketing Attribute
    Regards,Sumeet

Maybe you are looking for

  • Is it possible for Express to broadcast signal in hotel room to iPad?

    Hello: I would like to know if it is possible to configure an Airport Express so that it is connected to an ethernet port in a hotel room and have the express broadcast a wireless signal to my iPad? This will be my configuration: 1. One airport expre

  • Apple TV audio through interface and monitor speakers?

    Hi all, See following pic of my setup... My question is as follows.... When Macbook is linked to tv via airplay, which is my normal setup as I produce music and use both screens, the sound output is set through Saffire audio interface and comes out t

  • ThinkPad T440 20B7S05G0F Issues

    Hi Gurus, Greetings! I''ve been using ThinkPad for quite long time on during my carrier (Network Security Engineer) I have doubt on my newly bought T400 last week. Somehow, my internal battery indicate "Battery 1 : There is an error", and also driver

  • ALE Business Scenarios

    Hi ,    Can anybody help me out in finding ALE, EDI  realtime business scenarios for SD and MM Modules. Any help regarding this would be appreciated.

  • IP integration Node: failed to link the design

    I'm unable to generate supporting files when importing a VHDL file into IP integration node. I have seen people having the same issue because they used an unsupported OS but my OS is supported by Vivado 2014.4. I have:  NI LabView 2014 with all the m