How the DDL triggers AFTER CHANGE of work?

I thought that this general framework for DDL triggers AFTER WHAT ALTER has been like that:

-Implicit VALIDATION before the DDL statement (here: ALTER TABLE)

-DDL statement

-Implicit VALIDATION after DDL statement (here: ALTER TABLE)

-AFTER ALTER DDL trigger fires

And I also thought that everything is inside that trigger would be 'new' code as introduced by the ALTER TABLE DDL. But it looks like I'm missing something about this situation because the trigger next dbms_metadata.get_ddl procedure and seeing 'old' DDL code (before the ALTER TABLE statement).

What Miss me? Could you give me some advice about this behavior? If I shouldn't expect returned DDL 'current' so why should I not?

Thank you

/ * everything is done in the SCOTT schema * /.

create table y (col1 varchar2 (5));

create table t (dt date default sysdate, d varchar2 (4000));

create or replace trigger trg

After ON ALTER scott. SCHEMA

declare

v_d varchar2 (4000);

Start

Select cast (dbms_metadata.get_ddl ('TABLE', sys.dictionary_obj_name, sys.dictionary_obj_owner) as varchar2 (4000))

in v_d

Double;

insert into t (d) values (v_d);

end;

ALTER table add col2 int;

Select * from t; -This is the 'old' DOF with only col1

I understand the transaction consistent reading, and it would work if second implicit validation had not been published before a trigger has been activated... the question is: is this second implicit validation has published in the above situation or I'm wrong about this, and commit the transaction started by first implicit included relaxation itself, and after he performed the second commit implicit came into play...

It looks like this for me, but I have not found anything in the doc Oracle stating explicitly that this is the case... Could you confirm?

Hmmm - I found it in the section client events of the doc PL/SQL language

http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/triggers.htm#g1722272

The LOGON event starts a separate transaction and undertakes after firing the triggers. All the other events fire in the existing user transaction.

Is the same with the AFTER DDL event where you thought to try this one.

Why do you need the DOF immediately after it happens?

Just capture the same and information of interest to a table. Then, later, asynchronously, run a job to get the DDL or everything that you need. The only "gotcha" If several ddl statements are issued against the table and you needed every one of them for some reason any. Not sure why you would need for each change.

Tags: Database

Similar Questions

  • How to get back after changing to 2 cpu 1 CPU 1 processor

    I changed the number of processors on this prompt Windows (Windows 2003 SP2) 1 to 2 using the console.

    Now, I would go back to 1 cpu.

    In so far, I have stop the Windows prompt and changed back the console, its cpu from 2 to 1.

    Then restarted the Windows prompt.  However, when I go into computer management and devices and computers, it still appears as multiprocessor.

    Should what additional steps I take?

    Thank you

    To return to a single processor inside of windows, you must update the HAL.  So in Device Manager (which looks like that you know where it is) right click on multiprocessor and "update driver".  Choose any options that tell them to select the right driver manually.  Select ACPI uniprocessor and complete the update of the driver.  It prompts you to restart, and once you do that it takes only one pure CPU VM.  Of course when you do any kind of changes such as a virtual machine, you can take a snapshot of it in a working state before in case something happen which make dead.  Should not run into any problems with this, it several times.

    • Kyle

  • How to move pictures into the corresponding folder after changing the opening time of the photo?

    Hello

    I imported some (old) pictures scanned in LR5 (v5.6). The pictures got the time now because there is no available EXIF data, so LR5 imported in the 2014-12 record.

    After importing I change opening time (menu metadata) and renamed photos (library-> rename photos: userdefined name + opening time). In this perspective, all right.

    But the photos are still in the 2014-12 record. How can I bring LR5 to move them to the folder corresponding to the new opening time (for example, 2000 - 01)?

    Any help welcome.

    Thomas

    LR will not move files on its own, you must do it yourself, dragging them to the destination folder you want (in the left panel of the library module).

  • The installation fails after changing the position of my Docs

    Installation fails for Adobe Reader after you download it in the installer. Then starts the installation but says 'Error install Adobe Reader', in detail: "the path to the program Documents or volume are not valid. Insert them again". I was messing around with letters of partitions before that. Just changed my CD of E, then my second partition to D fix the creation of D for my CD. And position changed from MY Documents to the D drive as always.


    But I had a weird problem with libraries. They got removed, I tried to get back them and they do not appear. Then I clicked on them through start button, PICTURES, DOCUMENTS and all the quick links with Control Panel, and they appeared. I have fixed everything.

    Not when I try to view the file 'in the browser"with any program, I can't make it work either.

    How can I solve this?

    OK I fixed it.

    I created another account with administrative rights. Then I have everything copied from my last story (hopefully content office and more than two files) and removed the last account. The new account created new library records that have been broken before. EVERYHING work perfect.

    I guess that it s related to some Adobe stores data in the My Documents folders.

    Thank you!

  • Impossible to find all the VM files after changing the esxi4 HDD esxi5

    Hi all

    I have a problem and you need help someone here.  I have an esxi4 with some VM guest OS inside and works without problem, after I detach the esxi4 host harddrive to a new host esxi5.  I can't not find any data file or vmdk in esxi5 under my vSphere client hosting.  Then I checked the disk space has been used but no file inside?  Same result even I update the vmfs3 to vmfs5 data store.  What's wrong???

    Help, please

    NG Man

    Welcome to the community,

    Please provide more details.

    • do you see the disc moved under Configuration-> storage-> vmhbaXX adapters?
    • the datatsore dies it see the place in the Configuration-> storage?
    • make data stores (old and new) have different names - the same name could cause problems!
    • you see any folder or files when you 'old' data store using the browser to store data of pen?

    Same result even I update the data vmfs3 to vmfs5 store

    If there are any questions, it is not a good idea to make major changes without knowing the cause of the problem!

    André

  • Mac does not accept the password - even after changing

    My friend uses a macbook air, I'm pretty sure OSX Yosemite running.

    Suddenly her pimp would not accept his password more.

    We tried to reset the password via his apple ID, but even with the new password it told us that the password is not correct.

    Any ideas how we can solve this problem?

    Thank you!

    Hello

    Try to 'Reset' the admin password > change or reset the password of a user account from OS X - Apple support

  • Can't find the time capsule after changing access timed through iPhone app airport utility (setting: no access between 0130 to 0600). But I can not connect or find the same time capsule in the 0800.

    Cannot find or connect to time capsule after you change the timed access thro iPhone app

    You must have defined it incorrectly... factory reset and start again.

    Give us a screenshot of the settings before you apply them.

  • How the hell can I change the reachable on the email address under my Apple ID?

    appearing e-mail addresses are old and no longer maintained - how to remove them. I've been to Apple ID and edit, but it won't let me change the address here

    What type of e-mail address it, primary, alternate, save? The email addresses that you can change the account will appear on http://appleid.apple.com (emergency email address is changed in answering the questions of the account through the Security section)

    Address e-mail account: on your Apple ID - Apple Support email addresses

  • Unable to access the shortcut icons after changing the property

    Original title: shourtcut icons

    I have traied to 'replace the owner of subcontainers and objects' in my vista... and after that my icons of shourtcut was defferant and I can't use it! I don't know what I'll do!

    no idea?

    Thank you

    Hello

    1. Why do you need to take ownership of the files and folders?

    2. what happens when you start the shortcut icons? Do you get any error messages?

    3 What problem confined to a specific shortcut file?

    Looks like the recent changes can break the link to the shortcut icons. You are looking for the original location of the file and try to access the program.

    Method 1:

    Run the Fixit and see if it helps.

    Reference:

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows

    Method 2:

    To run an application only once with a full administrator access token

    a. Locate the program icon or a shortcut in Windows Explorer.

    b. right-click on the program icon or shortcut and then click on run as administrator.

    Method 3: Restore the system

    Restore the system to an earlier point before installing this application.

    System Restore can return your files system to a point in time before you noticed a problem, without affecting documents, photos, or other personal files. If the system restore does not resolve the problem, you can undo the restore operation and choose a different restore point.

    More information on:

    System Restore: frequently asked questions
     

    Hope this information helps. Response with status so that we can help you.

  • Cannot open the .jar files after changing default programs

    Original title: my .jar files open with CMD!

    I tried to change the default program that opens towards the java.exe and even change all .jar for java files, but now each .jar I opens with CMD and run it, I right click and click Open with Java and it is very annoying. I tried right click and press choose program by default and chaning to java, but nothing seems to happen! I don't know what to some may help me!

    Hello

    -Have there been any changes made on the computer before the show?

    -Is the file type-specific question?

    I would suggest trying the following steps and check.

     

    Method 1:

    Try to replace the association command prompt.

    a. Click Start and type cmd.exe in the start search box.

    b. right-click on cmd.exe and select run as administrator.

    (c) in the command prompt, type the following commands, and press ENTER.

    To remove the associated association: assoc.jar =

    To assign/change a file association: assoc.jar = jarfile

    d. close the command prompt and check with the question.

     

    If the problem persists, then uninstall and reinstall Java and check.

     

    Method 2:

    How to uninstall Java on my Windows computer? http://www.Java.com/en/download/help/uninstall_java.XML

    How can I manually download and install Java for my Windows computer? http://Java.com/en/download/help/windows_manual_download.XML

    Let us know the results.

  • Cannot connect to the development environment after changing the password successfully.

    Hello

    I was the Admin for an APEX (5) tool (hosted by apex.oraclecorp.com).

    I forgot the password.
    So, when I clicked on the change in usual password and received the email. I was able to change the password and when checked in the re-login, it didn't quite work.

    Yet once I clicked on reset password so this time, when I pasted the link to my mail it showed the error below.

    "Session state protection violation: this can be caused by a manual change to a URL containing a checksum or using a link with a missing or incorrect checksum." If you don't know what caused this error, contact the administrator of the application for assistance.

    Contact your application administrator.


    Since then, I am not able to access the App.


    No work around for this?


    Help is very appreciated.


    Thank you.

    PKMRAO

    Hi PKMRAO,

    the password reset link you get in email is specific to the session of the APEX where your asked to reset. When you click on reset the password, leave this window open, is not it not nowhere elsewhere to sail. Wait until you get the mail and then open the link in the same browser.

    Kind regards

    Christian

  • HP C4480 printer makes the black spots on the longer side after change cartridge

    After several years of impeccable service (thanks, HP!), my C4480 House today started leaving black fingerprints on one side 8.5 "x 11" long.

    This started after I replaced both cartridges with certified HP cartridges.

    Three printed documents were all the same--a moderate amount of burrs in the bottom right of the document, tapering to light burrs on the top right.

    The tasks are diamond shaped. They start as a string, but 1/3 of the way to the top of the page, they space out about 1/3 inch of distance.

    I unplugged and replugged the power and USB cables at both ends, make sure the glass is clean and remove and reinstall the cartridges.

    No change.

    I'm no technician but it looks like a mechanical problem, not software.

    I scanned a printed list and joined here as a JPG.

    Thank you, all.

    Arrgh... looks like the document is incorrect, and I don't have a C4480 to check.  Said the full user guide here:

    Print a self-test report

    If you experience problems printing, print a self-test report before replacing the ink cartridges. This report provides useful information on several aspects of your product, including your print cartridges.

    To print a self-test report

    1 load letter or A4 unused plain white paper into the input tray.
    2. press and hold the Cancel button and then press the start copy color button. The product prints a self-test report, which may indicate the source of the print issue. Below is an example of the test of ink of the report area.

    I will file a bug report to get the document updated.

  • Modeler cannot export the DDL for databases Oracle (only work for DB2 databases).

    Hello

    First of all, I'm sorry for my English, I'm French.

    I'm new with Oracle tools. I have my database with the DataModeler deisgned.

    Before that I've got my schema versioning I could export the schema to DDL Server Oracle 12.

    But since I have version control with Subversion I can only export to DB2 databases (screenshot follows):

    Exporting to Oracle databases?

    Thank you.

    Well, unzip to the new directory doesn't mean a new facility because it is the same version and DM will use existing preferences - you must remove the directory with the preferences. For DM 4.0.2.840 this directory on my Win7 is:

    C:\Users\\AppData\Roaming\Oracle SQL Developer data Modeler\system4.0.2.840

    After starting DM you must check "System Data Type Directory" "preferences > Data Modeler" - it should be empty or point to the directory with valid files - defaultRDBMSSites.xml and types.xml.

    Posted the picture shows that these files are correct or not existing in the directory defined in your preferences

    Philippe

  • The console error after changing IP address

    Hi all

    I isntalled Server 2.0.0 on Win7 64 bit and everything went well

    Created a new guest and he saw in the window of remote console.

    I changed the IP address of the host and the host and now all I get when I go to the remote console is

    Error opening remote virtual machine < name of PC >: 8333\16:

    Unexplained error.

    The prompt works fine and I can rdp to it, I can't just create a remote console connection.

    I did a repair install and same problem

    I then did a uninstall and re-install and it still creates the same error.

    I have created a new guest in the hope that it was something to do with a sticky ip address, but the new guest was inaccessible as well.

    Y at - it an easy way to fix this or do I have to re - install windows?

    Thank you

    Mick

    Try this...

    http://amritbera.blogspot.com/2009/03/VMware-remote-console-unexplained-error.html

    The steps help?

  • Could not load the .zip file after changing CSS


    We are working on a native android application with DPS.

    We would like to use some custom CSS to change the banner at the top of the façade of the library/store. Our developer takes the work .zip file, open, change the CSS, re-archiving it and then back to send it to me. When I try to create the application by using the new .zip file, the app crashes.

    We went through a series of changes CSS, thinking it was the CSS that was the problem before to sit and try a different set of tests.

    The first thing we tried was taking labour zip file, unzip, without making any changes, and then re - zipping it and make the app again. It breaks the app.

    Leave us this kind of tests and tried a more.

    Two files were created; We have the file structure:

    Zip archive
    -Default_android_library
    -folder fonts
    -images folder
    -index.html
    file - js
    -libs folder
    -main.js
    -style.css
    -file templates

    And the other is just:

    Zip archive
    -folder fonts
    -images folder
    -index.html
    file - js
    -libs folder
    -main.js
    -style.css
    -file templates

    None of these worked, either.

    Everyone knows that kind of problem before with the edit and re - compress them for android?

    Thank you.

    Neil,

    I think that we thought about it, we add an extra layer to the file structure in zip archive.

    Thank you

    Christopher Huber

Maybe you are looking for

  • Untrusted connection during the visit of Twitter

    Hi, I just got my HP laptop having been in repair for three weeks. I just tried to visit the Web site I visit most, Twitter - with a warning of "untrusted connection". Come on, it's TWITTER we talk, one of the sites most visited on the internet! Anyw

  • WiFi-Wifi disabled is completely off my laptop

    Hello, I disabled by mistake my wifi and when I went to my settings the wifi option was missing. I'm not sure what I need to install to get back on. I've done it before and I had to reset my laptop full. Is there a way I can fix this without having t

  • NB100 - how to install Windows 7 without CD player

    Hello. I was wondering if anyone knows how to install Windows 7 Pentecost on a CD player. I have an external HARD drive.Is - this posibel to make an image on this one to boot from?

  • Firefox closes when I close the last tab, on a system, not the other

    CTRL-W closes the last tab. On my Windows XP machine, I get a blank window well. It's like Windows and Excel, you can close all pages without leaving the application.On my Windows XP Professional system, it closes Firefox. Not good. I won't close unt

  • Sliver does not reach 300 ft

    Called Motorola this morning, sending the wick back, they make a range of 300 feet claim that the bull, that I can't get 20 feet of my phone, it connects and disconnects 20 times a day I talked to Motorola and told me that if they sent me a replaceme