Warning message before you rename a column

Hi gurus,

I need your suggestion. I am desiging a module to move data from one table to the schema of intermediate archives and then delete intermediate tables, such as each table has it's own rules to keep history (some of them need 2 weeks, 1 month etc) and deleting based on reporting_date for some tables, rpt_dt other reporting_dt other and so on... (inconsistent naming). Because most of the tables is not partitioned, I have to do in the conventional way of copying the data and then remove. (Speaking of ~ 100 tables, data to remove from 100K to 1 million)

My plan is to create a table as follows, which highlights each table name and field based on which remove will

Table of correspondence:

KEYSOURCE_TABLEFIELDNAMESTARTEGYKEY
1000T1REPORTING_DATE1
2000T2RPT_DT1
3000T3RPT_DT2

Strategy table:

STRATEGYKEYSTG_KEEP_DAYSCOMMENTS
114Default option
230Keep the last 30 days

My question is I want to create an alert so that if a developer RENAMES the RPT_DT of the RPTDT column in table T2, it must either refuse the user until it changes the above new domain name mapping table entry. Otherwise refuse, at least draw the attention of the user. How do I get it? I was curious to know if there are new techniques in versions of oracle 10 g / 11 g (mine is 11 g) apart from old techniques I could think

(1) create a level trigger statement for 100 + tables on the field of Reporting_dt/Reporting_date/RPT_Dt, such that the error is thrown in the exception block (this could slow down the load ETL). Difficult to maintain.

(2) handle reactive IE perform a daily check to see if a field name in the mapping table exists in all_tables.

I learned a lot of new techniques in this forum where many new features have been introduced by oracle, or others had a cleaner and better how to implement their experience practice.

Thank you

Sunny

I do not understand how your statement-level trigger approach would work.  Rename a column is DOF, no DML, the ALTER TABLE that rename the column don't trigger a DML trigger.  Level trigger statement that try to validate the structure of the table to the data you're now would place a huge burden and would not raise an error up to this than potentially long after that the disturbing change has been made.

I guess you can create a DDL trigger that took place when a user has changed the table who tried to validate the DDL against the data in the table (probably using ora_is_alter_column and ora_is_drop_column functions).  That could probably be put into work, but you should always remember to change the data in your table and then run DDL on your table, and not the reverse.

A DML trigger on your mapping table that checks if the data in your mapping table corresponding to the table definition would be easier to write.  But you would be once again be capture potentially long errors after a rogue DDL statement was executed.

You could get even more esoteric using something like water course to post the DDL changes and write a subscriber process may change your mapping table or triggered some kind of alert if there was a disconnect.  If you are the Subscriber for a little delay, you could give time for the LMD to the mapping table (most likely) would have completed to make coherent whole before validating the DDL.

If you are looking for a technical solution, however, I will do as you no matter what time you want to make sure that coherent sets of changes are made - would create a stored procedure that combines some DOF and you want to allow and prevent people from having the possibility to issue direct DDL statements of the DML changes.  If your procedure is written correctly and is the only way to do this kind of manipulation, you should be able to track changes in sync (except for cases where the procedure was partially successful because engages in the DDL and mistakes elsewhere).

In reality, however, this is not a technical problem if you probably don't want a technical solution.  Rename a column isn't something that would be never done willy nilly.  This is something that should be done as part of a change of control.  This change of control should be considered at least two beings who can catch stupid things.  That change control should be accompanied by tests that validate things like the ability of your process to ETL, data in the mapping table corresponds to the definition tables.  This change of control should be tested in environments below.  At the time wherever a change is ready to be deployed to production, you should be fairly confident roughly that the definition of the table will match the data in your mapping table.  A process-based solution would make me much more comfortable than a technical solution to this kind of question.

Justin

Tags: Database

Similar Questions

  • I find that whenever I'm trying to rename an invisible layer (in Photoshop CC 2015), Photoshop stops working. Apart from ensuring that a layer is visible before you rename it, Adobe (or anyone) has a solution for this?  Thank you.

    I find that whenever I'm trying to rename an invisible layer (in Photoshop CC 2015), Photoshop stops working. Apart from ensuring that a layer is visible before you rename it, Adobe (or anyone) has a solution for this?  Thank you.

    Hi df.studio,

    Please reset the Photoshop preferences and try again.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Related link: functions of files preference, names and places. Photoshop CS5

    If not, let us know error code related to the crash.

    Go to the control panel< event="">

    Once that event viewer is open< click="" on="" windows=""><>

    Search the last error and let us know the details and general information.

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • I need help to remove Adobe Acrobat. I got the free trial version, and it has expired. I thought I deleted the program, but I get this message "before you proceed you must first launch Adobe Acrobat and accept the end user license agreement."

    I need help to remove Adobe Acrobat. I got the free trial version, and it has expired. I thought I deleted the program, but I get this message "before you proceed you must first launch Adobe Acrobat and accept the end user license agreement." I thought I deleted the program, so I can't seem to be able to throw. I have a MacBook Pro OS x help, please.

    This message comes from Adobe Reader; Launch the Reader application and accept the EULA.

  • Launch a warning message before the opening of grille

    Hello
    I wanted to throw a warning message whenever we are clicking on the calendar icon, but before the calendar opens.

    Kindly help me.

    Hello

    I'm glad that this solves your problem.
    Kindly, to check the answer as Correct it please.

    Thank you.

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

  • Old profile will be migrated but I forgot to backup existing profile before you rename it. Best way to retrieve emails to the original profile that still exists as * .old?

    Of course, I left on stage backup or export, do not know that. In any case, won't make things worse so thought better to ask before proceeding. I've renamed existing "new but used" profile *.old and copied old profile in the same folder, giving the name of the profile 'new but used '. There are emails in the profile "new but used" I need to recover. What is the best way to proceed?

    Thank you
    Mike

    OK, either copy all the files from the old to the new mbox and place them in local folders. do not copy * .msf files (they are just indexfiles and will be recreated)

    delete panacea.dat
    It will be re-created. (it contains a list of directories and files)

    or get an Add on ExportImportTools that can help you import an mbox.

    When they are in local folders you can move.

  • How I have Thunderbird warn me before you empty the trash?

    When I right click and choose "empty trash" I am asked is no longer a response. The removal is automatic. I want to change this back to receive messages. I can't find the solution.

    It's an educated guess (I hope!).

    Tools | Options of| Advanced | Editor of GeneralConfig

    Say yes you will pay attention, in case of dispute.
    In the filter at the top box, type empty .
    Look through the entries and edit as appropriate. Mine looked like the tie.

    I would suggest you start with the variants "don't ask again" and make them false. Double-click to change.

  • When I want to pre print a message before you actually start to print I get a picture on the screen.

    When starting pre print, I don't see some treat the message that goes to fast to read, but suggests that the system is busy with something.

    I had a similar problem to Firefox, which I solved it by doing a re - initialize. Can I do in Thunderbird as well?

    There is no easy way, but ban you use the configuration editor to remove any entry that contains print. at the beginning of the year.

    I have no idea why Thunderbird stores these values, but their distance: their replacement after the next start with print, so you can't really go wrong by removing these preferences. Unlike other.

  • How can I change the settings on Firefox 5 Warning Messages?

    I wonder why the options to turn these warning messages whenever you enter or leave an encrypted page, etc., are more included in this version. Is it still possible to rework her these settings with Firefox 5?

    The settings for warning messages have been removed from the UI (Bug 513166).

    You must change preferences related security.warn_* directly on the topic: config page.

    Filter: security.warn

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed see the bold (user set).
    • Preferences you can restore the default value or change via the context menu.

    You can alternate Boolean prefs with a double click.

  • Error: "before you can synchronize you must set up a sync partnership."

    Original title: cannot SYNCHRONIZE the PC of POCKET DELL AXIM X 30

    When I try to synchronize my Dell Axim X 30 Pocket PC I get this message
    "Before you can synchronize, you need to set up a sync partnership."
    Is there a driver software window that I can download that will establish this sync partnership?

    Toshiba Satellite A 135 S 4656 - INTEL CELERON M CPU 1.60 GHz 2 GB 32-BIT - Serial No. 87282497 K
    WINDOWS VISTA HOME BASIC 2007

    Pocket PC: DELL AXIM X 30 - SERIAL no: 87282497 K PRODUCT KEY: HPVDT-33773-934MV-CH9XM-YMVK3

    Hi DAVIS PATTERSON,.

    I suggest you to take a look at the following links in the article and see if it helps:

    Sync Center: frequently asked questions

    The problems of synchronization

    What is a sync partnership?

    Sync with a device

    I hope this helps.

  • Initiate warning messages, so that you cannot ignore them?

    Hello

    I make a dvd for a company and there are some security, right of author, etc. at the beginning of the dvd before going to menu dvd of warning messages.

    I wonder how to make it so these opening slides cannot be ignored until they have finished playing?

    They have audio support, so I've exported in a timeline of first again and placed to play before only the menu.

    Hope it makes sense.

    See you soon,.

    JAI

    See this:

    http://help.Adobe.com/en_US/Encore/CS/using/WSbaf9cd7d26a2eabfe807401038582db29-7f7ca.html #WSbaf9cd7d26a2eabfe807401038582db29-7f7aa

  • An apple user received a warning message that his phone has been compromised and that it has to download a program before it can use Safari if his picture files will be in danger of being stolen. What should do?

    What to do if you got a warning message of * onlinegmz.com

    as your phone is being hacked and you need to download a program to protect the data of the phone and photos to be hacked?

    This occurs whenever you try to use safari (this is what happened to a friend)

    < link published by host >

    It's a scam.

    Go to settings - Safari - clear the history and data from the Web site.

    If that doesn't work, reset your device. This will not erase your data stored on the phone.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    To be on the safe side, you can restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • When I start my PC, and before you start I receive this message from InfoCenter.exe - Application error - the application is not initialate properly (0xc0000135).

    Original title: initialize 0xc0000135

    When I start my PC, and before you start I receive this message from InfoCenter.exe - Application error - the application is not initialate properly (0xc0000135). I just click OK and continue. Any problem? Is this necessary application?

    Walter Rodriguez

    E-mail address is removed from the privacy *.

    10/07/12

    14:57

    Hello

    1. do you receive this after you see Start button or entry?

    2 have you made any changes to the computer before the show?

     

    Method 1: Boot errors are fixed by the clean boot.

    Perform the clean boot and see if that helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    Reference: How to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    http://support.Microsoft.com/kb/929135

    Note: when you're done to diagnose, follow step 7 in the article to start on normal startup.

     

    Method 2: Some malware parody itself as InfoCenter.exe, especially when it is located in the folder c:\windows or c:\windows\system32.

    I suggest you make a system full scan just to be sure.

    Here is a link that will give you information on how to perform a full scan of the system:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    , Note 1: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note 2: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

  • Get the error message "Windows must be enabled before you can connect. You want to activate now.

    Original title: impossible to activate Windows XP

    I had to reinstall XP Professional. Now, when I start the computer get a message saying "Windows must be enabled before you can connect. You want to activate now? ». When I click on Yes, the desktop backround sometimes nothing happens. the activation wizard does not open and no error message appears always.

    Hi Dale,

    Since you are not able to open a session in normal mode, log in in safe mode and perform a few steps that would help you solve the problem.

    Safe mode starts Windows with a limited set of files and drivers. Startup programs do not work in safe mode, and only the basic drivers needed to start Windows are installed.

    Perform the steps mentioned below and see if it helps.
    a: turn on your PC
    b: Press F8 repeatedly , then in Mode safe
    c:
    Logon as per normal
    (Note: administrator password is usually empty, but I hope you know your password)
    d: Authorize the Office to load completely (who answered "Yes" to continue mode without failure)
    (Note: this is just a long way to say go to Safe Mode)
    e: Click Start - run
    f:
    type exactly: rundll32.exe syssetup, SetupOobeBnk (then click OK)
    (Note: a single space after 'rundll32.exe' also the Oo are two letter o in "oobe"; capital and the comma are important)
    g: Wait a few seconds (although you won't see any change)
    h : Restart your PC normally (start - stop - restart - Ok)
    i: You will be able to return to the Normal Mode.

    Good day!

    Answer please if you have any questions.

  • Receive a message regarding activate to Windows XP: "this copy of Windows must be activated with Microsoft before you can continue to use it."

    Why do I need to reactivate Windows XP?

    Had the genuine Windows XP on my computer for years, which was activated when I bought it. Recently have messages saying: "this copy of Windows must be activated with Microsoft before you can continue to use it."  Tried to turn it back on, but just get a message saying that it is "unable to establish a connection with the activation server" and I can't go any further. Any ideas what is happening?

    Hello

    Have you done a recent software or changes to the material on the computer?

    I suggest you to go through the steps mentioned in the link and the Coachman.

    Error: could not establish a connection with the activation server. Please check your network...

    http://support.Microsoft.com/kb/306153

    See also:

    How to activate Windows XP

    http://support.Microsoft.com/kb/307890

Maybe you are looking for