How to change primary keys of existing InfoCube.

Greetings everyone!
I’m trying to change the Key Fields in my reporting architecture as per our new company mandate.  I’ve been able to successfully change the primary keys for DS, DSO and InfoSource.  Can any kind soul out there please tell me how to change the primary keys on an existing InfoCube?  I will surely appreciate all the assistance I can get.  Its kinda urgent!
Regards,
Philips

Hi,
Check the possibility with Remodelling option . If it is not possible with Remodelling, then you can only change the cube deleting the Data.
With rgds,
Anil Kumar Sharma .P

Similar Messages

  • Best way to change partition key on existing table

    Hi,
    Using Oracle 11.20.3 on AIX.
    We have a table about 800 million rows and 120gb in size.
    Want to try copies oif this table to evalaute different partitiong strategies.
    What is the quickest way to do this?
    Would have liked say datapump table 1 tro disk and datapumo import the data to new table but do the tables need to be of the same format.
    Thanks

    >
    Using Oracle 11.20.3 on AIX.
    We have a table about 800 million rows and 120gb in size.
    Want to try copies oif this table to evalaute different partitiong strategies.
    What is the quickest way to do this?
    Would have liked say datapump table 1 tro disk and datapumo import the data to new table but do the tables need to be of the same format.
    >
    First your subject asks a different question that the text you posted: Best way to change partition key on existing table. The answer to that question is YOU CAN'T. All data has to be moved to change the partition key since each partition/subpartition is in its own segment. You either create a new table or use DBMS_REDEFINITION to redefine the table online.
    Why do you want to export all data to a file first? That just adds to the time and cost of doing the op.
    What problem are you trying to use partitioning to solve? Performance? Data maintenance? For performance the appropriate partitioning key and whether to use subpartitions depends on the types of queries and the query predicates you typically use as well as the columns that may be suitable for partition keys.
    For maintenance a common method is to partition on a date by year/month/day so you can more easily load new daily/weekly/monthly data into its own partition or drop old data that no longer needs to be kept online.
    You should use a small subset of the data when testing your partitionings strategies.
    Can you do the partitioning offline in an outage window? If not then using the DBMS_REDEFINITION is your only option.
    Without knowing what you are trying to accomplish only general advice can be given. You even mentioned that you might want to use a different set of columns than the curren table has.
    A standard heap table uses ONE segment for its data (ignoring possible LOB segments). A partitioned/subpartitioned table uses ONE segment for each partition/subpartition. This means that ALL data must be moved to partition the table (unless you are only creating one partition).
    This means that every partitioning scheme that uses a different partition key requires ALL data to be moved again for that test.
    Provide some information about what problem you are trying to solve.
    >
    Is this quicker than datapump?
    >
    Yes - exporting the data simplying moves it all an additional time. Ok to export if you need a backup before you start.
    >
    Found artcle which talks about using merge option on datapump import to convert partitioned table to non-partitioned table.
    >
    How would that apply to you? That isn't what you said you wanted to do.

  • How to find Primary Key for a particular SAP Databse Table?

    Hi Guys,
                  How to find Primary Key and foreign key  for Particular SAP Databse table ?for Ex : EKKO , EKPO , EKKN , EKBE , EKBEH  , EKET and EKETH.
    Thanks,
    Srinivas.

    Use transaction SE11 to display the table. Put the cursor on the field you want to display the check table and click 'Foreign key' push button (a key with an bottom point arrow), then it will show the check table of the foreign of a field.
    Or by just simple double click on the field, a pop-up window of all the attribute (including the foreign key and the check table if exists) will show too.
    <i><b>Please reward point for helpful answer.</b></i>
    Minami

  • Changing primary key(s)

    Is it possible to change the primary key of existing persistent objects at
    runtime? (If yes, are references from other tables updated automatically?)
    Regards
    Achim

    Hi,
    AFAIK, Kodo JDO 3.0.1 doesn't support the JDO optional feature:
    javax.jdo.option.ChangeApplicationIdentity
    So assuming you are using Application Identity for your class then you won't
    be able to change the fields that are part of the primary key.
    Not sure if that's what you meant?
    Cheers
    - Keiron
    "Hans-Joachim Oehme" <[email protected]> wrote in message
    news:bujkqd$2bt$[email protected]..
    Is it possible to change the primary key of existing persistent objects at
    runtime? (If yes, are references from other tables updated automatically?)
    Regards
    Achim

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • [Incoming Payments for WTax] Primary Key not exist in DB

    While performing the TDS upgrade, I am getting an error message as "[Incoming Payments for WTax] Primary Key not exist in DB".
    I have checked that the sheet conforms to the instructions provided in the Upgrade guide but am not able to resolve this.
    Any ideas?
    Regards,
    Gyanesh

    Hi,
    It seems to be some field in the TDS upload Excel sheet which has primary key field not having the correct value.
    Double check the same where Primary Key if linked with some value in other sheet, enter the same.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How to change background image in existing template?

    Hi 
    Current website needs overall change in background image which is already set in template. Is there anyone who knows how to change background image in existing templates?

    Make a friend with firebug &  you could find yourself from where it is getting applied.
    For the website you have given the background image it is using is [1] and it is getting set in css of body tag [2]. So Find the css at [3] and modify it OR replace [1] with other image with same file name.
    [1]   www.hanwha.com/etc/designs/hanwha/images/bg-body.jpg
    [2]
    body {
        background: url("images/bg-body.jpg") repeat-x scroll 50% 0 #FFFFFF;
        color: #757373;
        font: 14px/18px Arial,Verdana,Helvetica,sans-serif;
        margin: 0;
        min-width: 979px;
    [3]
    /etc/designs/hanwha/...../*.css

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

  • How to add primary key for table with existing data?

    The table is occupied data already. There was no primary key before, so for every column, there are some duplicate values.
    I want to add a new column, which should be of the datatype integer, and can automatically increment, starting from 001. I tried this in Oracle SQL Developer, but it says "ORA-01758: table must be empty to add mandatory (NOT NULL) column". How can I do it? Thanks!

    Hello, don't call the column ID, that could be an ID relating to anything. Perhaps be a little more specific like emp_id .
    Then to update it:
    UPDATE Employee emp
      SET emp_id = (
      SELECT row_num
        FROM (
      SELECT ROWID,
                 ROW_NUMBER() OVER (ORDER BY ROWID) row_num
        FROM Employee emp2) emp2
      WHERE emp.ROWID = emp2.ROWID);That will assign a new EMP_ID for each, beginning at 1.
    Then:
    ALTER TABLE Employee MODIFY emp_id NOT NULL;
    ALTER TABLE Employee ADD CONSTRAINT EMP_PK PRIMARY KEY (EMP_ID);Then create a sequence for future population of the Employee table:
    CREATE SEQUENCE emp_seq START WITH <maximum value of emp_id + 1>;

  • How add new field as primary key for existing table

    Hi,
    There is table with name REVIEWER_REUSE_EFFORT and the table has 8000 rows in it.
    Now the enhacement i must do on this table is there is no primary key on this table. so i must create a ID also add values to this table of ID
    Table structure is like this
    Create table REVIEWER_REUSE_EFFORT
    PRO_ID number,
    POBJ_ID number,
    TASK_ID number,
    POTENTIAL_EFFORT number,
    COMMENTS varchar2(1200),
    CREATED_BY varchar2(100),
    CREATION_DATE sysdate
    UPDATED_BY varchar2(1200),
    UPDATED_DATE sysdate
    Please suggest me how to add values in that 8000 rows
    Thanks
    Sudhir

    Hi,
    If you want to add a new column and update the new column with sequence of number
    alter table REVIEWER_REUSE_EFFORT add (ID number);
    update REVIEWER_REUSE_EFFORT  set ID=rownum;Regards,
    Prazy
    Edited by: Prazy on Jun 21, 2010 3:13 PM

  • How to commit primary key in a multi level form

    Hi ,
    I am using Jdeveloper 10.1.2.3. ADF - Struts jsp application.
    I have an application that has multiple levels before it finally commits, say:
    Level 1 - enter name , address, etc details -- Master Table Employee
    Level 2 - Add Education details -- Detail Table Education
    Level 3 - Experience -- Detail Table Experience.
    Level 4 - adding a Approver -- Detail Table ApplicationApproval
    In all this from Level 1 I generate a document number which is the primary key that links all these tables.
    Now if User A starts Level 1 and moves to level 2,he gets document no = 100 and then User B starts Level 1 and also gets document no = 100 because no commit is executed.
    Now I have noticed that system crashes if User B calls a vo.validate().
    How can I handle this case as Doc no is the only primary key.

    Hi,
    This is what my department has been doing even before I joined and its been working for our multi user environment for these many years.
    We have a table called DOC_SRNO which will hold a row for our start docno , next number in running sequence. the final number. We have this procedure that returns next num to calling application and increments the next num by 1 in the table. and final commit on the application commits all this.
    I am not sure how this was working so far but each of those applications were for different employees. I am assuming this is how it worked.
    Now in the application that I am working on, has no distinct value. So two users could generate the same docno and proceed.
    I will try the DB sequence but here is what I tried. I call the next num from DOC_SRNO and I commit this table update and then proceed with this docno so at a time both gets different docno's.
    But my running session crashes when I go to next level to insert into the detail table of my multi level form. Here when I try to get the current row from the vo which is in context, it crashes.
    Here's the steps.
    Three tables : voMainTable1 and voDetailTable1 and voDetailTable2.
    voMainTable1 on create row1- I generate new docno - post changes
    voMainTable1 on create row2- I genrate another docno - post changes
    set voMainTable1 in context
    Now I call voDetailTable1 and to get the docno to join master detail, I try to get voMainTable1.getCurrentRow. Here it crashes.
    How can I avoid this

  • Issues while changing primary key in table

    Hi
    I have one table. In that two fields are primary key. I want to change the second PK as FK only. But when i am changing this field as FK. Its showing one error 'Primary Key Change not permitted for value Table ZCAUSECATMASTER' . How to avoid this error.
    Please help me.

    Hi.....
    Remove that primary key for the second field and assign your foregin key..table to that filed.....
    So when you give entries in that second filed it will be validated with its foregin key table......its nothing but check table...
    what all values in the foregin table only can given.....
    regards
    raja

  • How to avoid primary key insert error and pipe those would-be error rows to a separate table?

    Hi All,
    Question: How can I ID duplicate values in a particular column before generating a "Violation of PRIMARY KEY constraint" error?
    Background: this SSIS package pulls rows from a remote server table for an insert to a local table.  The local table is truncated in step 1 of this package.  One of the source columns, "ProductName," is a varchar(50) NOT NULL, with no
    constraints at all.  In the destination table, that column has a primary key constraint.  Even so, we don't expect duplicate primary key inserts due to the source data query.  Nevertheless, I've been
    tasked with identifying any duplicate ProductName values that may try to get inserted, piping them all to a "DuplicateInsertAttempt_ProductName" table, and sending an email to the interested parties.  Since I have no way of knowing which row
    should be imported and which should not, I assume the best method is to pipe all rows with a duplicate ProductName out so somebody else can determine which is right and which is wrong, at which point we'll need to improve the query of the source table.
    What's the proper way to do this?  I assume the "DuplicateInsertAttempt_ProductName" table needs identical schema to the import target table, but without any constraints.  I also assume I must ID the duplicate values before attempting
    the import so that no error is generated, but I'm not sure how to do this.
    Any help would be greatly appreciated.
    Thanks,
    Eric

    agree about preventing a dupe or other error on some inconsequential dimension from killing a data mart load that takes a few hrs to run and is an important reporting system.
    I looked into using the error output before, but i think it came up a bit short...
    This is going from memory from a few years ago, but the columnid that comes out of the error data flow is an internal id for the column in the buffer that can't be easily used to get the column name.
    No 'in flight'/in-process way exists to get the column name via something like thisbuffer.column[columnid].name unfortunately
    In theory, the only way to get the column name was to initialise another version of the package (via loading the .dtsx xml) using the SMO .net libraries. I say in theory because I stopped considering it an option at that point
    And the error code is fairly generic as well if i remember correctly. It's not the error that comes out of the db (Violation of UNIQUE KEY constraint 'x'. Cannot insert duplicate key in object 'dbo.y'. The duplicate key value is (y).)  It's a generic
    'insert failed'/'a constraint failed' type msg.
    I usually leave the default ssis logging to handle all errors (and log them in the sysssislog table), and then I explicitly handle specific exceptions like dupes that I don't want to fail package/parent on error
    Jakub @ Adelaide, Australia Blog

  • Change primary key in ztable

    Hello everyone
    I need some advice.
    I have transp. table ZINVOICE which have data in production system.
    field  of table are
    VBELN  Primary key
    KUNNR
    NAME
    FKART
    FKDAT
    NETWR
    STAT
    TAXINVNUM
    ZFKDAT
    ZNETWR
    now i want table ZINVOICE have 2 primary (VBELN + TAXINVNUM)
    when i activate system show
    Key is already defined; field TAXINVNUM cannot be in the key
    Message no. AD434
    Diagnosis
    When defining table fields, you added further key fields at the end after entering a block of key fields followed by a block of non-key fields.
    All the key fields of a table must be in a block at the beginning of the table.
    Procedure
    All key fields in a table should be entered in a single block.
    is it mean that primay key must be in beginning of the table ?
    can i delete field in table ZINVOICE and insert field and change position of fields to
    VBELN  Primary key
    TAXINVNUM Primary key
    KUNNR
    NAME
    FKART
    FKDAT
    NETWR
    STAT
    ZFKDAT
    ZNETWR
    can i do like this ?
    is it impact my existing data in SAP ?
    please advice.

    As you are adding a new key, you should not get problem with duplicate records.
    You should create two transport requests and activate/transport the table twice.
    - In the first request, change the order of fields in the database table, don't add primary key now, activate , if required adjust database table (should not be required), transport database table in target system.
    - In the second request, declare the second field as a primary key, proceed same way.
    DON'T TRANSPORT BOTH REQUESTS TOGETHER
    First step
    VBELN K
    TAXINVNUM
    KUNNR
    NAME
    Second step
    VBELN K
    TAXINVNUM K
    KUNNR
    NAME
    Question: Did you forget to add the client field, if yes you will have to adjust the table and the records will be copied in every client, you will have to create and execute a small cleanup program
    Third step
    MANDT K
    VBELN K
    TAXINVNUM K
    KUNNR
    NAME
    Regards,
    Raymond

Maybe you are looking for

  • 401 - unauthorized error while connecting to web service -Sharepoint 2010

    hi, i am calling webservice which is installed in sharepoint from custom pages. my server is not load balanced but i got error like 401 unauthourized. I set dword value to 1 for loopback issue still i got the same error i also used default credential

  • Query works in Tera Term but not in Telnet Read.vi

    I am using Telnet Write.vi to execute a command such as GET_VERSION Then using Telnet Read.vi, I am expecting several lines to be returned. This works if I manually do this with Tera Term. But with LabVIEW, the Telnet Read.vi simply returns the comma

  • Exported iMovie doesn't run

    The problem occurs when I compose an iMovie (Version 6.0.3) on my computer(G4,OS X 10.4.11) hard disk and then move it to an external hard disk (My Book, 1 TB). Although the clips on the movie track and the clip board on the EHD appear exactly as the

  • Can't open file "~/sites/index.html." in iWeb09

    I have been searching through posts and I have noticed some that are very similar to this question, but are not exactly related. My domain file worked fine before upgrading to iWeb09. Now I get the error: can't open file "~/sites/index.html." Has any

  • My MAC is not shown in My Devices in Find My iPhone web

    After installing Lion 10.7.2 I've used the Find My iPhone feature to find my iPhone and my iPad. I've activate in Preferences-iCloud the Find My Mac option but my MAC is not shown in the list of my devices in the web application. Is anything more I h