Adding new column to production database

I have to add a new timestamp column, that defaults to the current date/time, to an existing production database. The table is large - 150M records. I am trying to understand the ramifications of adding a new column to a table this large that gets hit often, mostly with inserts and reads. The column does allow null values and I am not going back and populating existing records with a value. Basically, I am looking for some best practice guidelines - how to prepare, what to expect, what other processes should be followed along with this schema update.

Radiators wrote:
Thanks, I have not found any %TYPE or %ROWTYPE dependencies on the table I am altering. But at the same time I do not understand how these types of dependencies would invalidate packages. I wouldn't be breaking any %TYPE dependency because I am not dropping columns, only adding a new one. And according to documentation for %ROWTYPE - "If columns are later added to or dropped from the table, your code can keep working without changes." Can you point me to Oracle documentation that describes your concern in detail? Thanks.you can test it yourself
SQL> CREATE TABLE abc (c1 NUMBER);
Table created.
SQL> INSERT INTO abc
  2       VALUES (99);
1 row created.
SQL> CREATE OR REPLACE PROCEDURE test_proc
  2  AS
  3     v   abc%ROWTYPE;
  4  BEGIN
  5     SELECT c1
  6       INTO v
  7       FROM abc
  8       WHERE ROWNUM = 1;
  9  END;
10  /
Procedure created.
SQL> SELECT object_name, status
  2    FROM user_objects
  3   WHERE object_name = 'TEST_PROC';
OBJECT_NAME                STATUS
TEST_PROC                    VALID
SQL> ALTER TABLE abc ADD (c2 VARCHAR2(10));
Table altered.
SQL> SELECT object_name, status
  2    FROM user_objects
  3   WHERE object_name = 'TEST_PROC';
OBJECT_NAME                 STATUS
TEST_PROC                     INVALID
SQL> you should also consider the chance that some where if people are using "select * into" using this table, which will fail since you added new column. i don't see any unusual performance bottlenecks by adding a new column. in case of the backups, yes the earlier backups will not have the column. if you restore it, you will see earlier table structure itself. i have one specific question. why are you not attempting this in development/test environment first? even if it is a simple insert, it's always important to do it in test environments before attempting on production db. one thing for sure i know is, after adding column, you will have to recompile all the invalid dependencies. i think, it's better if you attempt it in test db and come up with any issues you see rather than asking a general question where problematic scenarios are plenty and rarely unknown before hand.

Similar Messages

  • Adding new column in production order component overview

    Hi Experts,
    Please let me know any enhancement or badi available to add a new column to production order component list. There is a business requirement to display the fixed bin in component list.
    THanks
    RIjil

    Sudhakar,
    Check the MRP parameter 'Individual/Coll' in MRP4 view for the components. This should be set as 2 for collective planning. If this flag is left blank then planning will be based on the parent material (If the parent material is planned for special stock then the components will also be planned for special stock)
    Let me know if this helps.
    Thanks,
    Jaison

  • Adding new  column to LOV Page , from  extended VO

    Hi All,
    I did a vo extension regarding a LOV (in maintainence user),to add extra columns required. VO Extension is done and able to see that extended vo in page But iam unable to add those extra fields in my LOV page through personalization .
    i.e iam trying to add those columns by giving view instance and view attribute ....and apply .....return to application .......HERE IAM NOT ABLE TO SEE MY ADDED FILED . Can any one please help .
    Thanks.

    Hi Hussein,
    I tried the above link, but i did not get the answer for my requirement..
    Is it possible to add a new column in the LOV using forms personalization?
    Currency Code - This is the only column i have it in the LOV for now.. I just wanted to add one more column Currency Code, Currency Name...
    So when the user click the LOV, they can see both Currency Code and Currency Name...and select one of the Currency in the field.
    Please let me know.
    Thanks,
    Genoo

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Adding new column to Webdynpro Table

    Hi
    How can I add a new column, already one of my friend has added a table to the view in webdynpro, there are 4 columns presently maped to BAPI
    I need to add 2 new columns to the webdypor table and map it to BAPI.
    please suggest me. basically I am enhancing the screen.
    regards
    kiran

    Hi,
    May be there is a constraint defied on the newly added column that it can not be null ?
    Thanks,
    Sutirtha

  • Adding new column in Report

    Hi All,
    I need to add regulation requirement ID and Description in Risk and Control Matrix report(F7).
    I have done the table entry in the required view cluster those are:
    VC_GRFNREPCUST
    VC_GRFNREPCOLUMNSC.
    I am able to see the new column in the report output but the entire column is blank. When i try for regulation the value is populated but not for regulation requirement.
    Am i missing any configuration?? I am struggling for an week.
    Please help if you already come across this requirement. I highly appreciate for your time and help.
    Thanks
    Gourab

    Hi Gourab,
    You can check for the table: V_GRFNREPCOLUMN
    Which lets you to do the following:
    1) Copy an existing report
    2) Check all the technical adjustments
    3) change the columns for this report
    See if this helps.
    Regards,
    Ameet

  • Adding new columns in a JTable?

    How can i add a new column every time a button is pressed? I have
    String columns[][] = {{"1", "2", "3"}}But i don't know how to add a new {} row...
    Help?
    Or can someone show me a better way to do it?

    Use a Collection instead of arrays.
    Arrays are fixed-size. If you need a bigger array, you need to create the new one, copy the old content over and fill in the new values.
    Collections hide all that complexity from you by providing simple .add() and .remove() methods.
    Arrays: low-level mechanism.
    Collections: more comfortable high-level mechanism

  • Adding new column to MBBs

    Hi  experts,
                  I want to add new columns to Standard report MBBS
    In this T code we are unable to get Material description and storage location.
    Is it possible add those coloms in standard report.
    regards,
    Ali

    Hi, I don't think so you will be able to add Mat. description & storage location in standard report, also if it would have been available in variant(Ctrl + F8) then also you could have changed the layout & done, I think you shoul talk to your abaper to copy  the program of MBBS and add the fields of your requirement and to develop new Z report.

  • Adding new columns & New dataware house Tables

    Hello Gurus,
    We are using OBIEE 7.9.6, with Oracle EBS OLTP. I would like to show a new colum in an existing dash board report that requires new column in datawarehouse table & staging table. I also have a requirement to add new custom datawarehouse table to create a new report. Does anyone know the step by step approach to do this with details such as BI tools that are required?
    Any pointers on this is greatly appreciated!
    Thanks,
    Chandra

    Please read this:
    Oracle® Business Intelligence
    Data Warehouse Administration Console User’s Guide
    Version 10.1.3.4
    E12652-01
    Figure 8–1 Process Flow to Add New Object to Data Warehouse
    Pg 59

  • EIS Adding New Columns

    I have an new Column (Order_Key) in one of my tables in the star schema. How do I get the Metadata Model and Metaoutline to recognize this new column without deleting the table in the Metadata Model?Thanks.....

    Unfortunatley there is no "refresh" button! You will need to view columns in model. If you then right-click on table and selct columns and selct a column of the same type. If you then "add" and type in the physical name of the new column, it should show up.Pete Singleton www.analitica.co.uk

  • Adding new field to product allocation catalog?

    We are configuring product allocations in SCM 7.0 and have a requirement to add a new field to the standard field catalog for the allocations check.  We have followed the procedure outlined by SAP to add our new field to the structure /SAPAPO/KOMGOZ, add the field to the field catalog, and copied the source code to ERP.
    The issue that we are having is that new custom field that we added to the field catalog is not being populated when we execute /SAPAPO/ATPQ_PAREA_K - Characteristics Combinations from Planning Area.  The product allocations group that is being used in /SAPAPO/ATPQ_PAREA_K has three characteristics. The first two which are SAP provided fields are being populated correctly, but the last custom field we added to the field catalog is not. It is just blank.
    Is there a step that we missed during the configuation.  We are only using this field for the product allocations check (we do not use Rules Based ATP).

    Hi Arnel,
    I was expecting with examples but anyway.
    consider the examples of your CVC
    Country Region brand SO DV DC mat plant  etc...
    now you want to first get confirmation on SO and DV  , Prd allo group with these 2 characteristics
    same goes for all other combinations.
    now if you want to go with Either Or   /And.. decides if you need to go with one product allocation procedure with many prod allocation group  /or/ a sequence product allocation procedure.
    Its very straight forward as such... if you come up with examples, i can give better details.
    Looking at point 3 it looks like you want to go with 'OR' so you will have to go with sequence.
    (tcode: /SAPAPO/ATPCQ_GENER)-  is to check the customizing,  sometime you might move the Prod allocation from dev system and just to make sure there is no issue in transport /missing config.. it will check with transaction code.  I don't think you have to run this every time. After every transport..may be you have too as a caution check.
    Imp:  just to check @ different levels i dont think you will have to create different planning area.  If all the characteristics on which you want to (combinations) is available in one planning area , you should be good with one planning area only.
    Hope this is helpful.  I would suggest to follow what we have discussed so far and then you can create another message after the configuration/approach you finalized  with new issues/concerns you will be facing.
    If issue are really bothering you much, you can reach out to me directly. Let me know
    Pravin M

  • Dump when selecting SoS after adding new column in SoS tab in SRM7.0 SC

    Hi Experts,
    We are using Classic Scenario with ECC6.04.
    We added 2 extra column  ( Plant & Sto Loc) in the Source of Supply Tab in the SRM Shopping Cart.
    I added these fields in webdynpro/SAPSRM/WDC_DODC_SC_I_SOS in the view V_DODC_SC_I_SOS
    Appended these two field in the structure /SAPSRM/S_PDO_APP_SOS_VEN  and added the logic to get plant and storage location
    in WDDOINIT method.
    When system proposes any B/E SoS ( Contract or PIR) it shows value of Plant or Sto Location from respective SoS in the respective Column correctly.
    But when we select any Contract or PIR row other than 1st , then system throws below dump
    100209
    sgsgsav0s2003
    https://sgsgsav0s2003.ad.internal:44300/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif
    GETWA_NOT_ASSIGNED
    Field symbol has not yet been assigned.
    Method: UPDATE_META_DATA of program /SAPSRM/CL_CH_WD_MAP_META_HDLRCP
    Method: /SAPSRM/IF_CLL_DODM_SC_I_SOS~LEAD_SELECTION of program /SAPSRM/CL_CH_WD_DODM_SC_I_SOSCP
    Method: ONACTIONLEAD_SELECTION of program /1BCWDY/T2R7E4WKA5D7C8DML3PR==CP
    Method: ONACTIONLEAD_SELECTION of program /1BCWDY/T2R7E4WKA5D7C8DML3PR==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/T2R7E4WKA5D7C8DML3PR==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    Please suggest the solution whether I am missing anything .
    Thanks and Regards,
    Rama.

    Dear Rama
    This error usally happens when you call an ITS transaction through SRM portal using SRM 7.0, which is based on Web Dynpro. This is a common error regarding customer fields and upgrade from SRM 5.0 to SRM 7.0.
    It can also be a role issue. For example, the user that is getting the dump has an old role (SRM 5.0) assigned to him instead of a new role (SRM 7.0).
    I hope this helps.
    Best regards,
    Christian Zeuch

  • Adding new column to item overview tab of warranty claim

    Hi all,
           I need to add an additional column to the item overview tab of the warranty claim.( transaction WTY ).
    If anyone has done this before then please send the details as to where and how this needs to be added.If added what are the necessary tables which needs to be updated.Is there any BADi or user exit to change and update this data .. ?If not how can this be done .. ?Is this a feasible requirement.. ?Please let me know soon.
    Cheers
    Nishanth

    Hi Neelima,
    Please investigate the use of customer fields for meeting this requirement.
    Regards
    Azad

  • ORA-00904 - invalid identifier when adding new column to the report query

    Hi,
    I am trying to add a new field to an existing bespoke report query. When I click on ok, I get the following error
    message: "ORA-00904: <field name> : invalid identifier ==> <field_name>
    Any ideas what is causing this problem? Version of the report builder is : 6.0.8 and is connected to a 10.2 db.
    Any help appreciated.
    Many Thanks,
    Praveen
    Edited by: praveenrn on May 21, 2009 2:38 PM

    What is the field name ? Maybe a reserved word ? Change to "my_new_variable" to check...
    Cheers,
    Jens Rettig

  • Adding new column to table now page is blank in Apex

    thinking this altered table and messed up table id call. How can I fix?

    Hello,
    Are you talking about a report, a form, ...?
    You can adapt the sql or the item or the process to fix the problem.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/

Maybe you are looking for

  • Yahoo alias email account not accessible

    I am having a problem accessing my email from an email alias account through Yahoo since they changed to the new interface. It works in IE8, but not in Firefox 6 which makes me think it's an issue at your end and not Yahoo. I have a website, commonbo

  • Month count

    Oracle -9i Release 2 How do I write a sql query to get month-wise count for actual working day, i.e. exclude saturday and sundays from the month count, is there a way to do it, i have the following query that gives total count for each month, also it

  • Problem about casting in internal tables

    Hello, TYPES:   BEGIN OF ts_matnr,     matnr TYPE matnr,     objct TYPE cuobj,   END   OF ts_matnr.   tables: mara. DATA:   myStatus(20) type c,   mySTANDARDCLASS(20) type c,   gt_matnr TYPE STANDARD TABLE OF ts_matnr WITH DEFAULT KEY,   gs_matnr LIK

  • Edit operations

    In Jdeveloper 3.2.3, I can still use Ctrl+KB, Ctrl+KC, Ctrl+KI, Ctrl+KU, or Ctrl+Y,.. to define a block of text, indent a block, or erase a line. These functions seems gone in JDeveloper 9i. I understand these functions are coming from Borland. Is JD

  • Clone stamp tool on a 3D object (CS5)

    I'm getting very odd color corruption, using the clone stamp tool on a 3D object. I'm using it for one of the main aspects of PS 3D, painting out UV seams on an object. And I'm getting a very odd artifact: an entirely brown texture is, when sampled w