How to apply the constraint ONLY to new lines

Hi, gurus:

I have a question as follows:

We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns. However, since the old system has already given for each table and old data have no value for 2 new columns. If we apply the constraint, all existing lines throws an exception. I wonder if there is possibility to apply the ONLY constraint to the new lines coming in the future.

Thank you.

Sam

We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns.

The best suggestion I can give you is that you ensure that the management of the documents on behalf of the person who came up with this requirement of brain hair so they can sufficiently punished for the huge waste of human and database resources they have caused for which they almost NOTHING got in return in the future.

I've seen many systems over the past 25 years + who have added columns such as: CREATED_DATE, CREATED_BY, MODIFIED_DATE MODIFIED_BY.

I have yet to see a system where this information is really useful for any real purpose. Many systems have the users/application schema, and users can change the data. In addition, a DBA can modify the data, and many of them can connect as long as the schema owner to do.

Many tables also updated by other applications or processes of loading of bulk and these processes use generic connections that cannot be attached to any particular system.

The net result is that these columns will be filled by user names that are completely useless for verification purposes.

If a user is allowed to edit a table, they are allowed to modify a table. If you want to track that you need to implement a security strategy appropriate using the functionality of Oracle's AUDIT.

Encumber ALL or even many of your tables with columns is a very BAD idea. Worse is the addition of doesn't trigger this server no other goal but captures the useless information, but because they are the impacts on performance just PL/SQL cause worse the total impact.

Must certainly be to worry about security and auditability of your important data. But by adding columns and triggers, such as those proposed is NOT the right solution to achieve this security.

Before your organization any decision so stupid you should propose that the same steps before adding this feature you should take before the addition of ANY structural MAJOR or the application:

1. document the real need

2 document and justify the business reasons for this need

3. perform tests that shows the impact of this requirement on the production system

4. determine the cost of the resources (people, storage, etc.) to implement this requirement

5 demonstrate how this information will actually be used EFFECTIVELY for professional purposes

With regard to points #1 and #2 above that the requirement should be noted with regard to the PROBLEM to be solved, not a some preconceived notion of the solution that should be used.

Your org should also speak to other associations or other departments in your org even who have used your proposed solution and discover how useful it was for them. If you do this research, you may find it has not responded to their needs at all.

And in your own org, there are probably some applications with tables that already have such columns. Has anyone here EVER used these columns and found them invaluable to identify and solve any real problems?

If you can't use them and why first add their data to some important process?

IMHO, this is a total waste of time and resources to add columns in your tables. Any such audit or security, at least, approach will be limited to those tables with key data that needs to be protected, and then only when you cannot implement the appropriate audit "best practices".

A migration is hard enough without adding unnecessary additional expenses such as those. You have MUCH more important you can do with the resources that you have:

1. capture all THE DDL for the existing system in a version control system

2. train your developers on the use of the version control system

3. determine the correct configuration of the new server and the system. It's almost a CERTAINTY that parameters will change and performance will suffer even if you don't think you have changed anything at all.

4. validate that the data was migrated correctly. Which may involve a broad polling and comparison to make sure that the data has not been altered during migration. The validation process to a SINGLE TABLE is more difficult if the table structures are not the same. And they will not if you add two columns in each table; every single request, you do have to specify the columns by name in order to EXCLUDE from your two new columns.

5. validate the performance of the app on the new system. He there will HAVE problems where things do not work as they did. You need to find these problems and fix them

6 capture appropriate statistics after that data has been migrated and all indexes have been rebuilt.

7 enter the new implementation plans to use a base for when things go wrong in the future.

If it's worth doing is worth doing right.

Tags: Database

Similar Questions

  • How to apply the StringPattern only to my own application?

    Hi Experts,

    I tried the ZipCodeLook sample, but when it is installed, the model applied to applications (for example, the messaging app).

    I need to apply templates to ActiveRichTextFields of my own application, but not to affect other applications.

    Is there a way to do this?

    Thank you.

    Finally, I found a work around, which can only show the menu in ActiveRichTextField to my app, but not others. How ever, the game would still highlighted in another application, but when you click, it would not show your menu item.

    The job is very simple:

    1. create a closed custom called MyActiveRichTextField, which simply extends ActiveRichTextField.

    2. in your own application, where you want to display your menu item, use the MyActiveRichTextField.

    3 al ' ActiveFieldCookie.getFocusVerbs (CookieProvider provider, context of the object, the vector elements), check the following:

    if(provider instanceof MyActiveRichTextField) {
        items.addElement( new TestMenuItem() );
        return (MenuItem)items.elementAt(0);
    } else {
        return null;
    }
    

    Tested on the Simulator in jde4.5 and 8320 with os4.2 device, it works.

  • How to apply the AUTOFILTER on interactive report.

    Hello

    I'll have a report / form based on assume that the table EMP

    Page1 - Interactive (report)
    Page 2 - form

    report query-> select * from EMP;

    1 has created a new employee P2_EMP ('ABC') on page 2 and SAVE the record.
    2. as soon as I save the record on page 2, the control returns to Page1 (Interactive report)
    3. on page 1, all the Archives of the employees are displayed.

    What I want to, whenever I create a new employee P2_EMP = 'ABC' and SAVE the record, control on Page1 (Report) but only recording with employee P2_EMP = 'ABC', should be displayed on page 1...

    HOW can I achieve., I mean how to apply the AUTOFILTER on Page1 (interactive report)

    Currently, I have to manually apply the FILTER on page 1 (employee = ABC), I want to avoid.

    Thank you
    Deepak

    Hi Deepak,

    Could you have another element to the 1 'P1_NEW_EMP' page, pass this back into your branch when control passes from Page 2 to Page 1 and then put it as a condition of your report.

     select * from EMP
    where (employee = :P1_NEW_EMP or  :P1_NEW_EMP = '');
    
  • How to increase the sound on my new pavilion g6 everything is up all the way, but not very load

    How to increase the sound on my new laptop of g6 pavilian everything is in place but not very load

    Hello

    One thing that can help is a bit what follows.  Do a right-click the speaker icon in the taskbar and select "playback devices".  Left click the device once to highlight default (it is usually 'speakers & headphones') and then click the properties button.  Click the enhancements tab and put a check mark in the box "Loudness equalization.  Click on apply to save the changes and then click OK in all other windows and see if allowed at all.

    Kind regards

    DP - K

  • How to apply the strategy of UCS1.4 collection (1 d)

    Hi all

    I try to collect statistics on the performance of the network. but do not know how to apply the policy to the collection.

    Service profile, I cam see political Stats. But within the political framework of Stats, there are onlu available in config/choice is political threshold.

    Can someone help out me? Thank you very much!

    I think this is what you are looking for?

    UCS stores the past 5 statistics records at the "Reporting Interval" setting;
    There is no configuration to change that number.  You can put this interval out 8 hours but then you only get a snapshot every 8 hours. Trending or history retrieval would require an interval based extraction and storing application that utilizes the UCS XML API.

    This is a link to the UCS XML API information.
    http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/ucs_api_book.html

  • How to rotate the image only once

    Hai, I am very new in the development of blackberry applications. I need an image that need to be done rotate 360 degrees once only. I see so many references here and I know that there is a thread that discuss it, but I can't find the right one.

    Thanks in advance.

    You asked a single rotation - "how to rotate the image only once.

    There is no standard API that provides a rotating image permanently using standard features of BlackBerry.

    The usual way to display animations is demonstrated in this article.

    http://supportforums.BlackBerry.com/T5/Java-development/display-an-animated-GIF/Ta-p/445014

    If you can prepare your animation and package with your application, it will be much easier and more effective. Do you know what pictures you're going to turn?

  • How to apply the theme of Oracle Alta UI in ADF

    Hi all

    I use Jdeveloper 11.1.1.1.7.2 release1.

    Can anyone provide your inputs on how to apply the theme of Oracle Alta UI in the ADF.

    For any consultation on Alta IU @ http://www.oracle.com/webfolder/ux/middleware/alta/start-develop.html

    Thank you and best regards,

    Miko Auntie.

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/start-develop.html

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/patterns/PageDesign.html

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/new-dev-w-Alta-skin.html

    Oracle ADF: Customized design

  • How to restore the tablespaces only 4 while cloning with RMAN?

    Hello
    How to restore the tablespaces only 4 not all areas of storage in one database to the new database of cloned all cloning with RMAN?

    I don't think it's possible to restore only 4 storage space for the database 'auxiliary '. Instead, you can use the "SKIP TABLESPACE" cloning while clause.

    You can exclude the tablespaces that you don't want the database duplicate with the SKIP TABLESPACE clause. You can exclude any tablespace except the SYSTEM tablespace or tablespaces containing rollback or undo segments.

    Refer to this http://docs.oracle.com/cd/B14117_01/server.101/b10770/rcmsynta28.htm

  • How to apply the filter to a specific column condition, but not to the report?

    Hello

    I'm having a problem in the application of a filter to one of the column condition.
    I have a scheme with the table around 10 dimension tables and a fact. My requirement is to provide a count on the table of facts with associated with some other columns in the dimension tables.

    Lets consider a scenario with tables as sales (Fact), region (Dimension), Year (Dimension), Type of sale (Dimension).

    Now my requirement is to highlight the fields

    City (Region) - city
    Year-
    Sales Count (dirty table) - number of all sales of the fact table
    Sales Count (dirty table) - count of all sales of the fact which type of sale table is 'Cash'

    Here, my question is how to apply the filter condition of Sales Type = 'MONEY in' only on one of the Sales Count column that comes from the fact table. I want to be ordered for the fourth column, the filter condition.

    Can someone let me know how?

    Thank you

    You must do this:

    1) click the button column fx sales. (This procedure does than on fact, not attributes.0

    2) click on the filter button.

    (3) select the size of sales from the left Type "selection list."

    (4) in the filter window, enter CASH, and click OK.

    This will create one filter on sales 'use' size 'type sales' as the filter. It willl filter only to this column.

  • How to apply the gradient to the entire page

    Hello

    Can someone tell me please how to apply the gradient to the entire page as a gradient background color.

    I tried for centuries and can not see the routes to apply background color

    any ideas? step by step please I really get lost because I'm new to Indesign and do not know the names of all the tools.

    Thank you

    If you want to this gradient to print (or export) with the page, and then you have to draw a rectangle and fill with the gradient.

    If you want on a number of pages, put the rectangle on a master page. You might want to add a layer and move it to the back, put the rectangle on that layer, then lock the layer.

    Dave

  • How to apply the "Slate Pro Light" using CSS font?

    Hello

    Could you tell me how to apply the font of "Slate Pro Light" using CSS? I have not found a solution for the 'Light' slate Pro variation selection.

    Thank you.

    I usually use the definition of CSS of police-family at the following address on my html and body elements:

    font-family: "Slate Pro", Slate, "Myriad Pro", "BBAlpha Sans", Helvetica;
    

    Potentially adding "slate Pro Light" should do the trick. Alternatively, you could take advantage of the make-weight property when you need a lighter framework:

    font-weight: normal|bold|bolder|lighter|number|initial|inherit;
    

    In this case, lighter, might do the trick?

  • IN UCS how to restart the chassis only or closed is broken?

    IN UCS how to restart the chassis only or closed is broken?

    Here's how you can Deomm:

    (1) make sure that you remove thr blade profiles.

    (2) SAT select chassis # in the Hardware tab-> slot the general tab-> choose to decommission chassis

    (3) wait 10-15 minutes so he can fill

    (4) to discover it again:

    (i) first of all, make sure that the cables are conencted correctly, that is, the IOM A to FI - A and the number of cables are, or more links specified in the strategy of chassis discovery,

    (II) select the OU of the appliance chassis-> select the tab 'Decommissined' in the work Panel. You will find the chassis which you deleted, you can add it from there.

    I'm not sure what you mean exactly by that: 'the GP of A FBI must be 2 not one?

    , / Afonso

  • I just bought a new computor. I got Lightroom 5.7 on the old computor and need to know how to download the program on my new computor. Thanks for any help you can provide.

    I just bought a new computor. I got Lightroom 5.7 on the old computor and need to know how to download the program on my new computor. Thanks for any help you can provide.

    Lightroom - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • How to remove hidden links (how to remove the links, ONLY the hidden parts of the document)

    in Acrobat XI-> after deletion "text hidden" using the tool 'Remove hidden information'-> links still remain in the hidden passage / cropped -> so the real question is - HOW TO REMOVE THE LINKS HIDDEN in a PDF. An approach may be to remove 'links, Actions and Javascripts' tool 'Remove' hidden information - BUT it removes links TO the WHOLE OF the DOCUMENT - "how to remove the links, ONLY the hidden parts of the document"

    Hidden text is the collection of glyphs in the PDF page using the text rendering mode 3 (no terms, no fill).

    The links set up in connection with this hidden text are not 'hidden' (this isn't how it works with annotations PDF link - see ISO 32000-1: 2008).

    Any link annotation placed in a PDF file are the same as any other annotation link (with the exception, of course, of whatever Action the link happens to).

    Thus, no special sauce for the links that were placed in conjunction with now deleted "no hidden text.

    In the context of what you wrote, maybe it's you select - Ctrl + click the link annotations of interest and press the delete key.

    Be well...

  • How to apply the mass PhysX to a w3d created with max

    Hell,

    I need to figure out how I can do to apply e.g. "mass" or "restitution" to some body created with 3d max and imported in Director w3d format.

    I know how to apply 'transform.position', 'transform.rotation' to a w3d created with max.
    and how to apply the mass and the return of an object that is created with lingo, but I do not know how to do mass a w3d created with max.
    Who is the syntax?

    Can you give me a hint?
    Thank you.

    It works for me :-)

    I sent you a private message.

Maybe you are looking for

  • Default browser

    How can I make Firefox my default browser instead of Safari?

  • WiFi has limited after upgrade to 8.1 windows connectivity

    Hai friends, I have a computer windows laptop Acer E1-571 8. Because after a recent windows upgradation 8.1 my wifi says limited connectivity. But other devices connected to this router (D-Link) is to have internet. My wireless adapter is Broadcom 80

  • v3-571 mode does not

    Hello I have Acer laptop Aspire to v3 - 571. I upgraded my CPU to i3 - 2310 m to i7-2630qm. In fact the power works fine except turbo boost. It must sometimes push to 2.9 Ghz... In fact, I installed the Turbo Boost_Intel_8.0.0.1262_W7x64_A driver for

  • Helpctr.exe does not load in the Start Menu. System Restore does not work.

    Help and Support not be loading not on the Start Menu. I get a msg of error helpctr.exe is not found. I run for the file with no result. Also the system restore does not work even in safe mode. I use XP Home SP3. Any suggestions? Thank you.

  • I have sudenly lost a years worth of emails

    Hi, I use Outlook Express 6 with Windows XP, I noticed I lost years of email value out of all my files, I used Outlook express 6 for a long time and I've never met a problem like this, I lost every email since 6 May 2010 until April 8, 2011 on all fi