How to capture information on what program is inserting/updating of the data in the table?

Hello


I'm working on an application where we have an ABC chart that has a STATUS column. This column is updated from somewhere.

However, we are unable to determine where this COLUMN is updated. I checked the DBA_SOURCE table to see if this table is updated from any oracle proc / function. But isn't.

Is there anyway that I can identify what program will update this table? I can create a before update trigger but I'm not sure if that I can capture program (shell script / informatica workflow) that is updated in this table.

You can use in a trigger SYS_CONTEXT 'USERENV' information ' MODULE'

create table mytable
(
  col1   VARCHAR2(10)
, col2   VARCHAR2(50)
);

create or replace trigger mytable_bi_trigger
before insert
on mytable
for each row
begin

    :new.col2 := SYS_CONTEXT('USERENV','MODULE');

end;
/

-- from Toad
insert into mytable(col1) values('Test 1');
commit;
-- From sqlplus
insert into mytable(col1) values('Test 2');
commit;

select * from mytable;

COL1       COL2
---------- --------------------------------------------------
Test 1     TOAD 11.0.0.116
Test 2     SQL*Plus        

You can also capture a lot more information (host name of the client, the os user, etc.).

See http://docs.oracle.com/database/121/SQLRF/functions199.htm#SQLRF06117

Kind regards.

Alberto

Tags: Database

Similar Questions

  • How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    * Original title: startup

    How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    Hello

    I understand you want to learn about programs, you should start your Windows startup. I will certainly help you to question.

    When you start Windows by using a normal startup startup, several applications and services automatically, and then run in the background. These programs include the base system, antivirus software, utility applications processes system and other software that was previously installed. These applications and services may cause interference when you install or run a program.

    The system configuration is a tool that can help identify problems that might prevent Windows from starting correctly. You can start Windows with common services and startup programs turned off and then reactivate them, one at a time.

    I suggest you to refer to the links below and check if this is useful:

    Using the Configuration System (msconfig)

    Perform a clean boot to determine if background programs interfere with your game or program

    Hope this information helps.

    Please get back to us with an update on the issue, we will be happy to help you.

  • How can I find out what programs to uninstall?

    I am wanting to uninstall programs to increase the effectiveness of my computer. How can I find out what programs to uninstall and what are municipal for daily use?

    No one can answer this question but you.  The programs I use several times a day may be meaningless to you.  But in most cases, uninstalling software will not more 'effective' computer - only free up hard drive space.

    "papesow1987" wrote in the new message: * e-mail address is removed from the privacy... *

    I am wanting to uninstall programs to increase the effectiveness of my computer. How can I find out what programs to uninstall and what are municipal for daily use?

  • How can I find out what programs are essential to start?

    Original title: slow start

    How can I find out what programs are essential in the implementation, we can stop?

    Windows Home vista 32 premium

    Hey Stella-50,

    How slow is slow? For example, my machine (e-machine E4264 2.2 ghz with 2 GB RAM) boots in 95 seconds. For me, I call it, in the average. I am currently in the process of looking for a new machine because it is already 3 years old, so maybe that OEN will be slightly faster to start.

    What you can 'turn off' will depend on which in fact initially launches upward and, unfortunately, you have not told us that at this moment. Is that you should not disable your anti software anti-virus (updater). nothing to do with your mouse and your keyboard etc.

    Perhaps, if you made a list of what application are actually being run at startup (via the msconfig Startup tab) can someone take a look at them and see if, or what can be disabled.

    Otherwise, you might take a glance at Startup Delayer http://www.r2.com.au/software.php?page=2&show=startdelay to see if you can delay the time different applications load to allow windows to start up more quickly. I haven't used so I can't say how good/bad it is.  It's a freeware.

    Here is a review of PCWorld magazine http://www.pcworld.com/downloads/file/fid, 73002-order, 6 pages, 1/description.html

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • How can I find out what programs has not been used for awhile so I can remove from Control Panel

    Original title: Control Panel

    How can I find out what programs has not been used for awhile so I can remove from Control Panel

    It is removed, it's just in your own knowledge and memory.  If you know that you have not used and don't want that, then you can delete it.  It's entirely your choice
  • How can I find out what programs start or stop to start the computer?

    How can I find out what programs start or stop to start the computer? Now there's like 68 programs that start at startup of the computer, I know that this is the way to much, I just need if bought a laptop with windows7premium installed and the problem im having is that for a lot of programs running at startup the computer does runslow and being online is difficult. Can I just go back to the factory because im settings only to learn about computers. Any help would be late thanks all sorts niceome here

    Original title: need HELP

    Go in run and msconfig!

    Under the control of services tab hide all microsoft processes
    These are the programs that are running at startup you can go through the menu of your program and configure each individually to run at startup.
    If you decide it's not worth having to go to control panel and then programs and then decide to uninstall the program.
    If you decide to use your drive to factory restore do not forget to install the programs you need.
  • How to capture what oracle object delete rows in the table?

    Hi all

    I have a table in which I am storing data deleted from the main table. I have a delete on the main table statements in the various packages, now I want to capture what sql statement what package is remove rows from the table. I created the trigger to insert data into the backup table. I'm using oracle 11g.

    Please help me...

    Thanks and greetings

    Vidyasagar.B

    You can use DBMS_UTILITY.FORMAT_CALL_STACK.
    
    SQL> create table t
      2  (
      3    no integer
      4  );
    
    Table created.
    
    SQL> create table t_log
      2  (
      3    str clob
      4  );
    
    Table created.
    
    SQL> create or replace trigger t_trig before insert on t
      2  begin
      3     insert into t_log(str) values (dbms_utility.format_call_stack);
      4  end;
      5  /
    
    Trigger created.
    
    SQL> create or replace procedure p
      2  as
      3  begin
      4    insert into t (no) values (1);
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace package pkg
      2  as
      3     procedure run;
      4  end;
      5  /
    
    Package created.
    
    SQL> create or replace package body pkg
      2  as
      3     procedure run
      4     is
      5     begin
      6       p;
      7     end;
      8  end;
      9  /
    
    Package body created.
    
    SQL> exec pkg.run
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t_log;
    
    STR
    --------------------------------------------------------------------------------
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    3abbbc6d8         1  anonymous block
    3ad03bf88         2  KARTHICK.T_TRIG
    3a51a18a8         4  procedure KARTHICK.P
    3ac4f1508         6  package body KARTHICK.PKG
    3ac91c250         1  anonymous block
    
  • Can what program I use to open the files PLX?

    Original title: PLX files

    Can what program I use to open the file in a readable format PLX?

    Hi Truman,

    I understand that you want to open the PLX files.

    Executable program written in Perl programming language; often used for Web applications that are running on a Web server. You can open them using the following application.

    Microsoft IIS with PerlIS.

    I hope this helps.

  • My pc is slow to start. What programs should be included at the start?

    My pc is slow to start.  The analyzation said: "several programs at startup.  Question: there are so many programs listed to start at the beginning, I don't know which ones is essential and those that are not.  Can you help me with this?

    Original title: what programs should be included at the start?

    To improve the performance of your PC to run this tool:

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

    It will ask you to stop the startup program, you should NOT disable anti-virus and security software and you may disable those that you don't use regularly might be messanger or other software.

    Do defragnment and disk cleanup

  • I installed Adobe Creative cloud on my desktop but when I open the application on your window everything goes black, I don't see any information. What should I do to solve the problem?

    I installed Adobe Creative cloud on my desktop but when I open the application on your window everything goes black, I don't see any information. What should I do to solve the problem?

    This issue may cause due to the dual graphics card on your

    Try once step below

    Right click on desktop creative cloud > run with GPU > integrated graphics.

    If the option is not available

    Try disabling the Intel graphics card from Device Manager

  • I can't open the program with an update to the latest version after that effect does not appear, to me, character animation program

    I can't open the program with an update to the latest version after that effect does not appear, to me, character animation program

    12334.jpg

    non-active way?

    The only way I've seen to solve this problem is to uninstall/reinstall After Effects

  • How to display a message after inserting line in the table...

    Hello

    I want to display a message after inserting rows in the table as *' you have inserted a new line with success *'.


    I use the ADF button createinsert to insert the rows in table.after that I am stolen it.


    After commit I want to display message for the user.for what I need to do.





    Please help me.





    Sanchez.

    Double-click the validation button, to link Action property dialog will appear and then create a method of bean managed for the validation button.
    Then, add the following code to the method:

    public String saveButton_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding ("Commit");
    Object result = operationBinding.execute ();
    Note "!" operator has been removed from the default code.
    {if (OperationBinding.GetErrors (). IsEmpty())}
    FacesContext ctx = FacesContext.getCurrentInstance ();
    FacesMessage saveMsg is new FacesMessage ("saved successfully");.
    ctx.addMessage (null, saveMsg);
    }
    Returns a null value.
    }

    Then, restore the ActionListener value.

    I hope this helps.

  • What program to use to take the video of your screen? AND: How to convert .swf in .mp4?

    What program (free) can I use on my HP laptop (running on Windows 7) to take video of my screen? I used Jing to capture video, but it registers as a .swf file. I have not anything that can play a .swf. I tried Zamzar, but he's not convert .swf files. So, what can I use to convert the .swf in .mp4, please?

    I tried to download CamStudio, but Google Chrome has blocked, saying that the zip file would affect my browsing experience.

    I'm not a technology person. Any help is appreciated. Thank you.

    DM

    If you want a basic registration application that TechSmith is also Snaggit that will record audio and video, making the screenshots & is $ 49 for life.  Your call.

  • Almost all cases no matter what programs run almost 100% of the CPU running.

    Hey guys I have a problem I could use some help with.

    I have a Dell Studio 1555 laptop

    Windows Vista Edition Home Premium 64-bit

    4 GB of Ram

    Intel Duo Core T6500 @ 2.1 GHZ

    I've had this laptop over a year now and it works perfectly but around a week ago, he went a little out of whack.

    Basically, no matter what programs are running my CPU usage will be 90-100%, which makes the laptop almost impossible to use.

    It comes and goes a bit, but for the majority of the time is around this margin. (for example I wrote that his party up to 10% once again, little about what I expected, but it will rocket upward again in a few minutes)

    The strange thing is that it doesn't seem to be a program or .exe using all CPU. Sometimes odd things as Dell Dock (which must use almost nothing) use up to 40% and if that gets closed or temporarily fixed things like explorer.exe, svchost.exe or whatever happens to be executed at the moment when will start using more CPU and look back up to 100%.

    Only, this started happening recently and I have no idea what made him... Any thoughts?

    Thanks a lot for all the suggestions/help

    (and just a quick update)

    My computer stopped a few times now unexpectedly as well and do not restart for 10 minutes. Once again, no idea why... The back of it felt very hot but I wonder if a fan issue could play a role?)

    Hello

    Heat can be the cause where the result of the CPU running so high. Make sure that the vents are clear and
    try adding a small fan blowing in the wind (or at least through them) to see how effective that has
    on the question.

    Check with a computer store real (not of leeks and glances at a Best Buy or other department stores) or Dell
    Support and Forums for known issues.

    Dell support
    http://support.Dell.com/

    Dell support drivers - product manual & warranty Info (left side) - and much more
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell forums
    http://en.community.Dell.com/forums/
    ---------------------------------------------------------------------------------------------------------------------

    This is a tool for troubleshooting to see if the software is part of the question - start with a clean boot.

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • -Pop-up menu (allows you to choose what program you use to open the file) when you insert sim or cd does not appear

    When a disk or sim card or data storage device is connected to the computer there should be a menu pop up that allows you to choose which program to use to open the file. This is no longer the case. Any ideas how to restore it?

    Hi John,.

    1 are you referring to AutoPlay settings in Windows XP?

    2. did you of recent changes on the system?

    If you are referring to AutoPlay settings in Windows XP, you can see the following article in Windows XP to enable the feature.

    The Autorun feature or the AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows

    You can also consult the following article:

    How to change or choose the program that starts when you double-click a file in Windows XP

Maybe you are looking for